mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-28 11:56:15 +00:00
Pin to an ABCI version
This commit is contained in:
Generated
+2
-3
@@ -229,7 +229,6 @@
|
||||
revision = "714f901b98fdb3aa954b4193d8cbd64a28d80cad"
|
||||
|
||||
[[projects]]
|
||||
branch = "develop"
|
||||
name = "github.com/tendermint/abci"
|
||||
packages = [
|
||||
"client",
|
||||
@@ -239,7 +238,7 @@
|
||||
"server",
|
||||
"types"
|
||||
]
|
||||
revision = "bcfdd6dbaf10c947392e2b0a097b65b5fb247baf"
|
||||
revision = "f9dce537281ffba5d1e047e6729429f7e5fb90c9"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
@@ -382,6 +381,6 @@
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
analyzer-version = 1
|
||||
inputs-digest = "fd7f01ccfa9bef049cfd6f9c6dd41c0b9fe1f7889f9feb73ab46423a686a94a3"
|
||||
inputs-digest = "f428a5e2eb708af2e72274602d90fa5a3dc5711f568931aac2dde8521c1e29f1"
|
||||
solver-name = "gps-cdcl"
|
||||
solver-version = 1
|
||||
|
||||
+2
-2
@@ -69,9 +69,9 @@
|
||||
name = "github.com/stretchr/testify"
|
||||
version = "~1.2.1"
|
||||
|
||||
[[constraint]]
|
||||
[[override]]
|
||||
name = "github.com/tendermint/abci"
|
||||
branch = "develop"
|
||||
revision = "f9dce537281ffba5d1e047e6729429f7e5fb90c9"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/tendermint/go-crypto"
|
||||
|
||||
+2
-2
@@ -269,8 +269,8 @@ func (h *Handshaker) ReplayBlocks(state sm.State, appHash []byte, appBlockHeight
|
||||
if appBlockHeight == 0 {
|
||||
validators := types.TM2PB.Validators(state.Validators)
|
||||
req := abci.RequestInitChain{
|
||||
Validators: validators,
|
||||
AppStateBytes: h.appState,
|
||||
Validators: validators,
|
||||
GenesisBytes: h.appState,
|
||||
}
|
||||
_, err := proxyApp.Consensus().InitChainSync(req)
|
||||
if err != nil {
|
||||
|
||||
+3
-2
@@ -187,10 +187,11 @@ func execBlockOnProxyApp(logger log.Logger, proxyAppConn proxy.AppConnConsensus,
|
||||
proxyAppConn.SetResponseCallback(proxyCb)
|
||||
|
||||
// determine which validators did not sign last block
|
||||
absentVals := make([]int32, 0)
|
||||
absentVals := make([][]byte, 0)
|
||||
for valI, vote := range block.LastCommit.Precommits {
|
||||
addr, _ := vs.GetByIndex(valI)
|
||||
if vote == nil {
|
||||
absentVals = append(absentVals, int32(valI))
|
||||
absentVals = append(absentVals, addr)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ import (
|
||||
|
||||
var (
|
||||
privKey = crypto.GenPrivKeyEd25519FromSecret([]byte("execution_test"))
|
||||
privKey2 = crypto.GenPrivKeyEd25519FromSecret([]byte("execution_test_2"))
|
||||
chainID = "execution_chain"
|
||||
testPartSize = 65536
|
||||
nTxsPerBlock = 10
|
||||
@@ -64,7 +65,7 @@ func TestBeginBlockAbsentValidators(t *testing.T) {
|
||||
testCases := []struct {
|
||||
desc string
|
||||
lastCommitPrecommits []*types.Vote
|
||||
expectedAbsentValidators []int32
|
||||
expectedAbsentValidators [][]byte
|
||||
}{
|
||||
{"none absent", []*types.Vote{{ValidatorIndex: 0, Timestamp: now, Type: types.VoteTypePrecommit}, {ValidatorIndex: 1, Timestamp: now}}, [][]byte{}},
|
||||
{"one absent", []*types.Vote{{ValidatorIndex: 0, Timestamp: now, Type: types.VoteTypePrecommit}, nil}, [][]byte{privKey2.PubKey().Bytes()}},
|
||||
@@ -109,10 +110,10 @@ func TestBeginBlockByzantineValidators(t *testing.T) {
|
||||
expectedByzantineValidators []abci.Evidence
|
||||
}{
|
||||
{"none byzantine", []types.Evidence{}, []abci.Evidence{}},
|
||||
{"one byzantine", []types.Evidence{ev1}, []abci.Evidence{{ev1.Address(), ev1.Height()}}},
|
||||
{"one byzantine", []types.Evidence{ev1}, []abci.Evidence{{nil, ev1.Address(), ev1.Height(), int64(0)}}},
|
||||
{"multiple byzantine", []types.Evidence{ev1, ev2}, []abci.Evidence{
|
||||
{ev1.Address(), ev1.Height()},
|
||||
{ev2.Address(), ev2.Height()}}},
|
||||
{nil, ev1.Address(), ev1.Height(), int64(0)},
|
||||
{nil, ev2.Address(), ev2.Height(), int64(0)}}},
|
||||
}
|
||||
|
||||
for _, tc := range testCases {
|
||||
@@ -161,7 +162,7 @@ var _ abci.Application = (*testApp)(nil)
|
||||
type testApp struct {
|
||||
abci.BaseApplication
|
||||
|
||||
AbsentValidators []int32
|
||||
AbsentValidators [][]byte
|
||||
ByzantineValidators []abci.Evidence
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user