Update to patched go-p2p, tendermint, fix a few tests
This commit is contained in:
parent
0665a2e8a6
commit
787cf0ebac
|
@ -38,7 +38,7 @@ func TestLoadGenesis(t *testing.T) {
|
|||
assert.EqualValues("blank", acct.Balance[0].Denom)
|
||||
|
||||
// and public key is parsed properly
|
||||
apk := acct.PubKey.PubKey
|
||||
apk := acct.PubKey.Unwrap()
|
||||
require.NotNil(apk)
|
||||
epk, ok := apk.(crypto.PubKeyEd25519)
|
||||
if assert.True(ok) {
|
||||
|
|
|
@ -75,13 +75,14 @@ func (k *Key) Sign(msg []byte) crypto.Signature {
|
|||
// Generates a new validator with private key.
|
||||
func genKey() *Key {
|
||||
privKey := crypto.GenPrivKeyEd25519()
|
||||
addrBytes := privKey.PubKey().Address()
|
||||
pubKey := privKey.PubKey()
|
||||
addrBytes := pubKey.Address()
|
||||
var addr Address
|
||||
copy(addr[:], addrBytes)
|
||||
return &Key{
|
||||
Address: addr,
|
||||
PubKey: crypto.PubKeyS{privKey.PubKey()},
|
||||
PrivKey: crypto.PrivKeyS{privKey},
|
||||
PubKey: pubKey,
|
||||
PrivKey: privKey.Wrap(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ imports:
|
|||
- name: github.com/tendermint/go-merkle
|
||||
version: 714d4d04557fd068a7c2a1748241ce8428015a96
|
||||
- name: github.com/tendermint/go-p2p
|
||||
version: 17124989a93774833df33107fbf17157a7f8ef31
|
||||
version: a163fddbdd2541793d22402afb113e6ccb391774
|
||||
subpackages:
|
||||
- upnp
|
||||
- name: github.com/tendermint/go-rpc
|
||||
|
@ -107,7 +107,7 @@ imports:
|
|||
- app
|
||||
- client
|
||||
- name: github.com/tendermint/tendermint
|
||||
version: 6bcd4242f1f336e2b2ef4f644fabaf56222b34d0
|
||||
version: 936e66867aecf92595b1f8615361b2867d9a69e6
|
||||
subpackages:
|
||||
- blockchain
|
||||
- cmd/tendermint/commands
|
||||
|
|
|
@ -30,7 +30,7 @@ func genGenesisDoc(chainID string, numVals int) (*tm.GenesisDoc, []types.PrivAcc
|
|||
name := cmn.Fmt("%v_val_%v", chainID, i)
|
||||
privAcc := types.PrivAccountFromSecret(name)
|
||||
genDoc.Validators = append(genDoc.Validators, tm.GenesisValidator{
|
||||
PubKey: privAcc.PubKey.PubKey,
|
||||
PubKey: privAcc.PubKey,
|
||||
Amount: 1,
|
||||
Name: name,
|
||||
})
|
||||
|
@ -268,9 +268,9 @@ func TestIBCPluginBadCommit(t *testing.T) {
|
|||
|
||||
// Update a chain with a broken commit
|
||||
// Modify the first byte of the first signature
|
||||
sig := commit.Precommits[0].Signature.(crypto.SignatureEd25519)
|
||||
sig := commit.Precommits[0].Signature.Unwrap().(crypto.SignatureEd25519)
|
||||
sig[0] += 1
|
||||
commit.Precommits[0].Signature = sig
|
||||
commit.Precommits[0].Signature = crypto.WrapSignature(sig)
|
||||
res = ibcPlugin.RunTx(store, ctx, wire.BinaryBytes(struct{ IBCTx }{IBCUpdateChainTx{
|
||||
Header: header,
|
||||
Commit: commit,
|
||||
|
|
Loading…
Reference in New Issue