Skip to content

Commit

Permalink
Merge pull request #458 from ipfs-force-community/fix/could-not-judge…
Browse files Browse the repository at this point in the history
…-offline-deal-from-boost

fix: could not judge offline deal from boost
  • Loading branch information
simlecode authored Oct 10, 2023
2 parents 01cd1d3 + bf81106 commit 5035048
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions storageprovider/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,12 @@ func (storageDealStream *StorageDealStream) HandleNewDealStream(s network2.Strea
return
}

// for offline deal with DealProtocolv120, transferType can be empty
transferType := proposal.Transfer.Type
if transferType == "" {
transferType = storagemarket.TTManual
}

deal := &types.MinerDeal{
ID: uuid.New(),
Client: s.Conn().RemotePeer(),
Expand Down

0 comments on commit 5035048

Please sign in to comment.