diff --git a/p2p/protocols/accounting_test.go b/p2p/protocols/accounting_test.go index 84de2cc9e7..3810ae2c9b 100644 --- a/p2p/protocols/accounting_test.go +++ b/p2p/protocols/accounting_test.go @@ -20,7 +20,6 @@ import ( "testing" "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/p2p/enode" "github.com/ethereum/go-ethereum/p2p/simulations/adapters" "github.com/ethereum/go-ethereum/rlp" ) @@ -31,11 +30,6 @@ type dummyBalance struct { peer *Peer } -//dummy Balance implementation -type testExchangeBalance struct { - balances map[enode.ID]int64 -} - //dummy Prices implementation type dummyPrices struct{} @@ -114,12 +108,6 @@ func (d *dummyBalance) Add(amount int64, peer *Peer) error { return nil } -//test exchanges balance implementation -func (d *testExchangeBalance) Add(amount int64, peer *Peer) error { - d.balances[peer.ID()] += amount - return nil -} - type testCase struct { msg interface{} size uint32