Skip to content

Commit

Permalink
ccupgrade test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Jun 23, 2021
1 parent fbb5ee2 commit 51a1542
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion itests/ccupgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,21 @@ func runTestCCUpgrade(t *testing.T, upgradeHeight abi.ChainEpoch) {
ctx := context.Background()
blockTime := 5 * time.Millisecond

// add an actor holding lots of FIL as a way to stabilise the dealmaking CE
// parameters that take circulating supply into account.
money := big.Mul(big.NewInt(1_000_000_000), big.NewInt(int64(build.FilecoinPrecision)))
bank, err := wallet.GenerateKey(types.KTSecp256k1)
require.NoError(t, err)

money := big.Mul(big.NewInt(100_000_000), big.NewInt(int64(build.FilecoinPrecision)))
client, miner, ens := kit.EnsembleMinimal(t, kit.MockProofs(),
kit.Account(bank, money),
kit.ConstructorOpts(kit.LatestActorsAt(upgradeHeight)),
)
ens.InterconnectAll().BeginMining(blockTime)

time.Sleep(30 * time.Second)
fmt.Println(client.StateNetworkVersion(ctx, types.EmptyTSK))

maddr, err := miner.ActorAddress(ctx)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 51a1542

Please sign in to comment.