forked from TrueCloudLab/neoneo-go
5df726db68
Time is not really relevant for us here and we don't use this timestamp in any way. Yet it occupies 24 bytes and we do two clock_gettime calls to get it. Replace it with blockStamp which is going to be used in the future for transaction retransmissions. It allows to improve single-node TPS by another 3%.
14 lines
276 B
Go
14 lines
276 B
Go
package mempool
|
|
|
|
import (
|
|
"math/big"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/util"
|
|
)
|
|
|
|
// Feer is an interface that abstract the implementation of the fee calculation.
|
|
type Feer interface {
|
|
FeePerByte() int64
|
|
GetUtilityTokenBalance(util.Uint160) *big.Int
|
|
BlockHeight() uint32
|
|
}
|