Skip to content

Commit 95b07b4

Browse files
authored
Merge pull request #3618 from forfreeday/feature/namefix
name fix
2 parents f09bedb + 08e8544 commit 95b07b4

File tree

20 files changed

+39
-34
lines changed

20 files changed

+39
-34
lines changed

actuator/src/main/java/org/tron/core/actuator/AccountPermissionUpdateActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public boolean execute(Object object) throws ContractExeException {
5353
accountStore.put(ownerAddress, account);
5454

5555
Commons.adjustBalance(accountStore, ownerAddress, -fee);
56-
if (chainBaseManager.getDynamicPropertiesStore().supportOptimizeBlackHole()) {
56+
if (chainBaseManager.getDynamicPropertiesStore().supportBlackHoleOptimization()) {
5757
chainBaseManager.getDynamicPropertiesStore().burnTrx(fee);
5858
} else {
5959
Commons.adjustBalance(accountStore, accountStore.getBlackhole(), fee);

actuator/src/main/java/org/tron/core/actuator/AssetIssueActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public boolean execute(Object result) throws ContractExeException {
8585
}
8686

8787
Commons.adjustBalance(accountStore, ownerAddress, -fee);
88-
if (dynamicStore.supportOptimizeBlackHole()) {
88+
if (dynamicStore.supportBlackHoleOptimization()) {
8989
dynamicStore.burnTrx(fee);
9090
} else {
9191
Commons.adjustBalance(accountStore, accountStore.getBlackhole(), fee);//send to blackhole

actuator/src/main/java/org/tron/core/actuator/CreateAccountActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public boolean execute(Object result)
5151
Commons
5252
.adjustBalance(accountStore, accountCreateContract.getOwnerAddress().toByteArray(), -fee);
5353
// Add to blackhole address
54-
if (dynamicStore.supportOptimizeBlackHole()) {
54+
if (dynamicStore.supportBlackHoleOptimization()) {
5555
dynamicStore.burnTrx(fee);
5656
} else {
5757
Commons.adjustBalance(accountStore, accountStore.getBlackhole(), fee);

actuator/src/main/java/org/tron/core/actuator/ExchangeCreateActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public boolean execute(Object object) throws ContractExeException {
118118

119119
accountStore.put(accountCapsule.createDbKey(), accountCapsule);
120120
dynamicStore.saveLatestExchangeNum(id);
121-
if (dynamicStore.supportOptimizeBlackHole()) {
121+
if (dynamicStore.supportBlackHoleOptimization()) {
122122
dynamicStore.burnTrx(fee);
123123
} else {
124124
Commons.adjustBalance(accountStore, accountStore.getBlackhole(), fee);

actuator/src/main/java/org/tron/core/actuator/MarketCancelOrderActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public boolean execute(Object object) throws ContractExeException {
9797

9898
// fee
9999
accountCapsule.setBalance(accountCapsule.getBalance() - fee);
100-
if (dynamicStore.supportOptimizeBlackHole()) {
100+
if (dynamicStore.supportBlackHoleOptimization()) {
101101
dynamicStore.burnTrx(fee);
102102
} else {
103103
Commons.adjustBalance(accountStore, accountStore.getBlackhole(), fee);

actuator/src/main/java/org/tron/core/actuator/MarketSellAssetActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public boolean execute(Object object) throws ContractExeException {
126126
// fee
127127
accountCapsule.setBalance(accountCapsule.getBalance() - fee);
128128
// add to blackhole address
129-
if (dynamicStore.supportOptimizeBlackHole()) {
129+
if (dynamicStore.supportBlackHoleOptimization()) {
130130
dynamicStore.burnTrx(fee);
131131
} else {
132132
Commons.adjustBalance(accountStore, accountStore.getBlackhole(), fee);

actuator/src/main/java/org/tron/core/actuator/TransferActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public boolean execute(Object object) throws ContractExeException {
5757
}
5858

5959
Commons.adjustBalance(accountStore, ownerAddress, -(Math.addExact(fee, amount)));
60-
if (dynamicStore.supportOptimizeBlackHole()) {
60+
if (dynamicStore.supportBlackHoleOptimization()) {
6161
dynamicStore.burnTrx(fee);
6262
} else {
6363
Commons.adjustBalance(accountStore, accountStore.getBlackhole(), fee);

actuator/src/main/java/org/tron/core/actuator/TransferAssetActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public boolean execute(Object result) throws ContractExeException {
8585
accountStore.put(toAddress, toAccountCapsule);
8686

8787
Commons.adjustBalance(accountStore, ownerAccountCapsule, -fee);
88-
if (dynamicStore.supportOptimizeBlackHole()) {
88+
if (dynamicStore.supportBlackHoleOptimization()) {
8989
dynamicStore.burnTrx(fee);
9090
} else {
9191
Commons.adjustBalance(accountStore, accountStore.getBlackhole(), fee);

actuator/src/main/java/org/tron/core/actuator/WitnessCreateActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private void createWitness(final WitnessCreateContract witnessCreateContract)
142142
long cost = dynamicStore.getAccountUpgradeCost();
143143
Commons
144144
.adjustBalance(accountStore, witnessCreateContract.getOwnerAddress().toByteArray(), -cost);
145-
if (dynamicStore.supportOptimizeBlackHole()) {
145+
if (dynamicStore.supportBlackHoleOptimization()) {
146146
dynamicStore.burnTrx(cost);
147147
} else {
148148
Commons.adjustBalance(accountStore, accountStore.getBlackhole(), +cost);

actuator/src/main/java/org/tron/core/utils/ProposalUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public static void validator(DynamicPropertiesStore dynamicPropertiesStore,
422422
}
423423
break;
424424
}
425-
case ALLOW_OPTIMIZE_BLACKHOLE: {
425+
case ALLOW_BLACKHOLE_OPTIMIZATION: {
426426
if (!forkController.pass(ForkBlockVersionEnum.VERSION_4_1_2)) {
427427
throw new ContractValidateException(
428428
"Bad chain parameter id [ALLOW_REMOVE_BLACKHOLE]");
@@ -487,7 +487,7 @@ public enum ProposalType { // current value, value range
487487
MARKET_CANCEL_FEE(46), // 0 [0,10_000_000_000]
488488
MAX_FEE_LIMIT(47), // [0, 10_000_000_000]
489489
ALLOW_TRANSACTION_FEE_POOL(48), // 0, 1
490-
ALLOW_OPTIMIZE_BLACKHOLE(49);// 0,1
490+
ALLOW_BLACKHOLE_OPTIMIZATION(49);// 0,1
491491

492492
private long code;
493493

0 commit comments

Comments
 (0)