deals: Check WainMsg error in handler
This commit is contained in:
parent
1ba1df3cac
commit
bc9f495440
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user