Skip to content

Commit 74e1036

Browse files
fix: correct block header gas and signature comments (#3331)
Signed-off-by: MozirDmitriy <[email protected]> Co-authored-by: Rodrigo <[email protected]>
1 parent 3eb65b2 commit 74e1036

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

core/block.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ type Header struct {
2424
GlobalStateRoot *felt.Felt
2525
// The Starknet address of the sequencer who created this block
2626
SequencerAddress *felt.Felt
27-
// The amount Transactions and Receipts stored in this block
27+
// Number of transactions in this block
2828
TransactionCount uint64
29-
// The amount of events stored in transaction receipts
29+
// Number of events stored in transaction receipts
3030
EventCount uint64
3131
// The time the sequencer created this block before executing transactions
3232
Timestamp uint64
@@ -35,17 +35,18 @@ type Header struct {
3535
ProtocolVersion string
3636
// Bloom filter on the events emitted this block
3737
EventsBloom *bloom.BloomFilter
38-
// Amount of WEI charged per Gas spent on L1
38+
// L1 gas price in WEI (ETH), amount charged per unit of L1 gas
3939
L1GasPriceETH *felt.Felt `cbor:"gasprice"`
40-
// Amount of STRK charged per Gas spent on L2
40+
// Consensus signatures on this block header (not account/transaction signatures)
4141
Signatures [][]*felt.Felt
42-
// Amount of STRK charged per Gas spent on L1
42+
// L1 gas price in FRI (STRK), amount charged per unit of L1 gas
4343
L1GasPriceSTRK *felt.Felt `cbor:"gaspricestrk"`
44-
// Amount of STRK charged per Gas spent on L2
44+
// L1 data availability mode for this block (CALLDATA or BLOB)
4545
L1DAMode L1DAMode
4646
// The gas price for L1 data availability
4747
L1DataGasPrice *GasPrice
48-
L2GasPrice *GasPrice
48+
// The gas price for L2 execution
49+
L2GasPrice *GasPrice
4950
}
5051

5152
type L1DAMode uint

0 commit comments

Comments
 (0)