diff --git a/zebra-chain/src/block/tests/preallocate.rs b/zebra-chain/src/block/tests/preallocate.rs index ad35db6d..99f9d82b 100644 --- a/zebra-chain/src/block/tests/preallocate.rs +++ b/zebra-chain/src/block/tests/preallocate.rs @@ -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 { diff --git a/zebra-chain/src/sapling/tests/preallocate.rs b/zebra-chain/src/sapling/tests/preallocate.rs index 28934024..f6d7c96e 100644 --- a/zebra-chain/src/sapling/tests/preallocate.rs +++ b/zebra-chain/src/sapling/tests/preallocate.rs @@ -24,7 +24,7 @@ proptest! { /// Confirm that each `Spend` 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::::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(())) { diff --git a/zebra-chain/src/sprout/tests/preallocate.rs b/zebra-chain/src/sprout/tests/preallocate.rs index 2e92ead3..46868329 100644 --- a/zebra-chain/src/sprout/tests/preallocate.rs +++ b/zebra-chain/src/sprout/tests/preallocate.rs @@ -13,7 +13,7 @@ use std::convert::TryInto; proptest! { /// Confirm that each JoinSplit 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 >::arbitrary_with(())) { let serialized = joinsplit.zcash_serialize_to_vec().expect("Serialization to vec must succeed"); @@ -21,7 +21,7 @@ proptest! { } /// Confirm that each JoinSplit 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 >::arbitrary_with(())) { let serialized = joinsplit.zcash_serialize_to_vec().expect("Serialization to vec must succeed"); diff --git a/zebra-chain/src/transaction/tests/preallocate.rs b/zebra-chain/src/transaction/tests/preallocate.rs index 5ef1b382..34b72d81 100644 --- a/zebra-chain/src/transaction/tests/preallocate.rs +++ b/zebra-chain/src/transaction/tests/preallocate.rs @@ -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"); diff --git a/zebra-network/src/protocol/external/tests/preallocate.rs b/zebra-network/src/protocol/external/tests/preallocate.rs index e7647d77..21ef38bb 100644 --- a/zebra-network/src/protocol/external/tests/preallocate.rs +++ b/zebra-network/src/protocol/external/tests/preallocate.rs @@ -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