From 3896902d49a7e2014c4cadd54d83f252d1a5c06f Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Wed, 25 Mar 2020 16:30:59 -0300 Subject: [PATCH] include DealID in DealInfo Signed-off-by: Ignacio Hagopian --- api/api_full.go | 2 ++ node/impl/client/client.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/api/api_full.go b/api/api_full.go index dcda26c3b..50a562839 100644 --- a/api/api_full.go +++ b/api/api_full.go @@ -187,6 +187,8 @@ type DealInfo struct { PricePerEpoch types.BigInt Duration uint64 + + DealID abi.DealID } type MsgLookup struct { diff --git a/node/impl/client/client.go b/node/impl/client/client.go index f84a80576..66d9ae8ed 100644 --- a/node/impl/client/client.go +++ b/node/impl/client/client.go @@ -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, } } @@ -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 }