Skip to content

Commit

Permalink
feat: introduce a BATCH_SPEND_LIMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaslong committed Jan 22, 2025
1 parent cf2224e commit 065a96b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions console/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ pub trait Network:
const MAX_FEE: u64 = 1_000_000_000_000_000;
/// The maximum number of microcredits that can be spent on a finalize block.
const TRANSACTION_SPEND_LIMIT: u64 = 100_000_000;
/// The maximum number of microcredits that can be spent by the transactions in a batch.
/// This implies the block spend limit is bounded at `TRANSACTION_SPEND_LIMIT * N::NUM_MAX_CERTIFICATES`.
const BATCH_SPEND_LIMIT: u64 = Self::TRANSACTION_SPEND_LIMIT;
/// The base cost in microcredits to verify an execution.
/// NOTE: this constant reflects the compute cost of an execution, but is not required to be paid by the user.
const EXECUTION_BASE_COST: u64 = 2_000_000; // 2 million microcredits.
Expand Down

0 comments on commit 065a96b

Please sign in to comment.