Commit ca8d1841 authored by zelig's avatar zelig

fix eth tests

parent b6aa88c0
...@@ -216,7 +216,7 @@ func (self *ethProtocolTester) checkMsg(i int, code uint64, val interface{}) (ms ...@@ -216,7 +216,7 @@ func (self *ethProtocolTester) checkMsg(i int, code uint64, val interface{}) (ms
} }
func (self *ethProtocolTester) run() { 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 self.quit <- err
} }
...@@ -235,8 +235,8 @@ func TestStatusMsgErrors(t *testing.T) { ...@@ -235,8 +235,8 @@ func TestStatusMsgErrors(t *testing.T) {
var status statusMsgData var status statusMsgData
eth.checkMsg(0, StatusMsg, &status) // first outgoing msg should be StatusMsg eth.checkMsg(0, StatusMsg, &status) // first outgoing msg should be StatusMsg
if status.TD.Cmp(td) != 0 || if status.TD.Cmp(td) != 0 ||
status.ProtocolVersion != eth.ProtocolVersion || status.ProtocolVersion != ProtocolVersion ||
status.NetworkId != eth.NetworkId || status.NetworkId != NetworkId ||
status.TD.Cmp(td) != 0 || status.TD.Cmp(td) != 0 ||
bytes.Compare(status.CurrentBlock, currentBlock) != 0 || bytes.Compare(status.CurrentBlock, currentBlock) != 0 ||
bytes.Compare(status.GenesisBlock, genesis) != 0 { bytes.Compare(status.GenesisBlock, genesis) != 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment