mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
12 lines
235 B
Go
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
|
||
|
}
|