Skip to content

Commit

Permalink
Merge pull request #1452 from jsign/jsign/testnet3/includedealid
Browse files Browse the repository at this point in the history
Include DealID in DealInfo
  • Loading branch information
whyrusleeping authored Mar 25, 2020
2 parents 0f16ccc + 985285f commit d41aeb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/api_full.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ type DealInfo struct {

PricePerEpoch types.BigInt
Duration uint64

DealID abi.DealID
}

type MsgLookup struct {
Expand Down
2 changes: 2 additions & 0 deletions node/impl/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func (a *API) ClientListDeals(ctx context.Context) ([]api.DealInfo, error) {

PricePerEpoch: v.Proposal.StoragePricePerEpoch,
Duration: uint64(v.Proposal.Duration()),
DealID: v.DealID,
}
}

Expand All @@ -151,6 +152,7 @@ func (a *API) ClientGetDealInfo(ctx context.Context, d cid.Cid) (*api.DealInfo,
Size: uint64(v.Proposal.PieceSize.Unpadded()),
PricePerEpoch: v.Proposal.StoragePricePerEpoch,
Duration: uint64(v.Proposal.Duration()),
DealID: v.DealID,
}, nil
}

Expand Down

0 comments on commit d41aeb9

Please sign in to comment.