File tree Expand file tree Collapse file tree
framework/src/main/java/org/tron/core/db Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2232,9 +2232,9 @@ private void postBlockTrigger(final BlockCapsule blockCapsule) {
22322232 private List <BlockCapsule > getCrossBlockCapsule (long solidityBlkNum ) {
22332233 List <BlockCapsule > capsuleList = new ArrayList <>();
22342234 long start = lastUsedSolidityNum < 0 ? (solidityBlkNum - 1 ) : lastUsedSolidityNum ;
2235- for (long i = start + 1 ; i <= solidityBlkNum ; i ++) {
2235+ for (long blockNum = start + 1 ; blockNum <= solidityBlkNum ; blockNum ++) {
22362236 try {
2237- BlockCapsule capsule = chainBaseManager .getBlockByNum (solidityBlkNum );
2237+ BlockCapsule capsule = chainBaseManager .getBlockByNum (blockNum );
22382238 capsuleList .add (capsule );
22392239 } catch (Exception e ) {
22402240 logger .error ("GetCrossBlockCapsule getBlockByNum blkNum = {} except, error is {}." ,
You can’t perform that action at this time.
0 commit comments