Fix up some doc links (#2180)
This commit is contained in:
parent
2685fc746e
commit
57fb5c028c
|
@ -49,7 +49,7 @@ proptest! {
|
|||
}
|
||||
|
||||
/// Confirm that each counted header takes at least COUNTED_HEADER_LEN bytes when serialized.
|
||||
/// This verifies that our calculated `TrustedPreallocate::max_allocation()` is indeed an upper bound.
|
||||
/// This verifies that our calculated [`TrustedPreallocate::max_allocation`] is indeed an upper bound.
|
||||
#[test]
|
||||
fn counted_header_min_length(header in Header::arbitrary_with(()), transaction_count in (0..MAX_BLOCK_BYTES)) {
|
||||
let header = CountedHeader {
|
||||
|
|
|
@ -24,7 +24,7 @@ proptest! {
|
|||
/// Confirm that each `Spend<PerSpendAnchor>` takes exactly
|
||||
/// ANCHOR_PER_SPEND_SIZE bytes when serialized.
|
||||
///
|
||||
/// This verifies that our calculated `TrustedPreallocate::max_allocation()`
|
||||
/// This verifies that our calculated [`TrustedPreallocate::max_allocation`]
|
||||
/// is indeed an upper bound.
|
||||
#[test]
|
||||
fn anchor_per_spend_size_is_small_enough(spend in Spend::<PerSpendAnchor>::arbitrary_with(())) {
|
||||
|
@ -128,7 +128,7 @@ proptest! {
|
|||
/// Confirm that each output takes exactly OUTPUT_SIZE bytes when serialized
|
||||
/// in a V4 or V5 transaction.
|
||||
///
|
||||
/// This verifies that our calculated `TrustedPreallocate::max_allocation()`
|
||||
/// This verifies that our calculated [`TrustedPreallocate::max_allocation`]
|
||||
/// is indeed an upper bound.
|
||||
#[test]
|
||||
fn output_size_is_small_enough(output in Output::arbitrary_with(())) {
|
||||
|
|
|
@ -13,7 +13,7 @@ use std::convert::TryInto;
|
|||
|
||||
proptest! {
|
||||
/// Confirm that each JoinSplit<Btcv14Proof> takes exactly BCTV14_JOINSPLIT_SIZE bytes when serialized.
|
||||
/// This verifies that our calculated `TrustedPreallocate::max_allocation()` is indeed an upper bound.
|
||||
/// This verifies that our calculated [`TrustedPreallocate::max_allocation`] is indeed an upper bound.
|
||||
#[test]
|
||||
fn joinsplit_btcv14_size_is_correct(joinsplit in <JoinSplit<Bctv14Proof>>::arbitrary_with(())) {
|
||||
let serialized = joinsplit.zcash_serialize_to_vec().expect("Serialization to vec must succeed");
|
||||
|
@ -21,7 +21,7 @@ proptest! {
|
|||
}
|
||||
|
||||
/// Confirm that each JoinSplit<Btcv14Proof> takes exactly GROTH16_JOINSPLIT_SIZE bytes when serialized.
|
||||
/// This verifies that our calculated `TrustedPreallocate::max_allocation()` is indeed an upper bound.
|
||||
/// This verifies that our calculated [`TrustedPreallocate::max_allocation`] is indeed an upper bound.
|
||||
#[test]
|
||||
fn joinsplit_groth16_size_is_correct(joinsplit in <JoinSplit<Groth16Proof>>::arbitrary_with(())) {
|
||||
let serialized = joinsplit.zcash_serialize_to_vec().expect("Serialization to vec must succeed");
|
||||
|
|
|
@ -17,7 +17,7 @@ use std::{convert::TryInto, sync::Arc};
|
|||
|
||||
proptest! {
|
||||
/// Confirm that each spend takes at least MIN_TRANSPARENT_TX_SIZE bytes when serialized.
|
||||
/// This verifies that our calculated `TrustedPreallocate::max_allocation()` is indeed an upper bound.
|
||||
/// This verifies that our calculated [`TrustedPreallocate::max_allocation`] is indeed an upper bound.
|
||||
#[test]
|
||||
fn tx_size_is_small_enough(tx in Transaction::arbitrary()) {
|
||||
let serialized = tx.zcash_serialize_to_vec().expect("Serialization to vec must succeed");
|
||||
|
@ -25,7 +25,7 @@ proptest! {
|
|||
}
|
||||
|
||||
/// Confirm that each spend takes at least MIN_TRANSPARENT_TX_SIZE bytes when serialized.
|
||||
/// This verifies that our calculated `TrustedPreallocate::max_allocation()` is indeed an upper bound.
|
||||
/// This verifies that our calculated [`TrustedPreallocate::max_allocation`] is indeed an upper bound.
|
||||
#[test]
|
||||
fn transparent_input_size_is_small_enough(input in Input::arbitrary()) {
|
||||
let serialized = input.zcash_serialize_to_vec().expect("Serialization to vec must succeed");
|
||||
|
@ -33,7 +33,7 @@ proptest! {
|
|||
}
|
||||
|
||||
/// Confirm that each spend takes at least MIN_TRANSPARENT_TX_SIZE bytes when serialized.
|
||||
/// This verifies that our calculated `TrustedPreallocate::max_allocation()` is indeed an upper bound.
|
||||
/// This verifies that our calculated [`TrustedPreallocate::max_allocation`] is indeed an upper bound.
|
||||
#[test]
|
||||
fn transparent_output_size_is_small_enough(output in Output::arbitrary()) {
|
||||
let serialized = output.zcash_serialize_to_vec().expect("Serialization to vec must succeed");
|
||||
|
|
|
@ -9,7 +9,7 @@ use std::convert::TryInto;
|
|||
|
||||
proptest! {
|
||||
/// Confirm that each InventoryHash takes exactly INV_HASH_SIZE bytes when serialized.
|
||||
/// This verifies that our calculated `TrustedPreallocate::max_allocation()` is indeed an upper bound.
|
||||
/// This verifies that our calculated [`TrustedPreallocate::max_allocation`] is indeed an upper bound.
|
||||
#[test]
|
||||
fn inv_hash_size_is_correct(inv in InventoryHash::arbitrary()) {
|
||||
let serialized_inv = inv
|
||||
|
|
Loading…
Reference in New Issue