Skip to content

Commit

Permalink
Revert "core: add basic chain history support in GenerateChain (ether…
Browse files Browse the repository at this point in the history
…eum#28428)"

This reverts commit 3b88194.
  • Loading branch information
devopsbo3 authored Nov 10, 2023
1 parent 19a5569 commit a674f74
Show file tree
Hide file tree
Showing 6 changed files with 150 additions and 295 deletions.
4 changes: 2 additions & 2 deletions core/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func genValueTx(nbytes int) func(int, *BlockGen) {
toaddr := common.Address{}
data := make([]byte, nbytes)
gas, _ := IntrinsicGas(data, nil, false, false, false, false)
signer := gen.Signer()
signer := types.MakeSigner(gen.config, big.NewInt(int64(i)), gen.header.Time)
gasPrice := big.NewInt(0)
if gen.header.BaseFee != nil {
gasPrice = gen.header.BaseFee
Expand Down Expand Up @@ -128,7 +128,7 @@ func genTxRing(naccounts int) func(int, *BlockGen) {
if gen.header.BaseFee != nil {
gasPrice = gen.header.BaseFee
}
signer := gen.Signer()
signer := types.MakeSigner(gen.config, big.NewInt(int64(i)), gen.header.Time)
for {
gas -= params.TxGas
if gas < params.TxGas {
Expand Down
Loading

0 comments on commit a674f74

Please sign in to comment.