mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
Validator public key, not address (somehow this was lost in cherry-pick)
This commit is contained in:
+2
-2
@@ -189,9 +189,9 @@ func execBlockOnProxyApp(logger log.Logger, proxyAppConn proxy.AppConnConsensus,
|
|||||||
// determine which validators did not sign last block
|
// determine which validators did not sign last block
|
||||||
absentVals := make([][]byte, 0)
|
absentVals := make([][]byte, 0)
|
||||||
for valI, vote := range block.LastCommit.Precommits {
|
for valI, vote := range block.LastCommit.Precommits {
|
||||||
addr, _ := vs.GetByIndex(valI)
|
|
||||||
if vote == nil {
|
if vote == nil {
|
||||||
absentVals = append(absentVals, addr)
|
_, val := vs.GetByIndex(valI)
|
||||||
|
absentVals = append(absentVals, val.PubKey.Bytes())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
privKey = crypto.GenPrivKeyEd25519FromSecret([]byte("execution_test"))
|
privKey = crypto.GenPrivKeyEd25519FromSecret([]byte("execution_test_1"))
|
||||||
privKey2 = crypto.GenPrivKeyEd25519FromSecret([]byte("execution_test_2"))
|
privKey2 = crypto.GenPrivKeyEd25519FromSecret([]byte("execution_test_2"))
|
||||||
chainID = "execution_chain"
|
chainID = "execution_chain"
|
||||||
testPartSize = 65536
|
testPartSize = 65536
|
||||||
@@ -143,7 +143,8 @@ func state() State {
|
|||||||
s, _ := MakeGenesisState(&types.GenesisDoc{
|
s, _ := MakeGenesisState(&types.GenesisDoc{
|
||||||
ChainID: chainID,
|
ChainID: chainID,
|
||||||
Validators: []types.GenesisValidator{
|
Validators: []types.GenesisValidator{
|
||||||
{privKey.PubKey(), 10000, "test"},
|
{privKey.PubKey(), 10000, "test1"},
|
||||||
|
{privKey2.PubKey(), 10000, "test2"},
|
||||||
},
|
},
|
||||||
AppHash: nil,
|
AppHash: nil,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user