Don't print the whole UTXODiff to log, it might be quite huge (#1318)

This commit is contained in:
Svarog 2020-12-29 17:16:38 +02:00 committed by GitHub
parent 52427cb953
commit 0f93189c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,8 @@ func (csm *consensusStateManager) restorePastUTXO(blockHash *externalapi.DomainH
return nil, err
}
utxoDiffs = append(utxoDiffs, utxoDiff)
log.Debugf("Collected UTXO diff for block %s: %s", nextBlockHash, utxoDiff)
log.Debugf("Collected UTXO diff for block %s: toAdd: %d, toRemove: %d",
nextBlockHash, utxoDiff.ToAdd().Len(), utxoDiff.ToRemove().Len())
exists, err := csm.utxoDiffStore.HasUTXODiffChild(csm.databaseContext, nextBlockHash)
if err != nil {