Replace SetEventsMode with SetOption

This commit is contained in:
Jae Kwon
2015-11-27 10:14:46 -08:00
parent 9a72da4fcd
commit e40c4834a8
6 changed files with 74 additions and 78 deletions

View File

@ -8,6 +8,9 @@ type Application interface {
// Return application info
Info() []string
// 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
AppendTx(tx []byte) ([]Event, RetCode)
@ -20,9 +23,6 @@ type Application interface {
// Rollback to the latest commit
Rollback() RetCode
// Set events reporting mode
SetEventsMode(mode EventsMode) RetCode
// Add event listener
AddListener(key string) RetCode