Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

Commit

Permalink
docs: add doc for rollup tx size constant
Browse files Browse the repository at this point in the history
  • Loading branch information
gakonst committed Mar 27, 2021
1 parent 98892e8 commit 3d37357
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/rollup_fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import (
"math/big"
)

/// ROLLUP_BASE_TX_SIZE is the encoded rollup transaction's compressed size excluding
/// the variable length data.
/// Ref: https://github.com/ethereum-optimism/contracts/blob/409f190518b90301db20d0d4f53760021bc203a8/contracts/optimistic-ethereum/OVM/precompiles/OVM_SequencerEntrypoint.sol#L47
var ROLLUP_BASE_TX_SIZE int = 96

/// CalculateFee calculates the fee that must be paid to the Rollup sequencer, taking into
Expand Down

0 comments on commit 3d37357

Please sign in to comment.