Remove retcode from echo; Add Info message

This commit is contained in:
Jae Kwon
2015-11-09 16:29:45 -08:00
parent ef93c95853
commit cce812b1fa
4 changed files with 47 additions and 38 deletions

View File

@@ -43,8 +43,12 @@ func NewDummyApplication() *DummyApplication {
}
}
func (dapp *DummyApplication) Echo(message string) (types.RetCode, string) {
return 0, message
func (dapp *DummyApplication) Echo(message string) string {
return message
}
func (dapp *DummyApplication) Info() []string {
return []string{Fmt("size:%v", dapp.state.Size())}
}
func (dapp *DummyApplication) AppendTx(tx []byte) types.RetCode {