Update protocol buffers

This commit is contained in:
Ethan Frey
2017-01-10 15:59:29 +01:00
parent 58ea995032
commit 7cd39dafea
10 changed files with 301 additions and 134 deletions

View File

@@ -61,7 +61,7 @@ func (app *ChainAwareApplication) Query(query []byte) types.Result {
return types.NewResultOK([]byte(Fmt("%d,%d", app.beginCount, app.endCount)), "")
}
func (app *ChainAwareApplication) Proof(key []byte) types.Result {
func (app *ChainAwareApplication) Proof(key []byte, blockHeight int64) types.Result {
return types.NewResultOK(nil, Fmt("Proof is not supported"))
}

View File

@@ -84,6 +84,6 @@ func (app *CounterApplication) Query(query []byte) types.Result {
return types.ErrUnknownRequest.SetLog(Fmt("Invalid nonce. Expected hash or tx, got %v", queryStr))
}
func (app *CounterApplication) Proof(key []byte) types.Result {
func (app *CounterApplication) Proof(key []byte, blockHeight int64) types.Result {
return types.NewResultOK(nil, Fmt("Proof is not supported"))
}

View File

@@ -53,7 +53,7 @@ func (app *DummyApplication) Query(query []byte) types.Result {
return types.NewResultOK(wire.JSONBytes(queryResult), "")
}
func (app *DummyApplication) Proof(key []byte) types.Result {
func (app *DummyApplication) Proof(key []byte, blockHeight int64) types.Result {
return types.NewResultOK(nil, Fmt("TODO: support proof!"))
}

View File

@@ -93,7 +93,7 @@ func (app *PersistentDummyApplication) Query(query []byte) types.Result {
return app.app.Query(query)
}
func (app *PersistentDummyApplication) Proof(key []byte) types.Result {
func (app *PersistentDummyApplication) Proof(key []byte, blockHeight int64) types.Result {
return types.NewResultOK(nil, Fmt("TODO: support proof!"))
}

View File

@@ -35,6 +35,6 @@ func (app *NilApplication) Query(query []byte) types.Result {
return types.NewResultOK(nil, "")
}
func (app *NilApplication) Proof(key []byte) types.Result {
func (app *NilApplication) Proof(key []byte, blockHeight int64) types.Result {
return types.NewResultOK(nil, "")
}