tutus-chain/pkg/core/mempool/feer.go

18 lines
467 B
Go
Executable File

package mempool
import (
"math/big"
"git.marketally.com/tutus-one/tutus-chain/pkg/util"
)
// Feer is an interface that abstracts the implementation of the fee calculation.
type Feer interface {
FeePerByte() int64
GetUtilityTokenBalance(util.Uint160) *big.Int
BlockHeight() uint32
// IsVitaFeeExempt returns true if the account has an active Vita token
// (local or visiting) and is exempt from paying transaction fees.
IsVitaFeeExempt(util.Uint160) bool
}