Skip to content

Commit e0fb4d8

Browse files
committed
rm sun address
1 parent ce3912f commit e0fb4d8

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,11 +1214,6 @@ public void updateSignedWitness(BlockCapsule block) {
12141214

12151215
this.getWitnessStore().put(witnessCapsule.getAddress().toByteArray(), witnessCapsule);
12161216

1217-
try {
1218-
adjustBalance(accountStore.getSun(), -WITNESS_PAY_PER_BLOCK);
1219-
} catch (BalanceInsufficientException e) {
1220-
logger.warn(e.getMessage(), e);
1221-
}
12221217
try {
12231218
adjustAllowance(witnessCapsule.getAddress().toByteArray(), WITNESS_PAY_PER_BLOCK);
12241219
} catch (BalanceInsufficientException e) {

src/main/java/org/tron/core/witness/WitnessController.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.tron.core.db.Manager;
2727
import org.tron.core.db.VotesStore;
2828
import org.tron.core.db.WitnessStore;
29-
import org.tron.core.exception.BalanceInsufficientException;
3029
import org.tron.core.exception.HeaderNotFound;
3130

3231
@Slf4j
@@ -416,12 +415,6 @@ private void payStandbyWitness(List<ByteString> list) {
416415
}
417416
}
418417

419-
try {
420-
manager.adjustBalance(manager.getAccountStore().getSun(), -totalPay);
421-
} catch (BalanceInsufficientException e) {
422-
logger.warn(e.getMessage(), e);
423-
}
424-
425418
}
426419

427420
}

0 commit comments

Comments
 (0)