Add logs to lite/*; Fix rpc status to return consensus height, not blockstore height

This commit is contained in:
Jae Kwon
2018-06-26 16:52:38 -07:00
parent 7f4498f8b1
commit 37ef5485b4
15 changed files with 174 additions and 68 deletions

View File

@ -2,6 +2,7 @@ package lite
import (
"github.com/tendermint/tendermint/types"
log "github.com/tendermint/tmlibs/log"
)
// Provider provides information for the lite client to sync validators.
@ -16,6 +17,9 @@ type Provider interface {
// Get the valset that corresponds to chainID and height and return.
// Height must be >= 1.
ValidatorSet(chainID string, height int64) (*types.ValidatorSet, error)
// Set a logger.
SetLogger(logger log.Logger)
}
// A provider that can also persist new information.