From 895e14d6bd9cdad98eab4a051decbaad46f7eebd Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Wed, 13 Dec 2017 17:57:43 +0100 Subject: [PATCH] Update Diffs to Changes, fix README --- README.md | 3 ++- example/dummy/dummy_test.go | 2 +- example/dummy/persistent_dummy.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 46abcc4fd..025479e46 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,8 @@ Here, we describe the requests and responses as function arguments and return va * __Arguments__: * `Height (int64)`: The block height that ended * __Returns__: - * `Diffs ([]Validator)`: Changed validators with new voting powers (0 to remove) + * `Changes ([]Validator)`: Changed validators with new voting powers (0 to remove) + * `ConsensusParamChanges (ConsensusParams)`: Communicate changes to consensus-critical time/size parameters to tendermint core * __Usage__:
Signals the end of a block. Called prior to each Commit after all transactions. Validator set is updated with the result. diff --git a/example/dummy/dummy_test.go b/example/dummy/dummy_test.go index bfe9ef7a9..2d075b0bb 100644 --- a/example/dummy/dummy_test.go +++ b/example/dummy/dummy_test.go @@ -188,7 +188,7 @@ func makeApplyBlock(t *testing.T, dummy types.Application, heightInt int, diff [ resEndBlock := dummy.EndBlock(types.RequestEndBlock{header.Height}) dummy.Commit() - valsEqual(t, diff, resEndBlock.Diffs) + valsEqual(t, diff, resEndBlock.Changes) } diff --git a/example/dummy/persistent_dummy.go b/example/dummy/persistent_dummy.go index 6f389c507..f00b74734 100644 --- a/example/dummy/persistent_dummy.go +++ b/example/dummy/persistent_dummy.go @@ -125,7 +125,7 @@ func (app *PersistentDummyApplication) BeginBlock(req types.RequestBeginBlock) t // Update the validator set func (app *PersistentDummyApplication) EndBlock(req types.RequestEndBlock) types.ResponseEndBlock { - return types.ResponseEndBlock{Diffs: app.changes} + return types.ResponseEndBlock{Changes: app.changes} } //---------------------------------------------