start adapting other pkgs to new pubsub

This commit is contained in:
Anton Kaliaev
2019-01-30 15:13:15 +04:00
parent 67be801052
commit 641182e5d3
14 changed files with 282 additions and 257 deletions

View File

@ -118,7 +118,7 @@ func TestMempoolTxConcurrentWithCommit(t *testing.T) {
ticker := time.NewTicker(time.Second * 30)
select {
case b := <-newBlockCh:
evt := b.(types.EventDataNewBlock)
evt := b.Msg.(types.EventDataNewBlock)
nTxs += int(evt.Block.Header.NumTxs)
case <-ticker.C:
panic("Timed out waiting to commit blocks with transactions")