mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
connectd: check all chain hashs of the TLV array
This commit is contained in:
committed by
Christian Decker
parent
4f3e8d461e
commit
9dcbf20a7a
@@ -30,7 +30,7 @@ struct peer {
|
||||
static bool contains_common_chain(struct bitcoin_blkid *chains)
|
||||
{
|
||||
for (size_t i = 0; i < tal_count(chains); i++) {
|
||||
if (bitcoin_blkid_eq(&chains[0], &chainparams->genesis_blockhash))
|
||||
if (bitcoin_blkid_eq(&chains[i], &chainparams->genesis_blockhash))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user