add tipset message was executed in back to waitmsg call

This commit is contained in:
whyrusleeping
2019-10-09 09:30:12 +02:00
committed by Łukasz Magiera
parent b8bc54fd5b
commit 84985ef96f
4 changed files with 11 additions and 9 deletions
+2 -1
View File
@@ -49,13 +49,14 @@ func (a *ChainAPI) ChainGetRandomness(ctx context.Context, pts *types.TipSet, ti
func (a *ChainAPI) ChainWaitMsg(ctx context.Context, msg cid.Cid) (*api.MsgWait, error) {
// TODO: consider using event system for this, expose confidence
recpt, err := a.Chain.WaitForMessage(ctx, msg)
ts, recpt, err := a.Chain.WaitForMessage(ctx, msg)
if err != nil {
return nil, err
}
return &api.MsgWait{
Receipt: *recpt,
TipSet: ts,
}, nil
}