Skip to content

Commit 269403d

Browse files
committed
enforce name standard after fork height
1 parent e6efbfd commit 269403d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

blockchain/validate.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import (
1616
"github.com/btcsuite/btcd/txscript"
1717
"github.com/btcsuite/btcd/wire"
1818
"github.com/btcsuite/btcutil"
19+
20+
"github.com/btcsuite/btcd/claimtrie/param"
1921
)
2022

2123
const (
@@ -547,7 +549,7 @@ func checkBlockSanity(block *btcutil.Block, powLimit *big.Int, timeSource Median
547549
// Do some preliminary checks on each transaction to ensure they are
548550
// sane before continuing.
549551
for _, tx := range transactions {
550-
err := CheckTransactionSanity(tx, false)
552+
err := CheckTransactionSanity(tx, block.Height() >= param.ActiveParams.GrandForkHeight)
551553
if err != nil {
552554
return err
553555
}

0 commit comments

Comments
 (0)