Skip to content

Commit

Permalink
revert change in test
Browse files Browse the repository at this point in the history
  • Loading branch information
gitglorythegreat authored Jun 3, 2024
1 parent cf63861 commit 2bb65a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/txpool/blobpool/blobpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (bc *testBlockChain) CurrentBlock() *types.Header {

for new(big.Int).Add(lo, big.NewInt(1)).Cmp(hi) != 0 {
mid := new(big.Int).Add(lo, hi)
mid.Rsh(mid, 1)
mid.Div(mid, big.NewInt(2))

if eip1559.CalcBaseFee(bc.config, &types.Header{
Number: blockNumber,
Expand All @@ -118,7 +118,7 @@ func (bc *testBlockChain) CurrentBlock() *types.Header {

for new(big.Int).Add(lo, big.NewInt(1)).Cmp(hi) != 0 {
mid := new(big.Int).Add(lo, hi)
mid.Rsh(mid, 1)
mid.Div(mid, big.NewInt(2))

if eip4844.CalcBlobFee(mid.Uint64()).Cmp(bc.blobfee.ToBig()) > 0 {
hi = mid
Expand Down

0 comments on commit 2bb65a0

Please sign in to comment.