enforce name standard after fork height

This commit is contained in:
Brannon King 2021-08-12 11:35:25 -04:00
parent fbb382d45a
commit d816013234

View file

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