Skip to content

Commit

Permalink
Update getNodeOnChainConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Jun 5, 2024
1 parent 3b93b64 commit eab91aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ public class NodeManagementDto {
private String withdrawableAmount;

private String lockedAmount;

private int currentRound;
}
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,9 @@ public ResponseBean getNodeOnChainConfig(String address, String publicKey) {
}
try {
initSDK();
int currentRound = sdk.getGovernanceView();
nodeManagementDto.setCurrentRound(currentRound);

String peerPoolInfoStr = sdk.getPeerPoolInfo(publicKey);
if (StringUtils.hasLength(peerPoolInfoStr)) {
JSONObject peerPoolInfo = JSONObject.parseObject(peerPoolInfoStr);
Expand Down

0 comments on commit eab91aa

Please sign in to comment.