aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-18 17:31:49 +0800
committerzelig <viktor.tron@gmail.com>2015-03-18 17:31:49 +0800
commitca8d18417358906e32a33a7c03c51b6849c46dda (patch)
tree761fbf99ccbd4a733edce9b659f0b2a52952cf98 /eth
parentb6aa88c099c16b38f0aebc749f7c95170426f787 (diff)
downloadgo-tangerine-ca8d18417358906e32a33a7c03c51b6849c46dda.tar
go-tangerine-ca8d18417358906e32a33a7c03c51b6849c46dda.tar.gz
go-tangerine-ca8d18417358906e32a33a7c03c51b6849c46dda.tar.bz2
go-tangerine-ca8d18417358906e32a33a7c03c51b6849c46dda.tar.lz
go-tangerine-ca8d18417358906e32a33a7c03c51b6849c46dda.tar.xz
go-tangerine-ca8d18417358906e32a33a7c03c51b6849c46dda.tar.zst
go-tangerine-ca8d18417358906e32a33a7c03c51b6849c46dda.zip
fix eth tests
Diffstat (limited to 'eth')
-rw-r--r--eth/protocol_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/eth/protocol_test.go b/eth/protocol_test.go
index 4bed71663..108fb4475 100644
--- a/eth/protocol_test.go
+++ b/eth/protocol_test.go
@@ -216,7 +216,7 @@ func (self *ethProtocolTester) checkMsg(i int, code uint64, val interface{}) (ms
}
func (self *ethProtocolTester) run() {
- err := runEthProtocol(self.txPool, self.chainManager, self.blockPool, testPeer(), self.rw)
+ err := runEthProtocol(ProtocolVersion, NetworkId, self.txPool, self.chainManager, self.blockPool, testPeer(), self.rw)
self.quit <- err
}
@@ -235,8 +235,8 @@ func TestStatusMsgErrors(t *testing.T) {
var status statusMsgData
eth.checkMsg(0, StatusMsg, &status) // first outgoing msg should be StatusMsg
if status.TD.Cmp(td) != 0 ||
- status.ProtocolVersion != eth.ProtocolVersion ||
- status.NetworkId != eth.NetworkId ||
+ status.ProtocolVersion != ProtocolVersion ||
+ status.NetworkId != NetworkId ||
status.TD.Cmp(td) != 0 ||
bytes.Compare(status.CurrentBlock, currentBlock) != 0 ||
bytes.Compare(status.GenesisBlock, genesis) != 0 {