rename MsgAndTags to Message

This commit is contained in:
Anton Kaliaev
2019-02-01 11:19:40 +04:00
parent 54cc5100f8
commit 61155f66a7
15 changed files with 95 additions and 110 deletions

View File

@ -117,8 +117,8 @@ func TestMempoolTxConcurrentWithCommit(t *testing.T) {
for nTxs := 0; nTxs < NTxs; {
ticker := time.NewTicker(time.Second * 30)
select {
case mt := <-newBlockCh:
blockEvent := mt.Msg().(types.EventDataNewBlock)
case msg := <-newBlockCh:
blockEvent := msg.Data().(types.EventDataNewBlock)
nTxs += int(blockEvent.Block.Header.NumTxs)
case <-ticker.C:
panic("Timed out waiting to commit blocks with transactions")