mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-11 12:21:20 +00:00
Update Diffs to Changes, fix README
This commit is contained in:
@ -185,7 +185,8 @@ Here, we describe the requests and responses as function arguments and return va
|
|||||||
* __Arguments__:
|
* __Arguments__:
|
||||||
* `Height (int64)`: The block height that ended
|
* `Height (int64)`: The block height that ended
|
||||||
* __Returns__:
|
* __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__:<br/>
|
* __Usage__:<br/>
|
||||||
Signals the end of a block. Called prior to each Commit after all transactions. Validator set is updated with the result.
|
Signals the end of a block. Called prior to each Commit after all transactions. Validator set is updated with the result.
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ func makeApplyBlock(t *testing.T, dummy types.Application, heightInt int, diff [
|
|||||||
resEndBlock := dummy.EndBlock(types.RequestEndBlock{header.Height})
|
resEndBlock := dummy.EndBlock(types.RequestEndBlock{header.Height})
|
||||||
dummy.Commit()
|
dummy.Commit()
|
||||||
|
|
||||||
valsEqual(t, diff, resEndBlock.Diffs)
|
valsEqual(t, diff, resEndBlock.Changes)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ func (app *PersistentDummyApplication) BeginBlock(req types.RequestBeginBlock) t
|
|||||||
|
|
||||||
// Update the validator set
|
// Update the validator set
|
||||||
func (app *PersistentDummyApplication) EndBlock(req types.RequestEndBlock) types.ResponseEndBlock {
|
func (app *PersistentDummyApplication) EndBlock(req types.RequestEndBlock) types.ResponseEndBlock {
|
||||||
return types.ResponseEndBlock{Diffs: app.changes}
|
return types.ResponseEndBlock{Changes: app.changes}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------
|
//---------------------------------------------
|
||||||
|
Reference in New Issue
Block a user