Skip to content

Commit

Permalink
Update base_layer/core/src/consensus/consensus_constants.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Hansie Odendaal <39146854+hansieodendaal@users.noreply.github.com>
  • Loading branch information
SWvheerden and hansieodendaal authored Dec 13, 2024
1 parent df967b9 commit fedb7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_layer/core/src/consensus/consensus_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl ConsensusConstants {

/// Maximum transaction weight used for the construction of new blocks. It leaves place for 1 kernel and 1 output
/// with default features, as well as the maximum possible value of the `coinbase_extra` field
pub fn max_block_weight_excluding_coinbase(&self, coinbase_number: usize) -> std::io::Result<u64> {
pub fn max_block_weight_excluding_coinbases(&self, number_of_coinbases: usize) -> std::io::Result<u64> {
Ok(self.max_block_transaction_weight - self.calculate_1_output_kernel_weight(coinbase_number)?)
}

Expand Down

0 comments on commit fedb7f3

Please sign in to comment.