Skip to content

Commit

Permalink
fix: print genesisStateRoot on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Thegaram committed Mar 6, 2025
1 parent 478940e commit a78313d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,13 @@ func (s ScrollConfig) String() string {
maxTxPayloadBytesPerBlock = fmt.Sprintf("%v", *s.MaxTxPayloadBytesPerBlock)
}

return fmt.Sprintf("{useZktrie: %v, maxTxPerBlock: %v, MaxTxPayloadBytesPerBlock: %v, feeVaultAddress: %v, l1Config: %v}",
s.UseZktrie, maxTxPerBlock, maxTxPayloadBytesPerBlock, s.FeeVaultAddress, s.L1Config.String())
genesisStateRoot := "<nil>"
if s.GenesisStateRoot != nil {
genesisStateRoot = fmt.Sprintf("%v", *s.GenesisStateRoot)
}

return fmt.Sprintf("{useZktrie: %v, maxTxPerBlock: %v, MaxTxPayloadBytesPerBlock: %v, feeVaultAddress: %v, l1Config: %v, genesisStateRoot: %v}",
s.UseZktrie, maxTxPerBlock, maxTxPayloadBytesPerBlock, s.FeeVaultAddress, s.L1Config.String(), genesisStateRoot)
}

// IsValidTxCount returns whether the given block's transaction count is below the limit.
Expand Down

0 comments on commit a78313d

Please sign in to comment.