mirror of
https://github.com/btcsuite/btcd.git
synced 2025-02-23 22:47:01 +01:00
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
|
||||
// now.
|
||||
if node.hash.IsEqual(&btcwire.GenesisHash) {
|
||||
if node.hash.IsEqual(b.netParams().genesisHash) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue