mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-11 17:55:50 +00:00
crowetic's logging suggestions for the new reward distribution update
This commit is contained in:
parent
a300ac2393
commit
c2ba9d142c
@ -2479,6 +2479,7 @@ public class Block {
|
|||||||
final long foundersShare = 1_00000000 - totalShares;
|
final long foundersShare = 1_00000000 - totalShares;
|
||||||
BlockRewardCandidate rewardCandidate = new BlockRewardCandidate("Founders", foundersShare, founderDistributor);
|
BlockRewardCandidate rewardCandidate = new BlockRewardCandidate("Founders", foundersShare, founderDistributor);
|
||||||
rewardCandidates.add(rewardCandidate);
|
rewardCandidates.add(rewardCandidate);
|
||||||
|
LOGGER.info("logging foundersShare prior to reward modifications {}",foundersShare);
|
||||||
}
|
}
|
||||||
else if (this.blockData.getHeight() >= BlockChain.getInstance().getAdminsReplaceFoundersHeight()) {
|
else if (this.blockData.getHeight() >= BlockChain.getInstance().getAdminsReplaceFoundersHeight()) {
|
||||||
try (final Repository repository = RepositoryManager.getRepository()) {
|
try (final Repository repository = RepositoryManager.getRepository()) {
|
||||||
@ -2502,6 +2503,8 @@ public class Block {
|
|||||||
distributeBlockRewardShare(distributionAmount, onlineMinterAdminAccounts, balanceChanges);
|
distributeBlockRewardShare(distributionAmount, onlineMinterAdminAccounts, balanceChanges);
|
||||||
|
|
||||||
long adminShare = 1_00000000 - totalShares;
|
long adminShare = 1_00000000 - totalShares;
|
||||||
|
LOGGER.info("initial total Shares: {}",totalShares);
|
||||||
|
LOGGER.info("logging adminShare after hardfork, this is the primary reward that will be split {}",adminShare);
|
||||||
|
|
||||||
long minterAdminShare = adminShare / 2;
|
long minterAdminShare = adminShare / 2;
|
||||||
BlockRewardCandidate minterAdminRewardCandidate
|
BlockRewardCandidate minterAdminRewardCandidate
|
||||||
@ -2510,6 +2513,8 @@ public class Block {
|
|||||||
|
|
||||||
totalShares -= minterAdminShare;
|
totalShares -= minterAdminShare;
|
||||||
|
|
||||||
|
LOGGER.info("MINTER ADMIN SHARE: {}",minterAdminShare);
|
||||||
|
|
||||||
// all dev admins
|
// all dev admins
|
||||||
List<String> devAdminAddresses
|
List<String> devAdminAddresses
|
||||||
= groupRepository.getGroupAdmins(1).stream()
|
= groupRepository.getGroupAdmins(1).stream()
|
||||||
@ -2520,6 +2525,7 @@ public class Block {
|
|||||||
= (distributionAmount, balanceChanges) -> distributeToAccounts(distributionAmount, devAdminAddresses, balanceChanges);
|
= (distributionAmount, balanceChanges) -> distributeToAccounts(distributionAmount, devAdminAddresses, balanceChanges);
|
||||||
|
|
||||||
long devAdminShare = 1_00000000 - totalShares;
|
long devAdminShare = 1_00000000 - totalShares;
|
||||||
|
LOGGER.info("DEV ADMIN SHARE: {}",devAdminShare);
|
||||||
BlockRewardCandidate devAdminRewardCandidate
|
BlockRewardCandidate devAdminRewardCandidate
|
||||||
= new BlockRewardCandidate("Dev Admins", devAdminShare,devAdminDistributor);
|
= new BlockRewardCandidate("Dev Admins", devAdminShare,devAdminDistributor);
|
||||||
rewardCandidates.add(devAdminRewardCandidate);
|
rewardCandidates.add(devAdminRewardCandidate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user