fn arbitrary_with(ledger_override: Self::Parameters) -> Self::Strategy {
        (
            any::<Height>(),
            any::<Network>(),
            any::<bool>(),
            any::<bool>(),
        )
            .prop_map(
                move |(height, network, transaction_has_valid_network_upgrade, has_coinbase)| {
                    LedgerState {
                        height: ledger_override.height_override.unwrap_or(height),
                        network,
                        network_upgrade_override: ledger_override.network_upgrade_override,
                        previous_block_hash_override: ledger_override.previous_block_hash_override,
                        transaction_version_override: ledger_override.transaction_version_override,
                        transaction_has_valid_network_upgrade: ledger_override
                            .transaction_has_valid_network_upgrade
                            || transaction_has_valid_network_upgrade,
                        has_coinbase: ledger_override.always_has_coinbase || has_coinbase,
                    }
                },
            )
            .boxed()
    }
/// Generate an arbitrary [`LedgerState`].
///
/// The default strategy arbitrarily skips some coinbase transactions, and
/// has an arbitrary start height. To override, use a specific [`LegderState`]
/// strategy method.
Generate an arbitrary [`LedgerState`].
The default strategy arbitrarily skips some coinbase transactions, and
has an arbitrary start height. To override, use a specific [`LegderState`]
strategy method.
Generate an arbitrary [ ` LedgerState ` ] . The default strategy arbitrarily skips some coinbase transactions and has an arbitrary start height . To override use a specific [ ` LegderState ` ] strategy method .
fn arbitrary_with(ledger_override: Self::Parameters) -> Self::Strategy {
        (
            any::<Height>(),
            any::<Network>(),
            any::<bool>(),
            any::<bool>(),
        )
            .prop_map(
                move |(height, network, transaction_has_valid_network_upgrade, has_coinbase)| {
                    LedgerState {
                        height: ledger_override.height_override.unwrap_or(height),
                        network,
                        network_upgrade_override: ledger_override.network_upgrade_override,
                        previous_block_hash_override: ledger_override.previous_block_hash_override,
                        transaction_version_override: ledger_override.transaction_version_override,
                        transaction_has_valid_network_upgrade: ledger_override
                            .transaction_has_valid_network_upgrade
                            || transaction_has_valid_network_upgrade,
                        has_coinbase: ledger_override.always_has_coinbase || has_coinbase,
                    }
                },
            )
            .boxed()
    }
fn arbitrary_with ( ledger_override : Self :: Parameters ) -> Self :: Strategy { ( any :: < Height > ( ) , any :: < Network > ( ) , any :: < bool > ( ) , any :: < bool > ( ) , ) . prop_map ( move | ( height , network , transaction_has_valid_network_upgrade , has_coinbase ) | { LedgerState { height : ledger_override . height_override . unwrap_or ( height ) , network , network_upgrade_override : ledger_override . network_upgrade_override , previous_block_hash_override : ledger_override . previous_block_hash_override , transaction_version_override : ledger_override . transaction_version_override , transaction_has_valid_network_upgrade : ledger_override . transaction_has_valid_network_upgrade || transaction_has_valid_network_upgrade , has_coinbase : ledger_override . always_has_coinbase || has_coinbase , } } , ) . boxed ( ) }
Generate an arbitrary [`LedgerState`].
Generate an arbitrary [ ` LedgerState ` ] .
ledger_override
Self::Parameters