Make order be decided first; Remove TMSP Commit/Rollback

This commit is contained in:
Jae Kwon
2016-01-06 17:14:20 -08:00
committed by Jae Kwon
parent 792759c414
commit 3e3c0083c7
17 changed files with 388 additions and 514 deletions

25
proxy/app_conn.go Normal file
View File

@ -0,0 +1,25 @@
package proxy
import (
tmsp "github.com/tendermint/tmsp/types"
)
type Callback func(tmsp.Request, tmsp.Response)
type AppConn interface {
SetResponseCallback(Callback)
Error() error
EchoAsync(msg string)
FlushAsync()
AppendTxAsync(tx []byte)
CheckTxAsync(tx []byte)
GetHashAsync()
SetOptionAsync(key string, value string)
AddListenerAsync(key string)
RemListenerAsync(key string)
InfoSync() (info []string, err error)
FlushSync() error
GetHashSync() (hash []byte, err error)
}