We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c8d40 commit 428ede2Copy full SHA for 428ede2
consensus/src/main/java/org/tron/consensus/dpos/DposTask.java
@@ -91,6 +91,11 @@ private State produceBlock() {
91
try {
92
synchronized (dposService.getBlockHandle().getLock()) {
93
94
+ state = stateManager.getState();
95
+ if (!State.OK.equals(state)) {
96
+ return state;
97
+ }
98
+
99
long slot = dposSlot.getSlot(System.currentTimeMillis() + 50);
100
if (slot == 0) {
101
return State.NOT_TIME_YET;
0 commit comments