We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 051493d commit 564db9aCopy full SHA for 564db9a
core/chain_makers.go
@@ -156,6 +156,11 @@ func (b *BlockGen) Number() *big.Int {
156
return new(big.Int).Set(b.header.Number)
157
}
158
159
+// Timestamp returns the timestamp of the block being generated.
160
+func (b *BlockGen) Timestamp() uint64 {
161
+ return b.header.Time
162
+}
163
+
164
// BaseFee returns the EIP-1559 base fee of the block being generated.
165
func (b *BlockGen) BaseFee() *big.Int {
166
return new(big.Int).Set(b.header.BaseFee)
0 commit comments