Skip to content

Commit

Permalink
feat: add BlockGasTargetMillion
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jul 29, 2024
1 parent 54b409c commit f2c4928
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
12 changes: 0 additions & 12 deletions packages/taiko-client/bindings/encoding/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,6 @@ var (
Name: "blobIndex",
Type: "uint8",
},
{
Name: "basefeeAdjustmentQuotient",
Type: "uint8",
},
{
Name: "basefeeSharingPctg",
Type: "uint8",
},
{
Name: "blockGasIssuance",
Type: "uint32",
},
}
transitionComponents = []abi.ArgumentMarshaling{
{
Expand Down
3 changes: 3 additions & 0 deletions packages/taiko-client/bindings/encoding/protocol_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var (
StateRootSyncInternal: 16,
MaxAnchorHeightOffset: 64,
BasefeeSharingPctg: 75,
BlockGasTargetMillion: 20,
OntakeForkHeight: 374_400,
}
HeklaProtocolConfig = &bindings.TaikoDataConfig{
Expand All @@ -32,6 +33,7 @@ var (
StateRootSyncInternal: 16,
MaxAnchorHeightOffset: 64,
BasefeeSharingPctg: 75,
BlockGasTargetMillion: 20,
OntakeForkHeight: 540_000,
}
MainnetProtocolConfig = &bindings.TaikoDataConfig{
Expand All @@ -44,6 +46,7 @@ var (
StateRootSyncInternal: 16,
MaxAnchorHeightOffset: 64,
BasefeeSharingPctg: 75,
BlockGasTargetMillion: 20,
OntakeForkHeight: 374_400,
}
)
Expand Down
14 changes: 6 additions & 8 deletions packages/taiko-client/driver/chain_syncer/blob/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,12 @@ func (s *Syncer) createExecutionPayloads(
SuggestedFeeRecipient: meta.GetCoinbase(),
Withdrawals: withdrawals,
BlockMetadata: &engine.BlockMetadata{
Beneficiary: meta.GetCoinbase(),
GasLimit: uint64(meta.GetGasLimit()) + consensus.AnchorGasLimit,
Timestamp: meta.GetTimestamp(),
TxList: txListBytes,
MixHash: meta.GetDifficulty(),
ExtraData: meta.GetExtraData(),
BasefeeSharingPctg: 0, // TODO: remove this
Beneficiary: meta.GetCoinbase(),
GasLimit: uint64(meta.GetGasLimit()) + consensus.AnchorGasLimit,
Timestamp: meta.GetTimestamp(),
TxList: txListBytes,
MixHash: meta.GetDifficulty(),
ExtraData: meta.GetExtraData(),
},
BaseFeePerGas: baseFee,
L1Origin: l1Origin,
Expand All @@ -474,7 +473,6 @@ func (s *Syncer) createExecutionPayloads(
"random", attributes.Random,
"suggestedFeeRecipient", attributes.SuggestedFeeRecipient,
"withdrawals", len(attributes.Withdrawals),
"basefeeSharingPctg", attributes.BlockMetadata.BasefeeSharingPctg,
"gasLimit", attributes.BlockMetadata.GasLimit,
"timestamp", attributes.BlockMetadata.Timestamp,
"mixHash", attributes.BlockMetadata.MixHash,
Expand Down

0 comments on commit f2c4928

Please sign in to comment.