first commit

This commit is contained in:
Jae Kwon
2018-07-05 01:18:41 -07:00
parent b51ed132f7
commit 4f7565ba7b
16 changed files with 597 additions and 160 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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