Skip to content

Commit a3593f6

Browse files
committed
WithBlockExtras -> WithBlockExtra
1 parent 923b496 commit a3593f6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

core/rawdb/accessors_chain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ func ReadBlock(db ethdb.Reader, hash common.Hash, number uint64) *types.Block {
524524
}
525525
block := types.NewBlockWithHeader(header).WithBody(body.Transactions, body.Uncles)
526526
bodyExtra := types.GetBodyExtra(body)
527-
block = types.WithBlockExtras(block, bodyExtra.Version, bodyExtra.ExtData, false)
527+
block = types.WithBlockExtra(block, bodyExtra.Version, bodyExtra.ExtData, false)
528528
return block
529529
}
530530

core/types/block_ext.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func NewBlockWithExtData(
130130
) *Block {
131131
b := NewBlock(header, txs, uncles, receipts, hasher)
132132
const version = 0
133-
return WithBlockExtras(b, version, &extdata, recalc)
133+
return WithBlockExtra(b, version, &extdata, recalc)
134134
}
135135

136136
func WrapWithTimestamp(b *Block) *BlockWithTimestamp {

core/types/libevm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func GetBlockExtra(b *Block) *BlockExtra {
4444
return extras.Block.Get(b)
4545
}
4646

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

5050
extras.version = version

ethclient/ethclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (ec *client) getBlock(ctx context.Context, method string, args ...interface
266266
txs[i] = tx.tx
267267
}
268268
block := types.NewBlockWithHeader(head).WithBody(txs, uncles)
269-
block = types.WithBlockExtras(block, body.Version, (*[]byte)(body.BlockExtraData), false)
269+
block = types.WithBlockExtra(block, body.Version, (*[]byte)(body.BlockExtraData), false)
270270
return block, nil
271271
}
272272

0 commit comments

Comments
 (0)