RequestMgr

class RequestMgr(val net: CnxnMgr, val genesisBlockHash: Hash256)

Constructors

Link copied to clipboard
constructor(net: CnxnMgr, genesisBlockHash: Hash256)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val blkRequestsLock: iMutex
Link copied to clipboard
Link copied to clipboard
val callbacksLock: iMutex
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val recentHeaderLock: iGate
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val txBlkSync: iGate
Link copied to clipboard

Functions

Link copied to clipboard

Start a thread to get a list of block headers after a certain block, and then to call a continuation function. If headers are not available (after a bunch of retries), call the continuation with an empty list

Link copied to clipboard
Link copied to clipboard

Asynchronously pre-request a block whose transactions I'm sure I'll need

Link copied to clipboard

Get a list of block headers after a certain block

Link copied to clipboard

Get a particular block header

Link copied to clipboard

Get a list of block headers after a certain block

Link copied to clipboard

Get a list of block headers after a certain location.

Link copied to clipboard
fun getTx(txHash: String): iTransaction
fun getTx(txHash: Hash256): iTransaction
Link copied to clipboard
fun getTxDetails(txHash: String): JsonElement
fun getTxDetails(txHash: Hash256): JsonElement
Link copied to clipboard

Insert a partial block into the cache. If a block is returned, its complete

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onTx(txes: List<iTransaction>)

Called when transactions arrive

Link copied to clipboard
Link copied to clipboard