mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-18 07:31:20 +00:00
Update EndBlock parameters
* Update abci dependencies * Modify references from Diffs to Changes * Fixes issues #924
This commit is contained in:
committed by
Ethan Buchman
parent
652d1e3de8
commit
4265a94bfe
@ -80,7 +80,7 @@ func TestABCIResponsesSaveLoad(t *testing.T) {
|
||||
abciResponses := NewABCIResponses(block)
|
||||
abciResponses.DeliverTx[0] = &abci.ResponseDeliverTx{Data: []byte("foo"), Tags: []*abci.KVPair{}}
|
||||
abciResponses.DeliverTx[1] = &abci.ResponseDeliverTx{Data: []byte("bar"), Log: "ok", Tags: []*abci.KVPair{}}
|
||||
abciResponses.EndBlock = &abci.ResponseEndBlock{Diffs: []*abci.Validator{
|
||||
abciResponses.EndBlock = &abci.ResponseEndBlock{Changes: []*abci.Validator{
|
||||
{
|
||||
PubKey: crypto.GenPrivKeyEd25519().PubKey().Bytes(),
|
||||
Power: 10,
|
||||
@ -199,13 +199,13 @@ func makeHeaderPartsResponses(state *State, height int64,
|
||||
_, val := state.Validators.GetByIndex(0)
|
||||
abciResponses := &ABCIResponses{
|
||||
Height: height,
|
||||
EndBlock: &abci.ResponseEndBlock{Diffs: []*abci.Validator{}},
|
||||
EndBlock: &abci.ResponseEndBlock{Changes: []*abci.Validator{}},
|
||||
}
|
||||
|
||||
// if the pubkey is new, remove the old and add the new
|
||||
if !bytes.Equal(pubkey.Bytes(), val.PubKey.Bytes()) {
|
||||
abciResponses.EndBlock = &abci.ResponseEndBlock{
|
||||
Diffs: []*abci.Validator{
|
||||
Changes: []*abci.Validator{
|
||||
{val.PubKey.Bytes(), 0},
|
||||
{pubkey.Bytes(), 10},
|
||||
},
|
||||
|
Reference in New Issue
Block a user