mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
chore: avoid useless PoSePunish log spam (#5678)
## Issue being fixed or feature implemented No need to log things like `punished MN <protxhash>, penalty 515->515 (max=515)` (check block 907818 on testnet, it has a lot of these) ## What was done? ## How Has This Been Tested? n/a ## Breaking Changes n/a ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
This commit is contained in:
parent
8f597a3f2b
commit
e20cb56bde
@ -348,7 +348,7 @@ void CDeterministicMNList::PoSePunish(const uint256& proTxHash, int penalty, boo
|
||||
newState->nPoSePenalty += penalty;
|
||||
newState->nPoSePenalty = std::min(maxPenalty, newState->nPoSePenalty);
|
||||
|
||||
if (debugLogs) {
|
||||
if (debugLogs && dmn->pdmnState->nPoSePenalty != maxPenalty) {
|
||||
LogPrintf("CDeterministicMNList::%s -- punished MN %s, penalty %d->%d (max=%d)\n",
|
||||
__func__, proTxHash.ToString(), dmn->pdmnState->nPoSePenalty, newState->nPoSePenalty, maxPenalty);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user