From cdb027e914b4b683588fc98b683e2613367acccf Mon Sep 17 00:00:00 2001 From: Alexander Bezobchuk Date: Tue, 27 Nov 2018 12:24:53 -0500 Subject: [PATCH] Merge PR #2917: Print commit ID in hex --- PENDING.md | 3 ++- baseapp/baseapp.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PENDING.md b/PENDING.md index ba13b81a2..b129bfcbb 100644 --- a/PENDING.md +++ b/PENDING.md @@ -77,7 +77,8 @@ IMPROVEMENTS - #2821 Codespaces are now strings - #2779 Introduce `ValidateBasic` to the `Tx` interface and call it in the ante handler. - - #2825 More staking and distribution invariants + - #2825 More staking and distribution invariants + * #2912 Print commit ID in hex when commit is synced. * Tendermint - #2796 Update to go-amino 0.14.1 diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index c3479a59b..157ec8f06 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -805,7 +805,7 @@ func (app *BaseApp) Commit() (res abci.ResponseCommit) { commitID := app.cms.Commit() // TODO: this is missing a module identifier and dumps byte array app.Logger.Debug("Commit synced", - "commit", commitID, + "commit", fmt.Sprintf("%X", commitID), ) // Reset the Check state to the latest committed