Skip to content

Commit

Permalink
max block weight fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudarshan-21 committed Apr 30, 2024
1 parent 40538fc commit 2a424a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1,065 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def main():
valid_transactions = [tx for tx in transactions if validate_transaction(tx)]
print(f"Number of valid transactions read from mempool: {len(valid_transactions)}")

max_total_weight = 4000000 # Maximum cumulative weight allowed (4 million weight units)
max_total_weight = 3000000 # Maximum cumulative weight allowed (4 million weight units)

# Trim transactions to meet the weight constraint
selected_transactions, total_weight = trim_transactions(valid_transactions, max_total_weight)
Expand Down
Loading

0 comments on commit 2a424a5

Please sign in to comment.