package
0.4.17
Repository: https://github.com/zcash/lightwalletd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BlockIngestor runs as a goroutine and polls zcashd for new blocks, adding them to the cache.
No description provided by the author
No description provided by the author
DarksideApplyStaged moves the staging area to the active block list.
No description provided by the author
No description provided by the author
DarksideClearIncomingTransactions empties the incoming transaction list.
DarksideGetIncomingTransactions returns all transactions we're received via SendTransaction().
Normally we would implement this functionality in the darksideRawRequest(), but this gRPC handler requires calling GetBlock, and we don't have a good way to fake that.
DarksideInit should be called once at startup in darksidewalletd mode.
No description provided by the author
DarksideReset allows the wallet test code to specify values that are returned by GetLightdInfo().
No description provided by the author
DarksideStageBlocks opens and reads blocks from the given URL and adds them to the staging area.
DarksideStageBlocksCreate creates empty blocks and adds them to the staging area.
DarksideStageBlockStream adds the block to the staging area.
DarksideStageTransaction adds the given transaction to the staging area.
DarksideStageTransactionsURL reads a list of transactions (hex-encoded, one per line) from the given URL, and associates them with the given height.
FirstRPC tests that we can successfully reach zcashd through the RPC interface.
GenerateCerts create self signed certificate for local development use (and, if using grpcurl, specify the -insecure argument option).
GetBlock returns the compact block at the requested height, first by querying the cache, then, if not found, will request the block from zcashd.
No description provided by the author
GetBlockRange returns a sequence of consecutive blocks in the given range.
No description provided by the author
No description provided by the author
NewBlockCache returns an instance of a block cache object.

# Variables

'make build' will overwrite this string with the output of git-describe (tag).
'make build' will overwrite this string with the output of git-describe (tag).
'make build' will overwrite this string with the output of git-describe (tag).
DarksideEnabled is true if --darkside-very-insecure was given on the command line.
'make build' will overwrite this string with the output of git-describe (tag).
Log as a global variable simplifies logging.
RawRequest points to the function to send a an RPC request to zcashd; in production, it points to btcsuite/btcd/rpcclient/rawrequest.go:RawRequest(); in unit tests it points to a function to mock RPCs to zcashd.
Time allows time-related functions to be mocked for testing, so that tests can be deterministic and so they don't require real time to elapse.
'make build' will overwrite this string with the output of git-describe (tag).

# Structs

BlockCache contains a consecutive set of recent compact blocks in marshalled form.
The following are JSON zcashd rpc requests and replies.
No description provided by the author
No description provided by the author
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.
The following are JSON zcashd rpc requests and replies.