Use network-specific genesis hash.
The test in checkConnectBlock for whether or not the node is the genesis block needs to account for the genesis block of the specified network.
This commit is contained in:
parent
04d88d01ec
commit
829f187e47
1 changed files with 1 additions and 1 deletions
|
@ -712,7 +712,7 @@ func (b *BlockChain) checkConnectBlock(node *blockNode, block *btcutil.Block) er
|
||||||
|
|
||||||
// The coinbase for the Genesis block is not spendable, so just return
|
// The coinbase for the Genesis block is not spendable, so just return
|
||||||
// now.
|
// now.
|
||||||
if node.hash.IsEqual(&btcwire.GenesisHash) {
|
if node.hash.IsEqual(b.netParams().genesisHash) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue