So we should pass a bit more than the minimum collateral at the time of miner creation

Even 0.1% more would be enough# Please enter the commit message for your changes. Lines starting
This commit is contained in:
Jiarui.Huang 2020-01-16 01:30:01 +08:00
parent 85ec972abb
commit 6354a8ce03

View File

@ -556,7 +556,7 @@ func createStorageMiner(ctx context.Context, api lapi.FullNode, peerid peer.ID,
createStorageMinerMsg := &types.Message{
To: actors.StoragePowerAddress,
From: owner,
Value: collateral,
Value: types.BigAdd(collateral, types.BigDiv(collateral, types.NewInt(100))),
Method: actors.SPAMethods.CreateStorageMiner,
Params: params,