Fix blockchain hook tests.
This commit is contained in:
parent
97c44a8fe6
commit
a693104bcb
@ -2,14 +2,14 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
"math/big"
|
||||||
"github.com/ethereum/go-ethereum/plugins"
|
"github.com/ethereum/go-ethereum/plugins"
|
||||||
"github.com/openrelayxyz/plugeth-utils/core"
|
"github.com/openrelayxyz/plugeth-utils/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestReorgLongHeadersHook(t *testing.T) {
|
func TestReorgLongHeadersHook(t *testing.T) {
|
||||||
invoked := false
|
invoked := false
|
||||||
done := plugins.HookTester("NewHead", func(b []byte, h core.Hash, logs [][]byte) {
|
done := plugins.HookTester("NewHead", func(b []byte, h core.Hash, logs [][]byte, td *big.Int) {
|
||||||
invoked = true
|
invoked = true
|
||||||
if b == nil {
|
if b == nil {
|
||||||
t.Errorf("Expected block to be non-nil")
|
t.Errorf("Expected block to be non-nil")
|
||||||
|
Loading…
Reference in New Issue
Block a user