We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 051b5bd commit af70d26Copy full SHA for af70d26
connectd/peer_exchange_initmsg.c
@@ -30,7 +30,7 @@ struct peer {
30
static bool contains_common_chain(struct bitcoin_blkid *chains)
31
{
32
for (size_t i = 0; i < tal_count(chains); i++) {
33
- if (bitcoin_blkid_eq(&chains[0], &chainparams->genesis_blockhash))
+ if (bitcoin_blkid_eq(&chains[i], &chainparams->genesis_blockhash))
34
return true;
35
}
36
return false;
0 commit comments