mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
p2p/protocols: finalized accounting implementation
This commit is contained in:
parent
f2dee249c3
commit
fdbbef4f5f
1 changed files with 0 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue