Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NanoTX ¶
type NanoTX struct { Tid types.TransactionID Principal types.Address Fee uint64 // TODO replace with gas price MaxGas uint64 Received time.Time Amount uint64 Nonce uint64 Block types.BlockID Layer types.LayerID }
NanoTX represents minimal info about a transaction for the conservative cache/mempool.
func NewNanoTX ¶
func NewNanoTX(mtx *types.MeshTransaction) *NanoTX
NewNanoTX converts a NanoTX instance from a MeshTransaction.
func (*NanoTX) Better ¶
Better returns true if this transaction takes priority than `other`. when the block seed is non-empty, this tx is being considered for a block. the block seed then is used to tie-break (deterministically) transactions for the same account/nonce.
func (*NanoTX) MaxSpending ¶
MaxSpending returns the maximal amount a transaction can spend.
Click to show internal directories.
Click to hide internal directories.