Skip to content

Commit

Permalink
fix firehose tests by adding the default block config
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Voiculescu committed Jan 30, 2025
1 parent 6032afd commit 3b1a1dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eth/tracers/firehose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func blockEvent(height uint64) tracing.BlockEvent {
return tracing.BlockEvent{
Block: types.NewBlock(&types.Header{
Number: big.NewInt(int64(height)),
}, nil, nil, nil),
}, nil, nil, nil, types.DefaultBlockConfig),
TD: b(1),
}
}
Expand Down
2 changes: 1 addition & 1 deletion eth/tracers/internal/tracetest/firehose/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func runPrestateBlock(t *testing.T, prestatePath string, hooks *tracing.Hooks) {
GasLimit: context.GasLimit,
BaseFee: context.BaseFee,
ParentBeaconRoot: ptr(common.Hash{}),
}, &types.Body{Transactions: []*types.Transaction{tx}}, nil, trie.NewStackTrie(nil))
}, &types.Body{Transactions: []*types.Transaction{tx}}, nil, trie.NewStackTrie(nil), types.DefaultBlockConfig)

hooks.OnBlockchainInit(prestate.Genesis.Config)
hooks.OnBlockStart(tracing.BlockEvent{
Expand Down
2 changes: 1 addition & 1 deletion eth/tracers/internal/tracetest/firehose/firehose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestFirehoseChain(t *testing.T) {
Time: context.Time,
GasLimit: context.GasLimit,
BaseFee: context.BaseFee,
}, nil, nil, nil)
}, nil, nil, nil, types.DefaultBlockConfig)

blockchain.SetBlockValidatorAndProcessorForTesting(
ignoreValidateStateValidator{core.NewBlockValidator(genesis.Config, blockchain)},
Expand Down

0 comments on commit 3b1a1dc

Please sign in to comment.