From abe90263f765b97f6e82824767ffe29ac37716fd Mon Sep 17 00:00:00 2001 From: Raymond Date: Fri, 18 Jan 2019 19:10:44 +0800 Subject: [PATCH 1/3] add logs for the bank module --- modules/auth/keeper.go | 6 ++++++ modules/bank/keeper.go | 2 ++ 2 files changed, 8 insertions(+) diff --git a/modules/auth/keeper.go b/modules/auth/keeper.go index d82577b27..2cee0d866 100644 --- a/modules/auth/keeper.go +++ b/modules/auth/keeper.go @@ -233,6 +233,9 @@ func (am AccountKeeper) IncreaseTotalLoosenToken(ctx sdk.Context, coins sdk.Coin bzNew := am.cdc.MustMarshalBinaryLengthPrefixed(totalLoosenToken) store := ctx.KVStore(am.key) store.Set(TotalLoosenTokenKey, bzNew) + + ctx.Logger().Info("Execute IncreaseTotalLoosenToken Successed", + "increaseCoins", coins.String(), "totalLoosenToken", totalLoosenToken.String()) } func (am AccountKeeper) DecreaseTotalLoosenToken(ctx sdk.Context, coins sdk.Coins) { @@ -251,6 +254,9 @@ func (am AccountKeeper) DecreaseTotalLoosenToken(ctx sdk.Context, coins sdk.Coin bzNew := am.cdc.MustMarshalBinaryLengthPrefixed(totalLoosenToken) store := ctx.KVStore(am.key) store.Set(TotalLoosenTokenKey, bzNew) + + ctx.Logger().Info("Execute DecreaseTotalLoosenToken Successed", + "decreaseCoins", coins.String(), "totalLoosenToken", totalLoosenToken.String()) } //---------------------------------------- diff --git a/modules/bank/keeper.go b/modules/bank/keeper.go index 006de44b5..a13f9e7c7 100644 --- a/modules/bank/keeper.go +++ b/modules/bank/keeper.go @@ -318,6 +318,8 @@ func burnCoins(ctx sdk.Context, am auth.AccountKeeper, from string, amt sdk.Coin "burnAmount", []byte(amt.String()), ) + ctx.Logger().Info("Execute Burntoken Successed", "burnFrom", from, "burnAmount", amt.String()) + return burnTags, nil } From 28a2d0087c2479464971606853edc83b4b87db7c Mon Sep 17 00:00:00 2001 From: Raymond Date: Fri, 18 Jan 2019 19:18:36 +0800 Subject: [PATCH 2/3] fix a null pointer issue --- modules/stake/handler.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/stake/handler.go b/modules/stake/handler.go index 31fe5e4dc..a1cd7ece3 100644 --- a/modules/stake/handler.go +++ b/modules/stake/handler.go @@ -166,13 +166,14 @@ func handleMsgEditValidator(ctx sdk.Context, msg types.MsgEditValidator, k keepe if err != nil { return err.Result() } + ctx.Logger().Debug("Update validator commission rate", "validator_addr", msg.ValidatorAddr.String(), + "commission_rate", msg.CommissionRate.String()) validator.Commission = commission k.OnValidatorModified(ctx, msg.ValidatorAddr) } k.SetValidator(ctx, validator) - ctx.Logger().Debug("Edit validator", "validator_addr", msg.ValidatorAddr.String(), - "commission_rate", msg.CommissionRate.String()) + ctx.Logger().Debug("Edit validator", "validator_addr", msg.ValidatorAddr.String()) tags := sdk.NewTags( tags.DstValidator, []byte(msg.ValidatorAddr.String()), From b079c030596b6dcfe6ccae9e2c04c0f0b475f80b Mon Sep 17 00:00:00 2001 From: Raymond Date: Mon, 21 Jan 2019 14:59:34 +0800 Subject: [PATCH 3/3] release version v0.11.0-rc0 --- CHANGELOG.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++ version/version.go | 2 +- 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a967f7be1..3f2466ed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,57 @@ # Changelog + +## 0.11.0-rc0 + +*January 21th, 2019* + +- [iris] Move the upgrade tally threshold into the software upgrade proposal +- [iris] Limit the size of transaction +- [iris] Tendermint's blockstore also needs to consume gas when storing transactions +- [iris] Proposer censorship slashing to prevent the proposer from submitting block containing garbage tx data +- [iris] The proposer must deposit 30% of the mindeposit when submitting the proposal +- [iris] Make more check about every msg's ValidateBasic() +- [iris] Add flag --output-file to save export result and ensure result is consistent +- [iris] Add new param service/TxSizeLimit to limit the service tx size +- [iris] Block mint doesn't depend on BFT time +- [iris] Fix infinite gas meter utilization during aborted ante handler executions +- [iris] Auto-config bech32 prefixes based on network type +- [iris] Improve the system logs + +- [iriscli] Make the result of `iriscli tendermint tx` readable +- [iriscli] Improve the output format of the query proposals +- [iriscli] Enhance the query-signals cmd to print the accumulated signal voting power percent + +- [iristool] Add support for consensus address and pubkey + + +## 0.10.2 + +*January 17th, 2019* + +- [iris] The proposer must deposit 30% of the mindeposit when submitting the proposal + + +## 0.10.1 + +*January 17th, 2019* + +- [iriscli] Fix issue about query validator information +- [iriscli] Fix cli query proposals error + + +## 0.10.0 + +*January 16th, 2019* + +- [iris] Add flag --output-file to save export result and ensure result is consistent +- [iris] Improve invariant checking coverage and fix distribution bugs +- [iriscli] Make the result of `iriscli tendermint tx` readable +- [iriscli] Query cmd return details about software upgrade and tax usage proposal +- [tendermint] Fix the inconformity of too many evidences check +- [tendermint] Fix replay bug of `iris export` + + ## 0.10.0-rc0 *January 8th, 2019* diff --git a/version/version.go b/version/version.go index 1f3722d78..f1988e071 100644 --- a/version/version.go +++ b/version/version.go @@ -9,7 +9,7 @@ import ( // Version - Iris Version const ProtocolVersion = 0 -const Version = "0.11.0-Alpha" +const Version = "0.11.0-rc0" // GitCommit set by build flags var GitCommit = ""