Double provider collateral estimates in the client atadpter
This commit is contained in:
parent
eb2879ca22
commit
b49276ef47
@ -5,6 +5,7 @@ package storageadapter
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
|
"github.com/filecoin-project/specs-actors/actors/abi/big"
|
||||||
|
|
||||||
"golang.org/x/xerrors"
|
"golang.org/x/xerrors"
|
||||||
|
|
||||||
@ -230,7 +231,7 @@ func (c *ClientNodeAdapter) DealProviderCollateralBounds(ctx context.Context, si
|
|||||||
return abi.TokenAmount{}, abi.TokenAmount{}, err
|
return abi.TokenAmount{}, abi.TokenAmount{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return bounds.Min, bounds.Max, nil
|
return big.Mul(bounds.Min, big.NewInt(2)), bounds.Max, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ClientNodeAdapter) OnDealSectorCommitted(ctx context.Context, provider address.Address, dealId abi.DealID, cb storagemarket.DealSectorCommittedCallback) error {
|
func (c *ClientNodeAdapter) OnDealSectorCommitted(ctx context.Context, provider address.Address, dealId abi.DealID, cb storagemarket.DealSectorCommittedCallback) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user