Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: litecoin-foundation/loafwallet-core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.4.0-add-logging
Choose a base ref
...
head repository: litecoin-foundation/loafwallet-core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.5.0-add-reset-fpRate
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 8, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1a15ac0 View commit details
Showing with 4 additions and 0 deletions.
  1. +4 −0 BRPeerManager.c
4 changes: 4 additions & 0 deletions BRPeerManager.c
Original file line number Diff line number Diff line change
@@ -1207,6 +1207,10 @@ static void _peerRelayedBlock(void *info, BRMerkleBlock *block)
manager->fpRate > BLOOM_DEFAULT_FALSEPOSITIVE_RATE*10.0) {
peer_log(peer, "bloom filter false positive rate %f too high after %"PRIu32" blocks, disconnecting...",
manager->fpRate, manager->lastBlock->height + 1 - manager->filterUpdateHeight);

//Resets the fpRate to the reduced fpRate to allow further connection
manager->fpRate = BLOOM_REDUCED_FALSEPOSITIVE_RATE;

BRPeerDisconnect(peer);
}
else if (manager->lastBlock->height + 500 < BRPeerLastBlock(peer) &&