Skip to content

Commit 490f0b2

Browse files
revert SR reward
1 parent d8bbaeb commit 490f0b2

File tree

22 files changed

+0
-1600
lines changed

22 files changed

+0
-1600
lines changed

chainbase/src/main/java/org/tron/core/store/DynamicPropertiesStore.java

-13
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ public class DynamicPropertiesStore extends TronStoreWithRevoking<BytesCapsule>
143143
private static final byte[] CURRENT_CYCLE_NUMBER = "CURRENT_CYCLE_NUMBER".getBytes();
144144
private static final byte[] CHANGE_DELEGATION = "CHANGE_DELEGATION".getBytes();
145145
private static final byte[] ALLOW_PBFT = "ALLOW_PBFT".getBytes();
146-
private static final byte[] CURRENT_CYCLE_TIMESTAMP = "CURRENT_CYCLE_TIMESTAMP".getBytes();
147146

148147
private static final byte[] ALLOW_MARKET_TRANSACTION = "ALLOW_MARKET_TRANSACTION".getBytes();
149148
private static final byte[] MARKET_SELL_FEE = "MARKET_SELL_FEE".getBytes();
@@ -1999,18 +1998,6 @@ public long getAllowAccountStateRoot() {
19991998
() -> new IllegalArgumentException("not found ALLOW_ACCOUNT_STATE_ROOT"));
20001999
}
20012000

2002-
public void saveCurrentCycleTiimeStamp(long timeStamp) {
2003-
this.put(CURRENT_CYCLE_TIMESTAMP, new BytesCapsule(ByteArray.fromLong(timeStamp)));
2004-
2005-
}
2006-
2007-
public long getCurrentCycleTimeStamp() {
2008-
return Optional.ofNullable(getUnchecked(CURRENT_CYCLE_TIMESTAMP))
2009-
.map(BytesCapsule::getData)
2010-
.map(ByteArray::toLong)
2011-
.orElse(0L);
2012-
}
2013-
20142001
public boolean allowAccountStateRoot() {
20152002
return getAllowAccountStateRoot() == 1;
20162003
}

common/src/main/java/org/tron/common/parameter/CommonParameter.java

-3
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,6 @@ public class CommonParameter {
379379
public boolean solidityNodeHttpEnable = true;
380380
@Getter
381381
@Setter
382-
public boolean nodeHttpStatisticsSRRewardEnable = false;
383-
@Getter
384-
@Setter
385382
public int maxTransactionPendingSize;
386383
@Getter
387384
@Setter

common/src/main/java/org/tron/core/Constant.java

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public class Constant {
9292
public static final String NODE_HTTP_SOLIDITY_PORT = "node.http.solidityPort";
9393
public static final String NODE_HTTP_FULLNODE_ENABLE = "node.http.fullNodeEnable";
9494
public static final String NODE_HTTP_SOLIDITY_ENABLE = "node.http.solidityEnable";
95-
public static final String NODE_HTTP_STATISTICS_SR_REWARD_SWITCH = "node.http.statisticsSRRewardSwitch"; // deprecated
9695
public static final String NODE_HTTP_PBFT_PORT = "node.http.PBFTPort";
9796

9897
public static final String NODE_RPC_THREAD = "node.rpc.thread";

common/src/main/java/org/tron/core/exception/AddressNotFound.java

-12
This file was deleted.

common/src/main/java/org/tron/core/exception/InvalidAddress.java

-12
This file was deleted.

consensus/src/main/java/org/tron/consensus/dpos/MaintenanceManager.java

-2
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ public void doMaintenance() {
144144
if (dynamicPropertiesStore.allowChangeDelegation()) {
145145
long nextCycle = dynamicPropertiesStore.getCurrentCycleNumber() + 1;
146146
dynamicPropertiesStore.saveCurrentCycleNumber(nextCycle);
147-
dynamicPropertiesStore.saveCurrentCycleTiimeStamp(dynamicPropertiesStore
148-
.getLatestBlockHeaderTimestamp());
149147
consensusDelegate.getAllWitnesses().forEach(witness -> {
150148
delegationStore.setBrokerage(nextCycle, witness.createDbKey(),
151149
delegationStore.getBrokerage(witness.createDbKey()));

0 commit comments

Comments
 (0)