Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for interactive PoRep branch #533

Merged
merged 12 commits into from
Nov 7, 2019
Prev Previous commit
Next Next commit
Correct proposal cid on provider side
  • Loading branch information
magik6k committed Nov 7, 2019
commit d45544c90c92ee1c6b6f3a6d69924b1c70ba89fb
4 changes: 2 additions & 2 deletions chain/deals/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (p *Provider) onUpdated(ctx context.Context, update minerDealUpdate) {
}

func (p *Provider) newDeal(s inet.Stream, proposal Proposal) (MinerDeal, error) {
proposalNd, err := cborrpc.AsIpld(&proposal)
proposalNd, err := cborrpc.AsIpld(proposal.DealProposal)
if err != nil {
return MinerDeal{}, err
}
Expand Down Expand Up @@ -222,7 +222,7 @@ func (p *Provider) HandleStream(s inet.Stream) {

deal, err := p.newDeal(s, proposal)
if err != nil {
log.Error(err)
log.Errorf("%+v", err)
s.Close()
return
}
Expand Down