Merge pull request #3010 from filecoin-project/fix/paych-sentinel-type

Use regular cid as paych sentinel type
This commit is contained in:
Łukasz Magiera
2020-08-12 22:49:56 +02:00
committed by GitHub
5 changed files with 17 additions and 70 deletions
+3 -3
View File
@@ -37,12 +37,12 @@ func (a *PaychAPI) PaychGet(ctx context.Context, from, to address.Address, amt t
return &api.ChannelInfo{
Channel: ch,
WaitSentinel: api.PaychWaitSentinel(mcid),
WaitSentinel: mcid,
}, nil
}
func (a *PaychAPI) PaychGetWaitReady(ctx context.Context, sentinel api.PaychWaitSentinel) (address.Address, error) {
return a.PaychMgr.GetPaychWaitReady(ctx, cid.Cid(sentinel))
func (a *PaychAPI) PaychGetWaitReady(ctx context.Context, sentinel cid.Cid) (address.Address, error) {
return a.PaychMgr.GetPaychWaitReady(ctx, sentinel)
}
func (a *PaychAPI) PaychAllocateLane(ctx context.Context, ch address.Address) (uint64, error) {