forked from Qortal/qortal
Log the parent block's signature when minting a new block, to help us keep track of the chain it's being minted on.
This commit is contained in:
parent
02ace06526
commit
dbf1ed40b3
@ -290,15 +290,17 @@ public class BlockMinter extends Thread {
|
|||||||
RewardShareData rewardShareData = repository.getAccountRepository().getRewardShare(newBlock.getBlockData().getMinterPublicKey());
|
RewardShareData rewardShareData = repository.getAccountRepository().getRewardShare(newBlock.getBlockData().getMinterPublicKey());
|
||||||
|
|
||||||
if (rewardShareData != null) {
|
if (rewardShareData != null) {
|
||||||
LOGGER.info(String.format("Minted block %d, sig %.8s by %s on behalf of %s",
|
LOGGER.info(String.format("Minted block %d, sig %.8s, parent sig: %.8s by %s on behalf of %s",
|
||||||
newBlock.getBlockData().getHeight(),
|
newBlock.getBlockData().getHeight(),
|
||||||
Base58.encode(newBlock.getBlockData().getSignature()),
|
Base58.encode(newBlock.getBlockData().getSignature()),
|
||||||
|
Base58.encode(newBlock.getParent().getSignature()),
|
||||||
rewardShareData.getMinter(),
|
rewardShareData.getMinter(),
|
||||||
rewardShareData.getRecipient()));
|
rewardShareData.getRecipient()));
|
||||||
} else {
|
} else {
|
||||||
LOGGER.info(String.format("Minted block %d, sig %.8s by %s",
|
LOGGER.info(String.format("Minted block %d, sig %.8s, parent sig: %.8s by %s",
|
||||||
newBlock.getBlockData().getHeight(),
|
newBlock.getBlockData().getHeight(),
|
||||||
Base58.encode(newBlock.getBlockData().getSignature()),
|
Base58.encode(newBlock.getBlockData().getSignature()),
|
||||||
|
Base58.encode(newBlock.getParent().getSignature()),
|
||||||
newBlock.getMinter().getAddress()));
|
newBlock.getMinter().getAddress()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user