support historical abci queries (Refs #482)

This commit is contained in:
Anton Kaliaev
2017-10-11 01:31:31 +04:00
parent 27245ce6f6
commit 5433e5771e
10 changed files with 86 additions and 27 deletions

13
rpc/client/types.go Normal file
View File

@ -0,0 +1,13 @@
package client
// ABCIQueryOptions can be used to provide options for ABCIQuery call other
// than the DefaultABCIQueryOptions.
type ABCIQueryOptions struct {
Height uint64
Prove bool
}
// DefaultABCIQueryOptions are latest height (0) and prove equal to true.
func DefaultABCIQueryOptions() ABCIQueryOptions {
return ABCIQueryOptions{Height: 0, Prove: true}
}