Documentation ¶
Index ¶
- type AccountPendingTxs
- func (apt *AccountPendingTxs) Add(layer types.LayerID, txs ...*types.Transaction)
- func (apt *AccountPendingTxs) GetProjection(prevNonce, prevBalance uint64) (nonce, balance uint64)
- func (apt *AccountPendingTxs) IsEmpty() bool
- func (apt *AccountPendingTxs) Remove(accepted, rejected []*types.Transaction, layer types.LayerID)
- func (apt *AccountPendingTxs) RemoveNonce(nonce uint64, deleteTx func(id types.TransactionId))
- func (apt *AccountPendingTxs) ValidTxs(prevNonce, prevBalance uint64) (txIds []types.TransactionId, nonce, balance uint64)
- type MeshAndPoolProjector
- type StateAndMeshProjector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountPendingTxs ¶
type AccountPendingTxs struct { PendingTxs map[uint64]map[types.TransactionId]nanoTx // nonce -> TxID -> nanoTx // contains filtered or unexported fields }
func NewAccountPendingTxs ¶
func NewAccountPendingTxs() *AccountPendingTxs
func (*AccountPendingTxs) Add ¶
func (apt *AccountPendingTxs) Add(layer types.LayerID, txs ...*types.Transaction)
func (*AccountPendingTxs) GetProjection ¶
func (apt *AccountPendingTxs) GetProjection(prevNonce, prevBalance uint64) (nonce, balance uint64)
func (*AccountPendingTxs) IsEmpty ¶
func (apt *AccountPendingTxs) IsEmpty() bool
func (*AccountPendingTxs) Remove ¶
func (apt *AccountPendingTxs) Remove(accepted, rejected []*types.Transaction, layer types.LayerID)
func (*AccountPendingTxs) RemoveNonce ¶
func (apt *AccountPendingTxs) RemoveNonce(nonce uint64, deleteTx func(id types.TransactionId))
func (*AccountPendingTxs) ValidTxs ¶
func (apt *AccountPendingTxs) ValidTxs(prevNonce, prevBalance uint64) (txIds []types.TransactionId, nonce, balance uint64)
type MeshAndPoolProjector ¶
type MeshAndPoolProjector struct {
// contains filtered or unexported fields
}
func NewMeshAndPoolProjector ¶
func NewMeshAndPoolProjector(mesh meshProjector, pool poolProjector) *MeshAndPoolProjector
func (*MeshAndPoolProjector) GetProjection ¶
type StateAndMeshProjector ¶
type StateAndMeshProjector struct {
// contains filtered or unexported fields
}
func NewStateAndMeshProjector ¶
func NewStateAndMeshProjector(state globalState, mesh meshProjector) *StateAndMeshProjector
func (*StateAndMeshProjector) GetProjection ¶
func (p *StateAndMeshProjector) GetProjection(addr types.Address) (nonce, balance uint64, err error)
Click to show internal directories.
Click to hide internal directories.