deals: Check WainMsg error in handler

This commit is contained in:
Łukasz Magiera 2019-09-13 22:50:07 +02:00
parent 1ba1df3cac
commit bc9f495440

View File

@ -109,7 +109,9 @@ func (h *Handler) accept(ctx context.Context, deal MinerDeal) (func(*MinerDeal),
if deal.Proposal.Payment.ChannelMessage != nil {
log.Info("waiting for channel message to appear on chain")
h.full.ChainWaitMsg(ctx, *deal.Proposal.Payment.ChannelMessage)
if _, err := h.full.ChainWaitMsg(ctx, *deal.Proposal.Payment.ChannelMessage); err != nil {
return nil, xerrors.Errorf("waiting for paych message: %w", err)
}
}
if err := h.validateVouchers(ctx, deal); err != nil {