lbcwallet/chain
Olaoluwa Osuntokun 6eede89a43 chain: fix peer selection for the pruned block dispatcher
In this commit, we fix the peer selection for the pruned block
dispatcher. Turns out that the bits are actually mutually exclusive: a
node can set the network bit _and_ the limited (pruned bit).

The prior logic would only seek out "pure" nodes, meaning older nodes
that wouldn't set the limited bit when they're a full-full node. We fix
this by ignoring the limited bit, and we'll only look at the network and
segwit bits.

A unit test has also been added to show the issue in the prior filter
function.
2022-05-24 03:09:34 -07:00
..
bitcoind_client.go chain: request pruned blocks from backend peers 2021-04-02 17:28:07 -07:00
bitcoind_conn.go Merge pull request #735 from guggero/signet 2021-04-27 17:04:10 -07:00
block_filterer.go chain: update block filterer to map outpoints to addrs 2018-07-16 19:47:17 -07:00
block_filterer_test.go chain: fix Fatalf format verb error 2019-05-11 13:05:17 -07:00
interface.go chain: add IsCurrent method to chain.Interface 2019-06-13 18:08:59 -07:00
log.go chain: add PrunedBlockDispatcher implementation 2021-04-02 17:28:05 -07:00
neutrino.go multi: fix linter issues 2021-03-24 14:44:32 +01:00
pruned_block_dispatcher.go chain: fix peer selection for the pruned block dispatcher 2022-05-24 03:09:34 -07:00
pruned_block_dispatcher_test.go chain: fix peer selection for the pruned block dispatcher 2022-05-24 03:09:34 -07:00
queue.go chain: add concurrent unbounded queue implementation 2018-07-26 16:38:54 -07:00
rpc.go multi: fix linter issues 2021-03-24 14:44:32 +01:00
utils_test.go chain: add PrunedBlockDispatcher implementation 2021-04-02 17:28:05 -07:00