File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
src/main/java/org/tron/core/db Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ private static class DynamicResourceProperties {
120
120
121
121
private static final byte [] FORK_CONTROLLER = "FORK_CONTROLLER" .getBytes ();
122
122
private static final String FORK_PREFIX = "FORK_VERSION_" ;
123
- private static final byte [] SOLID_NUM_WITH_VERSION_5 = "SOLID_NUM_WITH_VERSION_5" .getBytes ();
124
123
125
124
//This value is only allowed to be 0, 1, -1
126
125
private static final byte [] REMOVE_THE_POWER_OF_THE_GR = "REMOVE_THE_POWER_OF_THE_GR" .getBytes ();
@@ -1412,19 +1411,7 @@ public byte[] statsByVersion(int version) {
1412
1411
String statsKey = FORK_PREFIX + version ;
1413
1412
return revokingDB .getUnchecked (statsKey .getBytes ());
1414
1413
}
1415
-
1416
- public void setSolidNumWithVersion5 (long blockNum ) {
1417
- byte [] longBytes = ByteArray .fromLong (blockNum );
1418
- put (SOLID_NUM_WITH_VERSION_5 , new BytesCapsule (longBytes ));
1419
- }
1420
-
1421
- public long getSolidNumWithVersion5 () {
1422
- return Optional .ofNullable (getUnchecked (SOLID_NUM_WITH_VERSION_5 ))
1423
- .map (BytesCapsule ::getData )
1424
- .map (ByteArray ::toLong )
1425
- .orElse (-1L );
1426
- }
1427
-
1414
+
1428
1415
public boolean getForked () {
1429
1416
byte [] value = revokingDB .getUnchecked (FORK_CONTROLLER );
1430
1417
return value == null ? Boolean .FALSE : Boolean .valueOf (new String (value ));
You can’t perform that action at this time.
0 commit comments