app.GetState() for testing

This commit is contained in:
Ethan Buchman 2017-02-03 16:06:12 -05:00
parent a3f9a5338e
commit 5c9d63c6e0
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,11 @@ func NewBasecoin(eyesCli *eyes.Client) *Basecoin {
}
}
// For testing, not thread safe!
func (app *Basecoin) GetState() *sm.State {
return app.state.CacheWrap()
}
// TMSP::Info
func (app *Basecoin) Info() abci.ResponseInfo {
return abci.ResponseInfo{Data: Fmt("Basecoin v%v", version)}