mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-10 18:16:07 +00:00
keys: change to []bytes (#4950)
This commit is contained in:
@@ -232,8 +232,8 @@ func (app *PersistentKVStoreApplication) execValidatorTx(tx []byte) types.Respon
|
||||
func (app *PersistentKVStoreApplication) updateValidator(v types.ValidatorUpdate) types.ResponseDeliverTx {
|
||||
key := []byte("val:" + string(v.PubKey.Data))
|
||||
|
||||
pubkey := ed25519.PubKey{}
|
||||
copy(pubkey[:], v.PubKey.Data)
|
||||
pubkey := make(ed25519.PubKey, ed25519.PubKeySize)
|
||||
copy(pubkey, v.PubKey.Data)
|
||||
|
||||
if v.Power == 0 {
|
||||
// remove validator
|
||||
|
||||
Reference in New Issue
Block a user