fix full node painc
fix: full node painc when calling RPC Filecoin.ClientRetrieve without the order.Tatol pecified.
This commit is contained in:
parent
ad0fdd5ec5
commit
7738886936
@ -600,6 +600,11 @@ func (a *API) clientRetrieve(ctx context.Context, order api.RetrievalOrder, ref
|
||||
}
|
||||
}
|
||||
|
||||
if order.Total.Int == nil {
|
||||
finish(xerrors.Errorf("cannot make retrieval deal for null total"))
|
||||
return
|
||||
}
|
||||
|
||||
if order.Size == 0 {
|
||||
finish(xerrors.Errorf("cannot make retrieval deal for zero bytes"))
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user