Begin adding proof calls

This commit is contained in:
Ethan Frey
2017-01-17 15:42:54 +01:00
parent 98c4679f39
commit 58ea995032
14 changed files with 131 additions and 2 deletions
+4
View File
@@ -53,6 +53,10 @@ func (app *DummyApplication) Query(query []byte) types.Result {
return types.NewResultOK(wire.JSONBytes(queryResult), "")
}
func (app *DummyApplication) Proof(key []byte) types.Result {
return types.NewResultOK(nil, Fmt("TODO: support proof!"))
}
type QueryResult struct {
Index int `json:"index"`
Value string `json:"value"`
+4
View File
@@ -93,6 +93,10 @@ func (app *PersistentDummyApplication) Query(query []byte) types.Result {
return app.app.Query(query)
}
func (app *PersistentDummyApplication) Proof(key []byte) types.Result {
return types.NewResultOK(nil, Fmt("TODO: support proof!"))
}
// Save the validators in the merkle tree
func (app *PersistentDummyApplication) InitChain(validators []*types.Validator) {
for _, v := range validators {