Skip to content

Commit

Permalink
Fix an incorrect return type
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Dec 2, 2022
1 parent 548dfde commit c20f0e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zebra-rpc/src/methods/get_block_template_rpcs/zip317.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,9 @@ fn checked_add_transaction_weighted_random(
// Unpaid actions are always zero for transactions that pay the conventional fee,
// so this limit always remains the same after they are added.
*remaining_block_unpaid_actions -= candidate_tx.unpaid_actions;

(new_tx_weights, true)
} else {
(new_tx_weights, false)
}

new_tx_weights
}

/// Choose a transaction from `transactions`, using the previously set up `weighted_index`.
Expand Down

0 comments on commit c20f0e9

Please sign in to comment.