Skip to content

Commit

Permalink
Fix test case errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyulong committed Mar 5, 2018
1 parent 102b9b1 commit 53299ce
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
import org.aion.crypto.ECKey;
import org.aion.crypto.ECKeyFac;
import org.aion.crypto.HashUtil;
import org.aion.p2p.Handler;
import org.aion.p2p.INode;
import org.aion.p2p.IP2pMgr;
import org.aion.p2p.Msg;
import org.aion.p2p.*;
import org.aion.zero.impl.StandaloneBlockchain;
import org.aion.zero.impl.types.AionBlock;
import org.junit.Test;
Expand Down Expand Up @@ -46,6 +43,11 @@ public long getBestBlockNumber() {
return this.latestBlockNumber;
}

@Override
public byte[] getTotalDifficulty() {
return new byte[0];
}

@Override
public byte[] getIp() {
return new byte[0];
Expand All @@ -66,13 +68,9 @@ public int getPort() {
return 0;
}

@Override
public long getTotalDifficulty() {
return 0;
}

@Override
public void updateStatus(long _bestBlockNumber, byte[] _bestBlockHash, long _totalDifficulty) {
public void updateStatus(long _bestBlockNumber, byte[] _bestBlockHash, byte[] _totalDifficulty) {

}
}
Expand All @@ -91,7 +89,7 @@ public Map<Integer, INode> getActiveNodes() {
}

@Override
public INode getRandom() {
public INodeMgr getNodeMgr() {
return null;
}

Expand All @@ -115,6 +113,11 @@ public void register(List<Handler> _hs) {

}

@Override
public INode getRandom(NodeRandPolicy nrp, long bbn) {
return null;
}

@Override
public void send(int _id, Msg _msg) {

Expand Down

0 comments on commit 53299ce

Please sign in to comment.