File tree Expand file tree Collapse file tree
framework/src/main/java/org/tron/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1155,7 +1155,8 @@ private void switchFork(BlockCapsule newHead)
11551155 | ValidateScheduleException
11561156 | VMIllegalException
11571157 | ZksnarkException
1158- | BadBlockException e ) {
1158+ | BadBlockException
1159+ | EventBloomException e ) {
11591160 logger .warn (e .getMessage (), e );
11601161 exception = e ;
11611162 throw e ;
Original file line number Diff line number Diff line change @@ -93,14 +93,14 @@ public LogFilterElement[] matchBlockOneByOne()
9393 String blockHash = manager .getChainBaseManager ().getBlockIdByNum (blockNum ).toString ();
9494 List <LogFilterElement > matchedLog = matchBlock (logFilterWrapper .getLogFilter (), blockNum ,
9595 blockHash , transactionInfoList , false );
96+
9697 if (!matchedLog .isEmpty ()) {
98+ if (logFilterElementList .size () + matchedLog .size () > LogBlockQuery .MAX_RESULT ) {
99+ throw new JsonRpcTooManyResultException (
100+ "query returned more than " + LogBlockQuery .MAX_RESULT + " results" );
101+ }
97102 logFilterElementList .addAll (matchedLog );
98103 }
99-
100- if (logFilterElementList .size () > LogBlockQuery .MAX_RESULT ) {
101- throw new JsonRpcTooManyResultException (
102- "query returned more than " + LogBlockQuery .MAX_RESULT + " results" );
103- }
104104 }
105105
106106 return logFilterElementList .toArray (new LogFilterElement [0 ]);
You can’t perform that action at this time.
0 commit comments