diff --git a/cmd/lotus-fountain/main.go b/cmd/lotus-fountain/main.go index 84538e61b..4f84760c0 100644 --- a/cmd/lotus-fountain/main.go +++ b/cmd/lotus-fountain/main.go @@ -23,6 +23,7 @@ import ( "github.com/filecoin-project/sector-storage/ffiwrapper" "github.com/filecoin-project/specs-actors/actors/abi" + "github.com/filecoin-project/specs-actors/actors/abi/big" "github.com/filecoin-project/specs-actors/actors/builtin" "github.com/filecoin-project/specs-actors/actors/builtin/power" @@ -339,13 +340,6 @@ func (h *handler) mkminer(w http.ResponseWriter, r *http.Request) { return } - collateral, err := h.api.StatePledgeCollateral(r.Context(), types.EmptyTSK) - if err != nil { - w.WriteHeader(400) - w.Write([]byte(err.Error())) - return - } - smsg, err := h.api.MpoolPushMessage(h.ctx, &types.Message{ Value: types.BigInt(h.sendPerRequest), From: h.from, @@ -380,7 +374,7 @@ func (h *handler) mkminer(w http.ResponseWriter, r *http.Request) { createStorageMinerMsg := &types.Message{ To: builtin.StoragePowerActorAddr, From: h.from, - Value: types.BigAdd(collateral, types.BigDiv(collateral, types.NewInt(100))), + Value: big.Zero(), Method: builtin.MethodsPower.CreateMiner, Params: params,