From 79b0bfb2720d36f17edb62df04249e8bf5059660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 8 Jul 2021 18:54:56 +0200 Subject: [PATCH] policy: Add a docstring to SetProviderCollateralSupplyTarget --- chain/actors/policy/policy.go | 3 +++ chain/actors/policy/policy.go.template | 3 +++ 2 files changed, 6 insertions(+) diff --git a/chain/actors/policy/policy.go b/chain/actors/policy/policy.go index 426ea9300..c06c85d38 100644 --- a/chain/actors/policy/policy.go +++ b/chain/actors/policy/policy.go @@ -196,6 +196,9 @@ func GetMaxProveCommitDuration(ver actors.Version, t abi.RegisteredSealProof) ab } } +// SetProviderCollateralSupplyTarget sets the percentage of normalized circulating +// supply that must be covered by provider collateral in a deal. This should +// only be used for testing. func SetProviderCollateralSupplyTarget(num, denom big.Int) { market2.ProviderCollateralSupplyTarget = builtin2.BigFrac{ diff --git a/chain/actors/policy/policy.go.template b/chain/actors/policy/policy.go.template index 84ba4b914..3257feffd 100644 --- a/chain/actors/policy/policy.go.template +++ b/chain/actors/policy/policy.go.template @@ -132,6 +132,9 @@ func GetMaxProveCommitDuration(ver actors.Version, t abi.RegisteredSealProof) ab } } +// SetProviderCollateralSupplyTarget sets the percentage of normalized circulating +// supply that must be covered by provider collateral in a deal. This should +// only be used for testing. func SetProviderCollateralSupplyTarget(num, denom big.Int) { {{range .versions}} {{if (ge . 2)}}