File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
framework/src/main/java/org/tron/core Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 174174import org .tron .core .db .Manager ;
175175import org .tron .core .db .TransactionContext ;
176176import org .tron .core .db2 .core .Chainbase ;
177+ import org .tron .core .db2 .core .Chainbase .Cursor ;
177178import org .tron .core .exception .AccountResourceInsufficientException ;
178179import org .tron .core .exception .BadItemException ;
179180import org .tron .core .exception .ContractExeException ;
@@ -784,8 +785,10 @@ public WitnessList getPaginatedNowWitnessList(long offset, long limit) throws
784785 In the maintenance period, the VoteStores will be cleared.
785786 To avoid the race condition of VoteStores deleted but Witness vote counts not updated,
786787 return retry error.
788+ Only apply to non-solidity request.
787789 */
788- if (chainBaseManager .getDynamicPropertiesStore ().getStateFlag () == 1 ) {
790+ boolean isSolidityRequest = Args .getInstance ().isSolidityNode () || (getCursor () == Cursor .SOLIDITY );
791+ if (!isSolidityRequest && chainBaseManager .getDynamicPropertiesStore ().getStateFlag () == 1 ) {
789792 String message =
790793 "Service temporarily unavailable during maintenance period. Please try again later." ;
791794 throw new MaintenanceUnavailableException (message );
You can’t perform that action at this time.
0 commit comments