Skip to content

Commit 92584e7

Browse files
AnnaShalevatxhsl
authored andcommitted
protocols: fix failing TestHandling dBFT protocol test
It was broken by #243. Signed-off-by: Anna Shaleva <[email protected]>
1 parent a72a2c8 commit 92584e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

eth/protocols/dbft/handler_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"testing"
99
"time"
1010

11+
"github.com/ethereum/go-ethereum/common"
1112
"github.com/ethereum/go-ethereum/common/hexutil"
1213
"github.com/ethereum/go-ethereum/crypto"
1314
"github.com/ethereum/go-ethereum/p2p"
@@ -28,9 +29,9 @@ func TestHandling(t *testing.T) {
2829
key, _ = crypto.GenerateKey()
2930
addr = crypto.PubkeyToAddress(key.PublicKey)
3031
bc = &testBC{height: 10}
31-
s1 = New(bc, nil)
32-
s2 = New(bc, nil)
33-
s3 = New(bc, nil)
32+
s1 = New(bc, nil, func(u uint64, address common.Address) bool { return true })
33+
s2 = New(bc, nil, func(u uint64, address common.Address) bool { return true })
34+
s3 = New(bc, nil, func(u uint64, address common.Address) bool { return true })
3435
p1 = p2p.NewPeer(enode.ID{1}, "peer1", nil)
3536
p2 = p2p.NewPeer(enode.ID{2}, "peer2", nil)
3637
p3 = p2p.NewPeer(enode.ID{3}, "peer3", nil)

0 commit comments

Comments
 (0)