Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
type Ledger interface { BlockHeight() uint32 IsExtensibleAllowed(common.Address) bool VerifyWitness(common.Address, hash.Hashable, *transaction.Witness) error }
Ledger is enough of Blockchain to satisfy Pool.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool represents pool of extensible payloads.
func (*Pool) Add ¶
func (p *Pool) Add(e *payload.Extensible) (bool, error)
Add adds extensible payload to the pool. First return value specifies if payload was new. Second one is nil if and only if payload is valid.
func (*Pool) Get ¶
func (p *Pool) Get(h common.Hash) *payload.Extensible
Get returns payload by hash.
func (*Pool) RemoveStale ¶
RemoveStale removes invalid payloads after block processing.
Click to show internal directories.
Click to hide internal directories.