Skip to content

Commit 669b1f2

Browse files
Little-Peonyclaude
andcommitted
fix(framework): add null/0 return after while(flag) loops in SolidityNode
Compiler requires explicit return values when while(flag) can exit without entering the loop body (e.g. during shutdown). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 21b16ea commit 669b1f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

framework/src/main/java/org/tron/program/SolidityNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ private Block getBlockByNum(long blockNum) {
179179
sleep(exceptionSleepTime);
180180
}
181181
}
182+
return null;
182183
}
183184

184185
private long getLastSolidityBlockNum() {
@@ -195,6 +196,7 @@ private long getLastSolidityBlockNum() {
195196
sleep(exceptionSleepTime);
196197
}
197198
}
199+
return 0;
198200
}
199201

200202
public void sleep(long time) {

0 commit comments

Comments
 (0)