Skip to content

Commit

Permalink
test block
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 14, 2024
1 parent 7acf56c commit 31642d2
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 > 3000000 {
if total_weight + tx_weight > 1000000 {
// If the block weight exceeds the limit, break the loop
break;
}
Expand Down

0 comments on commit 31642d2

Please sign in to comment.