BaseService and BaseReactor refactor and unification

This commit is contained in:
Jae Kwon
2015-07-20 14:40:41 -07:00
parent d712ff05cf
commit 571a134318
21 changed files with 352 additions and 346 deletions

View File

@@ -1104,7 +1104,7 @@ func TestSNativeCallTx(t *testing.T) {
// run ExecTx and wait for the Receive event on given addr
// returns the msg data and an error/exception
func execTxWaitEvent(t *testing.T, blockCache *BlockCache, tx types.Tx, eventid string) (interface{}, string) {
evsw := new(events.EventSwitch)
evsw := events.NewEventSwitch()
evsw.Start()
ch := make(chan interface{})
evsw.AddListenerForEvent("test", eventid, func(msg interface{}) {