Expand description
Objects for JSON serialization and deserialization in message bodies of the ZMQ pub/sub interface. Handles JSON for the following subscriptions:
json-full-txpool_add(Vec<TxPoolAdd>)json-minimal-txpool_add(Vec<TxPoolAddMin>)json-full-chain_main(Vec<ChainMain>)json-minimal-chain_main(ChainMainMin)json-full-miner_data(MinerData)
Structsยง
- Bulletproof
Plus - Bulletproofs+ data used to validate the legitimacy of a Ring CT transaction.
- Chain
Main - ZMQ
json-full-chain_mainsubscriber messages contain an array ofChainMainJSON objects. EachChainMainobject represents a new block. Push messages only contain more than one block if a re-org occurred. - Chain
Main Min - ZMQ
json-minimal-chain_mainsubscriber messages contain a singleChainMainMinJSON object. Unlike the full version, only the topmost block is sent in the case of a re-org. - Clsag
- CLSAG signature fields
- Encrypted
- Holds the encrypted amount of a non-coinbase transaction output.
- Gen
- Additional namespace layer around the block height in
ChainMain; gen is another name for a coinbase transaction - Miner
Data - ZMQ
json-full-miner_datasubscriber messages contain a singleMinerDataobject that provides the necessary data to create a custom block template. There is no min version of this object. - Miner
Input - Holds the block height of the coinbase transaction.
- MinerTx
- Part of the new block information in
ChainMain - Output
- Transaction output data used by both
TxPoolAddandMinerTx - Pool
Input - Holds a single input for the
TxPoolAddinputsarray. - Pool
Ring Ct - Ring CT information used inside
TxPoolAdd - Prunable
- Data needed to validate a transaction that can optionally be pruned from older blocks.
- ToKey
- Same as
PoolInput(adds an extra JSON name layer) - ToTagged
Key - Holds the public key of an output destination with its view tag.
- TxBacklog
- Holds a transaction entry in the
MinerDatatx_backlogfield. - TxPool
Add - ZMQ
json-full-txpool_addpackets contain an array ofTxPoolAdd. - TxPool
AddMin - ZMQ
json-minimal-txpool_addsubscriber messages contain an array ofTxPoolAddMinJSON objects. SeeTxPoolAddfor information on which transactions are published to subscribers.