From 8665034357c2150e9deb200ec9e5d22040452107 Mon Sep 17 00:00:00 2001 From: leej1012 Date: Tue, 28 May 2024 14:47:10 +0800 Subject: [PATCH] Update getAddressStakingInfo --- .../java/com/github/ontio/service/impl/AddressServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/AddressServiceImpl.java b/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/AddressServiceImpl.java index dae88ae1..88ae941f 100644 --- a/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/AddressServiceImpl.java +++ b/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/AddressServiceImpl.java @@ -1584,8 +1584,8 @@ private boolean verifyReCAPTCHAToken(String token) { public ResponseBean getAddressStakingInfo(String address, String channel) { List currentOffChainInfo = nodeInfoOffChainMapper.selectAllStakingNodeInfo(); List nodeStakeDtos = new ArrayList<>(); + initSDK(); if (ConstantParam.CHANNEL_ONTO.equalsIgnoreCase(channel)) { - initSDK(); int currentRound = sdk.getGovernanceView(); for (NodeInfoOffChain nodeInfoOffChain : currentOffChainInfo) { String publicKey = nodeInfoOffChain.getPublicKey();