mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-23 01:41:31 +00:00
Remove TMSP Commit/Rollback; Add CheckTx
This commit is contained in:
@ -2,12 +2,6 @@ package types
|
||||
|
||||
type Application interface {
|
||||
|
||||
// For new socket connections
|
||||
Open() AppContext
|
||||
}
|
||||
|
||||
type AppContext interface {
|
||||
|
||||
// Echo a message
|
||||
Echo(message string) string
|
||||
|
||||
@ -17,24 +11,18 @@ type AppContext interface {
|
||||
// Set application option (e.g. mode=mempool, mode=consensus)
|
||||
SetOption(key string, value string) RetCode
|
||||
|
||||
// Append a tx, which may or may not get committed
|
||||
// Append a tx
|
||||
AppendTx(tx []byte) ([]Event, RetCode)
|
||||
|
||||
// Validate a tx for the mempool
|
||||
CheckTx(tx []byte) RetCode
|
||||
|
||||
// Return the application Merkle root hash
|
||||
GetHash() ([]byte, RetCode)
|
||||
|
||||
// Set commit checkpoint
|
||||
Commit() RetCode
|
||||
|
||||
// Rollback to the latest commit
|
||||
Rollback() RetCode
|
||||
|
||||
// Add event listener
|
||||
AddListener(key string) RetCode
|
||||
|
||||
// Remove event listener
|
||||
RemListener(key string) RetCode
|
||||
|
||||
// Close this AppContext
|
||||
Close() error
|
||||
}
|
||||
|
Reference in New Issue
Block a user