Skip to content

Commit

Permalink
fix getSyncInfo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AionJayT committed Jun 14, 2018
1 parent d3da516 commit 9551b20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/aion/api/impl/Net.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public ApiMsg syncInfo() {

try {
Message.rsp_syncInfo msgRsp = Message.rsp_syncInfo.parseFrom(ApiUtils.parseBody(rsp).getData());
SyncInfo syncInfo = new SyncInfo(msgRsp.getSyncing(), msgRsp.getChainBestBlock(),
msgRsp.getNetworkBestBlock(), msgRsp.getMaxImportBlocks());
SyncInfo syncInfo = new SyncInfo(msgRsp.getSyncing(),
msgRsp.getNetworkBestBlock(), msgRsp.getChainBestBlock(), msgRsp.getMaxImportBlocks());

return new ApiMsg(syncInfo, ApiMsg.cast.OTHERS);
} catch (InvalidProtocolBufferException e) {
Expand Down

0 comments on commit 9551b20

Please sign in to comment.