Merge PR #2213: Make the slashing logger print a string representation of slashFactor

This commit is contained in:
Christopher Goes 2018-09-01 23:06:02 +02:00 committed by GitHub
commit c96b88f504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ func (k Keeper) Slash(ctx sdk.Context, pubkey crypto.PubKey, infractionHeight in
// Log that a slash occurred! // Log that a slash occurred!
logger.Info(fmt.Sprintf( logger.Info(fmt.Sprintf(
"Validator %s slashed by slashFactor %v, burned %v tokens", "Validator %s slashed by slashFactor %s, burned %v tokens",
pubkey.Address(), slashFactor, tokensToBurn)) pubkey.Address(), slashFactor.String(), tokensToBurn))
// TODO Return event(s), blocked on https://github.com/tendermint/tendermint/pull/1803 // TODO Return event(s), blocked on https://github.com/tendermint/tendermint/pull/1803
return return