miner: fix txFitsSize comment (#34100)

Rename the comment so it matches the helper name.
This commit is contained in:
Daniel Liu 2026-03-27 09:41:56 +08:00 committed by GitHub
parent 8a3a309fa9
commit 1b3b028d1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,7 +75,7 @@ type environment struct {
witness *stateless.Witness
}
// txFits reports whether the transaction fits into the block size limit.
// txFitsSize reports whether the transaction fits into the block size limit.
func (env *environment) txFitsSize(tx *types.Transaction) bool {
return env.size+tx.Size() < params.MaxBlockSize-maxBlockSizeBufferZone
}