Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
- chore: update benchmark tests to use testing.B.Loop for improved performance ([filecoin-project/lotus#13385](https://github.com/filecoin-project/lotus/pull/13385)) ([filecoin-project/lotus#13396](https://github.com/filecoin-project/lotus/pull/13396))
- fix(eth): properly return vm error in all gas estimation methods ([filecoin-project/lotus#13389](https://github.com/filecoin-project/lotus/pull/13389))
- chore: all actor cmd support --actor ([filecoin-project/lotus#13391](https://github.com/filecoin-project/lotus/pull/13391))
- feat(spcli): add a `deposit-margin-factor` option to `lotus-miner init` so the sent deposit still covers the on-chain requirement if it rises between lookup and execution

# Node and Miner v1.34.1 / 2025-09-15

This is a non-critical patch release that fixes an issue with the Lotus `v1.34.0` release where the incorrect version of filecoin-ffi was included. Lotus `v1.34.0` used filecoin-ffi `v1.34.0-dev` when it should have used `v1.34.0`. This isn’t critical since it’s the same filecoin-ffi version used during the nv27 Calibration network upgrade, but for consistency with other Node implementations like Forest, we are creating this release. This ensures the inclusion of ref-fvm `v4.7.3` update that was missing in v1.34.0. All users of v1.34.0 are encouraged to upgrade to v1.34.1.

# Node and Miner v1.34.0 / 2025-09-11

This is a **MANDATORY Lotus v1.34.0 release**, which will deliver the Filecoin network version 27, codenamed “Golden Week” 🏮. This release candidate sets the upgrade epoch for the Mainnet network to **Epoch 5348280: 2025-09-24T23:00:00Z**. (See the [local time for other timezones](https://www.worldtimebuddy.com/?qm=1&lid=100,5128581,5368361,1816670&h=100&date=2025-9-24&sln=23-24&hf=1&c=1196).)
This is a **MANDATORY Lotus v1.34.0 release**, which will deliver the Filecoin network version 27, codenamed “Golden Week” 🏮. This release candidate sets the upgrade epoch for the Mainnet network to **Epoch 5348280: 2025-09-24T23:00:00Z**. (See the [local time for other timezones](https://www.worldtimebuddy.com/?qm=1&lid=100,5128581,5368361,1816670&h=100&date=2025-9-24&sln=23-24&hf=1&c=1196).)

## ☢️ Upgrade Warnings ☢️
- All Lotus node and Storage Provider (SP) operators must upgrade to v1.34.x before the specified date for the Mainnet network.
Expand Down
15 changes: 13 additions & 2 deletions cli/miner/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ var initCmd = &cli.Command{
Usage: "number of block confirmations to wait for",
Value: buildconstants.MessageConfidence,
},
&cli.Float64Flag{
Name: "deposit-margin-factor",
Usage: "Multiplier (>=1.0) to scale the suggested deposit for on-chain variance (e.g. 1.01 adds 1%)",
Value: 1.01,
},
},
Subcommands: []*cli.Command{
restoreCmd,
Expand Down Expand Up @@ -739,16 +744,22 @@ func createStorageMiner(ctx context.Context, api v1api.FullNode, ssize abi.Secto
return address.Undef, err
}

// Calculate miner creation deposit according to FIP-0077
depositMarginFactor := cctx.Float64("deposit-margin-factor")
if depositMarginFactor < 1 {
return address.Undef, xerrors.Errorf("deposit margin factor must be greater than or equal to 1")
}

deposit, err := api.StateMinerCreationDeposit(ctx, types.EmptyTSK)
if err != nil {
return address.Undef, xerrors.Errorf("getting miner creation deposit: %w", err)
}

scaledDeposit := types.BigDiv(types.BigMul(deposit, types.NewInt(uint64(depositMarginFactor*100))), types.NewInt(100))

createStorageMinerMsg := &types.Message{
To: power.Address,
From: sender,
Value: deposit,
Value: scaledDeposit,

Method: power.Methods.CreateMiner,
Params: params,
Expand Down
1 change: 1 addition & 0 deletions documentation/en/cli-lotus-miner.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.