|
|
@ -1423,8 +1423,9 @@ func TestAdd(t *testing.T) { |
|
|
|
if tt.block != nil { |
|
|
|
if tt.block != nil { |
|
|
|
// Fake a header for the new set of transactions
|
|
|
|
// Fake a header for the new set of transactions
|
|
|
|
header := &types.Header{ |
|
|
|
header := &types.Header{ |
|
|
|
Number: big.NewInt(int64(chain.CurrentBlock().Number.Uint64() + 1)), |
|
|
|
Number: big.NewInt(int64(chain.CurrentBlock().Number.Uint64() + 1)), |
|
|
|
BaseFee: chain.CurrentBlock().BaseFee, // invalid, but nothing checks it, yolo
|
|
|
|
Difficulty: common.Big0, |
|
|
|
|
|
|
|
BaseFee: chain.CurrentBlock().BaseFee, // invalid, but nothing checks it, yolo
|
|
|
|
} |
|
|
|
} |
|
|
|
// Inject the fake block into the chain
|
|
|
|
// Inject the fake block into the chain
|
|
|
|
txs := make([]*types.Transaction, len(tt.block)) |
|
|
|
txs := make([]*types.Transaction, len(tt.block)) |
|
|
|