3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-11 09:45:50 +00:00

crowetic's logging suggestions for the new reward distribution update

This commit is contained in:
kennycud 2024-12-30 12:15:27 -08:00
parent a300ac2393
commit c2ba9d142c

View File

@ -2479,6 +2479,7 @@ public class Block {
final long foundersShare = 1_00000000 - totalShares;
BlockRewardCandidate rewardCandidate = new BlockRewardCandidate("Founders", foundersShare, founderDistributor);
rewardCandidates.add(rewardCandidate);
LOGGER.info("logging foundersShare prior to reward modifications {}",foundersShare);
}
else if (this.blockData.getHeight() >= BlockChain.getInstance().getAdminsReplaceFoundersHeight()) {
try (final Repository repository = RepositoryManager.getRepository()) {
@ -2502,6 +2503,8 @@ public class Block {
distributeBlockRewardShare(distributionAmount, onlineMinterAdminAccounts, balanceChanges);
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;
BlockRewardCandidate minterAdminRewardCandidate
@ -2510,6 +2513,8 @@ public class Block {
totalShares -= minterAdminShare;
LOGGER.info("MINTER ADMIN SHARE: {}",minterAdminShare);
// all dev admins
List<String> devAdminAddresses
= groupRepository.getGroupAdmins(1).stream()
@ -2520,6 +2525,7 @@ public class Block {
= (distributionAmount, balanceChanges) -> distributeToAccounts(distributionAmount, devAdminAddresses, balanceChanges);
long devAdminShare = 1_00000000 - totalShares;
LOGGER.info("DEV ADMIN SHARE: {}",devAdminShare);
BlockRewardCandidate devAdminRewardCandidate
= new BlockRewardCandidate("Dev Admins", devAdminShare,devAdminDistributor);
rewardCandidates.add(devAdminRewardCandidate);