Skip to content

Commit

Permalink
made the block weight max value smaller to see if the blocks been too…
Browse files Browse the repository at this point in the history
… heavy
  • Loading branch information
slanesuke committed Apr 14, 2024
1 parent 9c71bf0 commit 7acf56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ fn main() {

for tx in valid_tx_clone {
let tx_weight = calculate_transaction_weight(&tx.transaction);
if total_weight + tx_weight > 4000000 {
if total_weight + tx_weight > 3000000 {
// If the block weight exceeds the limit, break the loop
break;
}
Expand Down

0 comments on commit 7acf56c

Please sign in to comment.