fix sync_test.go

This commit is contained in:
Łukasz Magiera 2019-08-20 18:51:10 +02:00
parent 4431dffc39
commit 82c449c047

View File

@ -194,7 +194,7 @@ func (tu *syncTestUtil) submitSourceBlock(to int, h int) {
// -1 to match block.Height
b.Header = tu.blocks[h-1].Header
for _, msg := range tu.blocks[h-1].SecpkMessages {
c, err := tu.nds[to].(*impl.API).Chain.PutMessage(msg)
c, err := tu.nds[to].(*impl.API).ChainAPI.Chain.PutMessage(msg)
require.NoError(tu.t, err)
b.SecpkMessages = append(b.SecpkMessages, c)