Fix TMSP tutorial outputs

This commit is contained in:
Jae Kwon
2016-12-06 03:57:09 -08:00
parent b3e5d0afa1
commit c5f008d60f
5 changed files with 14 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ func NewCounterApplication(serial bool) *CounterApplication {
}
func (app *CounterApplication) Info() (string, *types.TMSPInfo, *types.LastBlockInfo, *types.ConfigInfo) {
return Fmt("hashes:%v, txs:%v", app.hashCount, app.txCount), nil, nil, nil
return Fmt("{\"hashes\":%v,\"txs\":%v}", app.hashCount, app.txCount), nil, nil, nil
}
func (app *CounterApplication) SetOption(key string, value string) (log string) {

View File

@@ -19,7 +19,7 @@ func NewDummyApplication() *DummyApplication {
}
func (app *DummyApplication) Info() (string, *types.TMSPInfo, *types.LastBlockInfo, *types.ConfigInfo) {
return Fmt("size:%v", app.state.Size()), nil, nil, nil
return Fmt("{\"size\":%v}", app.state.Size()), nil, nil, nil
}
func (app *DummyApplication) SetOption(key string, value string) (log string) {