mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-02 09:45:50 +00:00
06daeb44f3
Don't recalculate it again and again.
14 lines
416 B
Go
14 lines
416 B
Go
package mempool
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/core/transaction"
|
|
"github.com/CityOfZion/neo-go/pkg/util"
|
|
)
|
|
|
|
// Feer is an interface that abstract the implementation of the fee calculation.
|
|
type Feer interface {
|
|
NetworkFee(t *transaction.Transaction) util.Fixed8
|
|
IsLowPriority(util.Fixed8) bool
|
|
FeePerByte(t *transaction.Transaction) util.Fixed8
|
|
SystemFee(t *transaction.Transaction) util.Fixed8
|
|
}
|