Skip to content

Commit

Permalink
Fixes bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Jul 29, 2024
1 parent 95378fd commit 7173af7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions zebra-consensus/src/block/subsidy/funding_streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@ fn funding_stream_address_index(
))
.expect("no overflow should happen in this sub") as usize;

// Funding stream recipients may not have the same number of addresses on configured Testnets,
// the number of addresses for each recipient should be validated for a configured height range
// when configured Testnet parameters are built.
let num_addresses = funding_streams
.recipients()
.values()
.next()
// TODO: Return an Option from this function and replace `.unwrap()` with `?`
.unwrap()
.addresses()
.len();

assert!(index > 0 && index <= num_addresses);
// spec formula will output an index starting at 1 but
// Zebra indices for addresses start at zero, return converted.
Expand Down

0 comments on commit 7173af7

Please sign in to comment.