Skip to content

Commit 37a8d16

Browse files
committed
hard fork in maintenance
1 parent 27daf81 commit 37a8d16

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/main/java/org/tron/core/db/DynamicPropertiesStore.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ private static class DynamicResourceProperties {
120120

121121
private static final byte[] FORK_CONTROLLER = "FORK_CONTROLLER".getBytes();
122122
private static final String FORK_PREFIX = "FORK_VERSION_";
123-
private static final byte[] SOLID_NUM_WITH_VERSION_5 = "SOLID_NUM_WITH_VERSION_5".getBytes();
124123

125124
//This value is only allowed to be 0, 1, -1
126125
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) {
14121411
String statsKey = FORK_PREFIX + version;
14131412
return revokingDB.getUnchecked(statsKey.getBytes());
14141413
}
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+
14281415
public boolean getForked() {
14291416
byte[] value = revokingDB.getUnchecked(FORK_CONTROLLER);
14301417
return value == null ? Boolean.FALSE : Boolean.valueOf(new String(value));

0 commit comments

Comments
 (0)