From 6aabd18479f650e66b2a5f63fb566f6cdabcc8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 23 Jul 2020 23:03:25 +0200 Subject: [PATCH] More spect-actors updates --- chain/state/statetree_test.go | 2 +- node/impl/full/state.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/state/statetree_test.go b/chain/state/statetree_test.go index 3c832f7cc..e45090d1a 100644 --- a/chain/state/statetree_test.go +++ b/chain/state/statetree_test.go @@ -272,7 +272,7 @@ func TestStateTreeConsistency(t *testing.T) { } fmt.Println("root is: ", root) - if root.String() != "bafy2bzaceadyjnrv3sbjvowfl3jr4pdn5p2bf3exjjie2f3shg4oy5sub7h34" { + if root.String() != "bafy2bzaceb2bhqw75pqp44efoxvlnm73lnctq6djair56bfn5x3gw56epcxbi" { t.Fatal("MISMATCH!") } } diff --git a/node/impl/full/state.go b/node/impl/full/state.go index 6b4754886..917bfd841 100644 --- a/node/impl/full/state.go +++ b/node/impl/full/state.go @@ -993,7 +993,7 @@ func (a *StateAPI) StateMinerInitialPledgeCollateral(ctx context.Context, maddr } sectorWeight := miner.QAPowerForWeight(ssize, duration, dealWeights.DealWeight, dealWeights.VerifiedDealWeight) - initialPledge := miner.InitialPledgeForPower(sectorWeight, powerState.TotalQualityAdjPower, reward.BaselinePowerAt(ts.Height()), powerState.TotalPledgeCollateral, rewardState.ThisEpochReward, circSupply) + initialPledge := miner.InitialPledgeForPower(sectorWeight, powerState.TotalQualityAdjPower, reward.SlowConvenientBaselineForEpoch(ts.Height()), powerState.TotalPledgeCollateral, rewardState.ThisEpochReward, circSupply) return types.BigDiv(types.BigMul(initialPledge, initialPledgeNum), initialPledgeDen), nil }