Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NanoTX ¶
type NanoTX struct { types.TxHeader ID types.TransactionID Received time.Time 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.
func (*NanoTX) UpdateLayer ¶
UpdateLayer updates the layer of a transaction.
Click to show internal directories.
Click to hide internal directories.