diff --git a/blockchain/thresholdstate.go b/blockchain/thresholdstate.go index 392ec5c7..b73a44bd 100644 --- a/blockchain/thresholdstate.go +++ b/blockchain/thresholdstate.go @@ -717,6 +717,11 @@ func (b *BlockChain) isTreasuryAgendaActive(prevNode *blockNode) (bool, error) { // // This function is safe for concurrent access. func (b *BlockChain) IsTreasuryAgendaActive(prevHash *chainhash.Hash) (bool, error) { + // The treasury agenda is never active for the genesis block. + if *prevHash == *zeroHash { + return false, nil + } + prevNode := b.index.LookupNode(prevHash) if prevNode == nil || !b.index.CanValidate(prevNode) { return false, unknownBlockError(prevHash)