Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 923b496

Browse files
committed
BlockExtras -> GetBlockExtra
1 parent 5d97c3b commit 923b496

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/types/block_ext.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ func (b *blockSerializable) updateToExtras(extras *BlockExtra) {
9393
}
9494

9595
func BlockExtData(b *Block) []byte {
96-
extras := BlockExtras(b)
96+
extras := GetBlockExtra(b)
9797
if extras.extdata == nil {
9898
return nil
9999
}
100100
return *extras.extdata
101101
}
102102

103103
func BlockVersion(b *Block) uint32 {
104-
return BlockExtras(b).version
104+
return GetBlockExtra(b).version
105105
}
106106

107107
func BlockExtDataGasUsed(b *Block) *big.Int {

core/types/libevm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ func WithBodyExtra(b *Body, extra *BodyExtra) *Body {
4040
return b
4141
}
4242

43-
func BlockExtras(b *Block) *BlockExtra {
43+
func GetBlockExtra(b *Block) *BlockExtra {
4444
return extras.Block.Get(b)
4545
}
4646

4747
func WithBlockExtras(b *Block, version uint32, extdata *[]byte, recalc bool) *Block {
48-
extras := BlockExtras(b)
48+
extras := GetBlockExtra(b)
4949

5050
extras.version = version
5151

0 commit comments

Comments
 (0)