Merge pull request #1092 from filecoin-project/feat/fountain-additional-pledge-collateral

Add more collateral to CreateStorageMiner call in fountain
This commit is contained in:
Jakub Sztandera 2020-01-16 02:32:12 +01:00 committed by GitHub
commit 48ea36d37f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,7 +275,7 @@ func (h *handler) mkminer(w http.ResponseWriter, r *http.Request) {
createStorageMinerMsg := &types.Message{
To: actors.StoragePowerAddress,
From: h.from,
Value: collateral,
Value: types.BigAdd(collateral, types.BigDiv(collateral, types.NewInt(100))),
Method: actors.SPAMethods.CreateStorageMiner,
Params: params,