Module arbitrary

Source
Expand description

Randomised property testing for Blocks.

Structs§

LedgerState
The configuration data for proptest when generating arbitrary chains
LedgerStateOverride
Overrides for arbitrary LedgerStates.

Constants§

MAX_PARTIAL_CHAIN_BLOCKS
The chain length for most zebra-state proptests.
PREVOUTS_CHAIN_HEIGHT
The chain length for most zebra-chain proptests.

Functions§

allow_all_transparent_coinbase_spends
Skip checking transparent coinbase spends in Block::partial_chain_strategy.
find_valid_utxo_for_spend
Find a valid transparent::OutPoint in utxos to spend in transaction.
fix_generated_transaction
Fix transaction so it obeys more consensus rules.