persistent dummy

This commit is contained in:
Ethan Buchman
2016-08-24 01:42:57 -04:00
parent debbf122db
commit 7901825ad9
5 changed files with 138 additions and 3 deletions

View File

@ -50,6 +50,7 @@ func (app *DummyApplication) Commit() types.Result {
func (app *DummyApplication) Query(query []byte) types.Result {
index, value, exists := app.state.Get(query)
resStr := Fmt("Index=%v value=%v exists=%v", index, string(value), exists)
return types.NewResultOK([]byte(resStr), "")
}