Module zebra_chain::block::tests::generate
source ยท Expand description
Generate large transparent blocks and transactions for testing.
Constantsยง
- The maximum number of bytes used to serialize a CompactSize, for the transaction, input, and output counts generated by this module.
- The minimum size of the blocks produced by this module.
- The number of bytes used to serialize a version 1 transaction header.
Functionsยง
- Returns a generated block header, and its canonical serialized bytes.
- Returns a generated transparent input, and its canonical serialized bytes.
- Generate a block with multiple transparent transactions just below limit
- Generate a block with one transaction and multiple transparent inputs just below limit
- Generate a block with one transaction and multiple transparent outputs just below limit
- Implementation of block generation with multiple transparent transactions
- Returns a generated transparent output, and its canonical serialized bytes.
- Generate a block with multiple transparent transactions just above limit
- Generate a block with one transaction and multiple transparent inputs just above limit
- Generate a block with one transaction and multiple transparent outputs just above limit
- Implementation of block generation with one transaction and multiple transparent inputs
- Implementation of block generation with one transaction and multiple transparent outputs
- Returns a generated transparent transaction, and its canonical serialized bytes.