mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
first commit
This commit is contained in:
@@ -102,6 +102,7 @@ func (app *KVStoreApplication) Commit() types.ResponseCommit {
|
||||
}
|
||||
|
||||
func (app *KVStoreApplication) Query(reqQuery types.RequestQuery) (resQuery types.ResponseQuery) {
|
||||
// NOTE: This isn't proving anything yet.
|
||||
if reqQuery.Prove {
|
||||
value := app.state.db.Get(prefixKey(reqQuery.Data))
|
||||
resQuery.Index = -1 // TODO make Proof return index
|
||||
|
||||
@@ -168,7 +168,7 @@ func (app *PersistentKVStoreApplication) execValidatorTx(tx []byte) types.Respon
|
||||
}
|
||||
|
||||
// update
|
||||
return app.updateValidator(types.Ed25519Validator(pubkey, int64(power)))
|
||||
return app.updateValidator(types.Ed25519Validator(pubkey, power))
|
||||
}
|
||||
|
||||
// add, update, or remove a validator
|
||||
|
||||
Reference in New Issue
Block a user