Skip to content

Commit 6c3bda4

Browse files
author
Sunny Jiao
committed
update review condition
1 parent a6ca75e commit 6c3bda4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

framework/src/main/java/org/tron/core/Wallet.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,10 +785,11 @@ public WitnessList getPaginatedNowWitnessList(long offset, long limit) throws
785785
In the maintenance period, the VoteStores will be cleared.
786786
To avoid the race condition of VoteStores deleted but Witness vote counts not updated,
787787
return retry error.
788-
Only apply to non-solidity request.
788+
Only apply to requests that rely on the latest block,
789+
which means the normal fullnode requests with HEAD cursor.
789790
*/
790-
boolean isSolidityRequest = Args.getInstance().isSolidityNode() || (getCursor() == Cursor.SOLIDITY);
791-
if (!isSolidityRequest && chainBaseManager.getDynamicPropertiesStore().getStateFlag() == 1) {
791+
if (!Args.getInstance().isSolidityNode() && (getCursor() == Cursor.HEAD) &&
792+
chainBaseManager.getDynamicPropertiesStore().getStateFlag() == 1) {
792793
String message =
793794
"Service temporarily unavailable during maintenance period. Please try again later.";
794795
throw new MaintenanceUnavailableException(message);

0 commit comments

Comments
 (0)