mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-25 20:32:56 +00:00
core/vm: implement eip-7843
This commit is contained in:
parent
4a2a3d0e1f
commit
fd1f9cf0dd
1 changed files with 12 additions and 0 deletions
|
|
@ -1093,6 +1093,18 @@ func (b *Block) ExcessBlobGas(ctx context.Context) (*hexutil.Uint64, error) {
|
|||
return &ret, nil
|
||||
}
|
||||
|
||||
func (b *Block) SlotNumber(ctx context.Context) (*hexutil.Uint64, error) {
|
||||
header, err := b.resolveHeader(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if header.SlotNumber == nil {
|
||||
return nil, nil
|
||||
}
|
||||
ret := hexutil.Uint64(*header.SlotNumber)
|
||||
return &ret, nil
|
||||
}
|
||||
|
||||
// BlockFilterCriteria encapsulates criteria passed to a `logs` accessor inside
|
||||
// a block.
|
||||
type BlockFilterCriteria struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue