mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-05 15:47:07 +00:00
Begin adding proof calls
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user