erigon-pulse/cmd/state/exec22/txNums.go
2022-08-17 16:24:11 +07:00

12 lines
235 B
Go

package exec22
type TxNums []uint64
func (s TxNums) MaxOf(blockNum uint64) (txnNum uint64) { return s[blockNum] }
func (s TxNums) MinOf(blockNum uint64) (txnNum uint64) {
if blockNum == 0 {
return 0
}
return s[blockNum-1] + 1
}