fix: print genesisStateRoot on startup (#1136)

This commit is contained in:
Péter Garamvölgyi 2025-03-06 13:08:59 +01:00 committed by GitHub
parent 478940e796
commit 61cfff3bc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.