mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-05 07:37:14 +00:00
Proof uses uint64 for blockHeight
This commit is contained in:
@@ -54,7 +54,7 @@ func (app *DummyApplication) Query(query []byte) types.Result {
|
||||
return types.NewResultOK(wire.JSONBytes(queryResult), "")
|
||||
}
|
||||
|
||||
func (app *DummyApplication) Proof(key []byte, blockHeight int64) types.Result {
|
||||
func (app *DummyApplication) Proof(key []byte, blockHeight uint64) types.Result {
|
||||
// TODO: when go-merkle supports querying older blocks without possible panics,
|
||||
// we should store a cache and allow a query. But for now it is impossible.
|
||||
// And this is just a Dummy application anyway, what do you expect? ;)
|
||||
|
||||
@@ -6,11 +6,11 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/tendermint/abci/types"
|
||||
. "github.com/tendermint/go-common"
|
||||
dbm "github.com/tendermint/go-db"
|
||||
"github.com/tendermint/go-merkle"
|
||||
"github.com/tendermint/go-wire"
|
||||
"github.com/tendermint/abci/types"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -93,7 +93,7 @@ func (app *PersistentDummyApplication) Query(query []byte) types.Result {
|
||||
return app.app.Query(query)
|
||||
}
|
||||
|
||||
func (app *PersistentDummyApplication) Proof(key []byte, blockHeight int64) types.Result {
|
||||
func (app *PersistentDummyApplication) Proof(key []byte, blockHeight uint64) types.Result {
|
||||
return app.app.Proof(key, blockHeight)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user