Documentation ¶
Overview ¶
mempool implements a buffer of requests sent to the ISC chain, essentially a backlog of requests It contains both on-ledger and off-ledger requests. The mempool consists of 2 parts: the in-buffer and the pool All incoming requests are stored into the in-buffer first. Then they are asynchronously validated and moved to the pool itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mempool ¶
type Mempool interface { ReceiveRequests(reqs ...isc.Request) ReceiveRequest(req isc.Request) bool RemoveRequests(reqs ...isc.RequestID) ReadyNow(currentTime time.Time) []isc.Request ReadyFromIDs(currentTime time.Time, reqIDs ...isc.RequestID) ([]isc.Request, []int, bool) HasRequest(id isc.RequestID) bool GetRequest(id isc.RequestID) isc.Request Info(currentTime time.Time) MempoolInfo WaitRequestInPool(reqid isc.RequestID, timeout ...time.Duration) bool // for testing WaitInBufferEmpty(timeout ...time.Duration) bool // for testing WaitPoolEmpty(timeout ...time.Duration) bool // for testing Close() }
Click to show internal directories.
Click to hide internal directories.