1402 Commits

Author SHA1 Message Date
945451c528 feat(miner): remove batch balancer-related functionality (#12919)
Closes: https://github.com/filecoin-project/lotus/issues/12902
2025-03-19 16:07:32 +11:00
82b0a0615b chore: update go-state-types to remove DeprecatedDealIds from JSON 2025-03-19 13:43:52 +11:00
36b2478fdb feat(fip0100): updates to FIP including Teep->Tock 2025-03-19 13:43:52 +11:00
637e21519d chore(fees): add initial fees & migration testing (FIP-0100) (#12942) 2025-03-19 13:43:52 +11:00
632e20a626 feat!: fip-0100 dev builds of builtin-actors & go-state-types
Changes some APIs exposed in the miner actor wrapper.
2025-03-19 13:43:52 +11:00
79206a00eb chore: upgrade to go-f3 v0.8.3 (#12941)
Upgrade to go-f3 `v0.8.3`

Upgrade to the latest go-f3, to bubble up:
* various bug fixes
* extended manifest parameters for better control in passive testing

Note that the return type from F3GetProgress API has changed to now
include the input chain to an instance.

Update CLI templates to print the additional fields.
2025-03-17 17:34:33 +00:00
926d924d3e feat: add Agent to Filecoin.Version ! (#12953)
feat: add Agent to `Filecoin.Version`
2025-03-14 13:09:04 +00:00
48cd35195a fix: allow users to optionally configure node startup even if index reconciliation fails (#12930)
* optional index start on reconciliation failure

* warning

* fix ChangeLog

* fix make gen

* fix compilation
2025-03-06 11:43:38 +04:00
157cad6524 fix(drand): add null HistoricalBeaconClient for old beacons (#12830)
* fix(drand): add null HistoricalBeaconClient for old beacons
* chore(drand): upgrade drand to drand/v2 and drand/go-clients
* chore(deps): upgrade urfave/cli

Fixes: https://github.com/filecoin-project/lotus/issues/11802
Ref: https://github.com/filecoin-project/lotus/issues/11802#issuecomment-2601854846
2025-03-05 10:59:08 +11:00
e894b7f52d feat: add GenesisTimestamp to NetworkParams (#12925) 2025-02-28 12:45:43 +01:00
57d6769aae docs(api): document 10% overestimation in collateral/pledge APIs (#12922)
docs(api): document 10% overestimation in collateral/pledge APIs
2025-02-26 15:27:13 +01:00
2cb2608967 docs(mpool): fix typos in documentation (#12905)
Update mpool.md

fix typos
2025-02-22 11:25:37 +01:00
5582b1ae28 fix(docs): correct typos across whole doc (#12909)
* fix:typos

* fix: suggested change
2025-02-19 14:47:23 +01:00
04a5f33546 chore: fix comments in .go (#12903)
* Update api_full.go

* Update api_storage.go

* chore: make gen

chore: make gen

---------

Co-authored-by: comfsrt <155266597+comfsrt@users.noreply.github.com>
2025-02-17 15:15:32 +00:00
97dc1865cf feat: add --csv option to the lotus send cmd (#12892) 2025-02-14 07:48:26 +01:00
5f0f5853bf chore: upgrade to the latest go-f3 and allow F3 chain exchange topics (#12893)
Upgrade to the latest go-f3 and allow F3 chain exchange topics

Upgrade to the latest `go-f3` and add the F3 chain exchange topics to
the allowed topic list for both static and dynamic manifests.

Fixes https://github.com/filecoin-project/go-f3/issues/809
2025-02-12 14:43:23 +00:00
48d0ab25a4 feat: automatically detect if genesis CAR is compressed (#12885)
Automatically detect if genesis CAR is compressed

When `--genesis` path is set, automatically detect if the genesis file
is ZSTD compressed and decompress it.
2025-02-11 10:20:29 +00:00
b1376cfbd2 feat(api)!: expose StateGetNetworkParams in Lotus Gateway API and remove SupportedProofTypes (#12881)
* refactor(api)!: remove SupportedProofTypes from StateGetNetworkParams

Breaking change: The SupportedProofTypes field has been removed from StateGetNetworkParams. This field was unreliable as it didn't match  the FVM's actual supported proofs and was frequently overlooked during proof type updates

* feat: expose StateGetNetworkParams in Lotus Gateway API

feat: expose StateGetNetworkParams in Lotus Gateway API

* chore: update changelog

chore: update changelog
2025-02-10 08:36:54 +01:00
99dcb127c3 docs(release): v1.30.0, v1.31.0 and v1.31.1 release template improvements (#12563)
* docs(release): v1.30.0 and v1.31.0 release template improvements

docs(release): v1.30.0 and v1.31.0 release template improvements

* docs(release): v1.31.1 release template improvements

docs(release): v1.31.1 release template improvements

* Update RELEASE_ISSUE_TEMPLATE.md

Co-authored-by: Steve Loeppky <biglep@filoz.org>

* Update RELEASE_ISSUE_TEMPLATE.md

Co-authored-by: Steve Loeppky <biglep@filoz.org>

* chore: remove post-release step

chore: remove post-release step

---------

Co-authored-by: Steve Loeppky <biglep@filoz.org>
2025-01-28 08:11:51 +01:00
313cd2b11f feat(cli): lotus state sectors --show-partitions + CSV (#12834)
* Add option to show partitions and deadlines.
* Print output in CSV
2025-01-22 12:31:03 +11:00
ff620b0be5 chore(docs): fix minor typos (#12824) 2025-01-13 02:01:29 +00:00
f422705801 chore(docs): fix minor typos (#12820) 2025-01-10 05:06:27 +00:00
9a696ebb8f chore(docs): remove duplicate words (#12815) 2025-01-08 04:25:30 +00:00
ed3d40bce1 chore(docs): fix minor typos (#12816) 2025-01-08 15:19:42 +11:00
5e566ba8ae feat: generate default configs for docs without compiled binaries 2025-01-08 09:57:27 +11:00
942094cbf3 feat: separate docsgen-config Makefile target
still requires compiled binaries to produce the config, separate from
docsgen-cli which does not require them
2025-01-08 09:57:27 +11:00
ed4ea55cc6 feat: generate CLI docs without needing compiled binaries 2025-01-08 09:57:27 +11:00
e233fd2627 chore: fixed 2 markdown syntax or links (#12811)
fix links
2025-01-07 10:49:04 +01:00
9dcd3c735e fix(docs): reference tagged commit in old changelog link (#12805) 2025-01-06 02:24:48 +00:00
fc7073529d chore(docs): fix typos (#12807) 2025-01-06 01:06:28 +00:00
edfa817daf chore(eth): refactor eth API module into separate pieces in new pkg (#12796) 2024-12-20 08:32:46 +00:00
4f29e2ecaa chore: more frequent migration progress logs (#12732) 2024-12-12 22:11:15 +11:00
8b3de48ccc chore(docs): archive old changelog entries (#12757) 2024-12-09 15:54:53 +11:00
6347eff776 feat(cli): enhance ChainListCmd with JSON output and <epoch> placeholder support (#12691)
* docs: Update format flag usage with valid placeholders for ChainListCmd

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

* feat: Add <json_tipset> placeholder for JSON encoding of the tipset

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

* style: Fix formatting in chain.go for consistency and readability

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

* fix: Change JSON encoding to single line without indentation

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

* docs: Update Usage for format flag to remove placeholder explanations

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

* feat: Rename 'height' flag to 'epoch' in ChainListCmd and update usage

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

* add changelog

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

* docs: Update CLI options in lotus documentation for clarity and detail

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

* fix changelog

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

---------

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
2024-12-06 16:03:46 +01:00
dff8bfd6e1 ci: automate release issue creation (#12741)
* feat: automate release issue creation

* chore: run go mod tidy

* chore: organize imports in the release cmd

* fix: layout format given to the date parser

* ci: automate release issue creation from v1.32.0 learnings (#12749)

* ci: automate release issue creation from v1.32.0 learnings

* Self-review feedback from looking at https://github.com/filecoin-project/lotus/pull/12749

* Fix String contains ordering bugs.

* chore: run gofmt

---------

Co-authored-by: galargh <piotr.galar@gmail.com>

* fix: update workflow input parameters

* ci: use custom field types in the create issue workflow

* Update cmd/release/main.go

Co-authored-by: Rod Vagg <rod@vagg.org>

* Update cmd/release/main.go

Co-authored-by: Rod Vagg <rod@vagg.org>

* Incorporating rvagg@ comments

* Incorporating more feedback

---------

Co-authored-by: Steve Loeppky <biglep@filoz.org>
Co-authored-by: Rod Vagg <rod@vagg.org>
2024-12-05 21:47:55 -08:00
12d76bd9f1 build: update Lotus Node and Miner version to v1.32.1-dev in master (#12756)
Ref: https://github.com/filecoin-project/lotus/issues/12750
2024-12-05 17:48:57 +11:00
0857ce54dc chore: bump deps, set calibnet nv25 epoch, change nv25-codename (#12754)
* chore: update codename for nv25 to "Teep"
* chore: set upgrade epoch for Calibration net
* chore: fix GenesisNetworkVersion for butterfly
* chore: set upgrade height for butterflynet
* chore: update to builtin-actors v16.0.0-rc1
* chore: update go-state-types to v0.16.0-rc1
* chore: update filecoin-ffi to v1.32.0-rc1
2024-12-05 15:04:46 +11:00
cf423e163b chore: upgrade to go-f3 v0.7.3 (#12753)
Upgrade to go-f3 `v0.7.3`
2024-12-03 22:22:20 +00:00
64736eaab0 feat: api: market pending proposal API/CLI (#12724) 2024-11-29 15:28:24 +11:00
bb7e62dd5a chore(docs): fix mismatched godoc method names (#12736)
Signed-off-by: thirdkeyword <fliterdashen@gmail.com>
2024-11-28 20:39:15 +11:00
b0de2bd64b feat: nv25 network skeleton (#12707)
* chore: update dependencies and stuff

* update stuff part 2

* chore: make gen

* chore: update UpgradeTuktukHeight to var

* chore: make actors-gen
2024-11-25 09:48:20 +01:00
0d1d7c29c2 chore: fix function name (#12716)
Signed-off-by: chuangjinglu <chuangjinglu@outlook.com>
2024-11-23 10:14:35 +01:00
8a5dc80548 docs: replace more references to lotus-shed with lotus in ChainIndexer docs (#12708)
Ref: https://github.com/filecoin-project/lotus/issues/12654
2024-11-20 05:52:48 +00:00
2cd6f404e9 feat: implement F3 CLI to list power table and proportional power at instance (#12698)
* Implement F3 CLI to list power table and proportional power at instance

Implement utility CLIs to:
* get the power table used by F3 at a given instance ID.
* get total proportional power of a list of actors at a given instance
  ID.

These utilities allow us to debug the exact participation power for an
instance without having to manually calculate it or estimate it from
the latest power.

* Update changelog

* Address lint issue

* Regenerate CLI docs

* Take instance ID via flag and actor IDs as args

* Reduce indentation by defiling top level vars

* Work around bug in docsgencli by using one-liner usage
2024-11-19 10:54:17 +00:00
1f5f51fc38 doc(indexer): more clarity for ChainIndexer configuration setup (#12701) 2024-11-19 07:51:35 +00:00
6b4cc35836 build: update Lotus Node & Miner version to v1.31.1-dev in master (#12692)
* build: update Lotus Node & Miner version to v1.31.1-dev in master

build: update Lotus Node & Miner version to v1.31.1-dev in master

* chore: update changelog

chore: update changelog
2024-11-12 22:33:32 +07:00
4eb45ca011 docs: update references for lotus-shed chainindex to lotus index (#12684)
* update docs

* update docs

* chore: run `make docsgen-cli`

chore: run `make docsgen-cli`

---------

Co-authored-by: Phi <orjan.roren@gmail.com>
2024-11-07 16:17:58 +07:00
f0f5c7663b feat(cli): move chainindex cmd from lotus-shed to lotus (#12668) 2024-11-07 16:28:56 +11:00
773efaeaaa Conditionally change the limit of F3 certs listed via CLI (#12669)
* When no range is given, default limit to 10
* Otherwise default to unlimited.

This is better than the current default of always unlimited because:
* there are a lot of certs, and
* when range is given the chances are the user wants all of them.

Addresses https://github.com/filecoin-project/lotus/pull/12627#discussion_r1815426539
2024-11-01 11:25:15 +00:00
dcc903c65d feat: a new ChainIndexer to index tipsets, messages and events (#12421)
* chain index complete for msgs and txns

* dont need observer changes for now

* changes

* fix tests

* fix tests

* use th right context

* index empty tipsets correctly

* implement automated backfilling

* add event indexing and remove all old indices

* fix test

* revert deployment test changes

* revert test changes and better error handling for eth tx index lookups

* fix sql statments naming convention

* address review for Index GC

* more changes as per review

* changes as per review

* fix config

* mark events as reverted during reconciliation

* better reconciliation; pens down and code complete; also reconcile events

* fix tests

* improve config and docs

* improve docs and error handling

* improve read logic

* improve docs

* better logging and handle ennable event storage

* improve logs and index init proc

* better logging

* fix bugs based on calibnet testing

* create sqliite Indices

* gc should be based on epochs

* fix event query

* foreign keys should be enabled on the DB

* reverted tipsets should be removed as part of GC

* release read lock

* make it easy to backfill an empty index using reconciliation

* better docs for reconciliation

* fix conflicts with master

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* fix go mod

* fix formatting

* revert config changes

* address changes in observer

* remove top level chainindex package

* changes as per review

* changes as per review

* changes as per review

* handle index with reverted tipsets during reconciliation

* changes as per review

* fix type of max reconcile epoch

* changes to reconciliation as per review

* log ipld error

* better logging of progress

* disable chain indexer hydrate from snapshot based on config

* always populate index

* make config easy to reason about

* fix config

* fix messaging

* revert config changes

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* changes as per review

* make error messages homogenous

* fix indentation

* changes as per review

* feat: recompute tipset to generate missing events if event indexing is enabled (#12463)

* auto repair events

* make jen

* fix leaky abstraction

* better docs for gc retention epoch

* imrpove DB handling (#12485)

* fix conflict

* fix lite node config for indexer

* exclude reverted events from eth get logs if client queries by epoch

* Simply addressing for event lookups in the index.

simply addressing for event lookups

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* fix tests

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* feat: migration("re-indexing"), backfilling and diasgnostics tooling for the `ChainIndexer` (#12450)

* fix conflicts with chain indexer

* feat: chain indexer todos [skip changelog] (#12462)

* feat: finish todos of validation api

* feat: add indexed data verification with chain store

* feat: address comments and finish TODO

* fix: build issue

* address comments

* fix: ci issue

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* changes to Index Validation API based on Rodds first review

* build chain indexer API

* improve error handling

* feat: lotus-shed tooling for chain indexer (#12474)

* feat: add lotus-shed command for backfilling chain indexer

* feat: add lotus-shed command for inspecting the chain indexer

* feat: use single lotus-shed command to inspect and backfill

* fix: remove the unused queries

* small changes

* add change log

* backfilling improvements and fixes

* finish chain index validation and backfill tooling

* user documentation for the

* validate from epoch

* Apply suggestions from code review

Suggestions from Steve's read of the user doc.

Co-authored-by: Steve Loeppky <biglep@filoz.org>

* changes to user doc as per review

* Apply suggestions from code review

Co-authored-by: Steve Loeppky <biglep@filoz.org>

* changes to user doc as per review

* Apply suggestions from code review

Co-authored-by: Steve Loeppky <biglep@filoz.org>

* changes as per review

* feat: add event entries count in validation API (#12506)

* feat: add event entry count in validation API

* address comments

* use sqllite defaults (#12504)

* Apply suggestions from code review

Co-authored-by: Steve Loeppky <biglep@filoz.org>

* write chain index to a different dir

* Apply suggestions from code review

Co-authored-by: Steve Loeppky <biglep@filoz.org>

* fix conflicts

* UX improvements to backfilling

* feat: tests for the chain indexer (#12521)

* ddl tests

* tests for the chain indexer

* finish unit tests for chain indexer

* fix formatting

* cleanup reverted tipsets to avoid db bloat

* fix logging

* test for filter by address

* test gc cascade delete

* fix db locked error during backfilling

* fix var name

* increase db locked timeout

* fix db locked issue

* reduce db lock timeout

* no lock in gc

* reconcile does not need lock

* improved error handling

* Update chain-indexing-overview-for-rpc-providers.md

Doc updates based on @jennijuju feedack.

* Update chain-indexing-overview-for-rpc-providers.MD

Fixes after reviewing 33c1ca1831

* better metrics for backfilling

* Update chain/index/chain-indexing-overview-for-rpc-providers.MD

Co-authored-by: Rod Vagg <rod@vagg.org>

* Update chain/index/chain-indexing-overview-for-rpc-providers.MD

Co-authored-by: Rod Vagg <rod@vagg.org>

* Update chain/index/chain-indexing-overview-for-rpc-providers.MD

Co-authored-by: Rod Vagg <rod@vagg.org>

* Update chain/index/chain-indexing-overview-for-rpc-providers.MD

Co-authored-by: Rod Vagg <rod@vagg.org>

* Update chain/index/chain-indexing-overview-for-rpc-providers.MD

Co-authored-by: Rod Vagg <rod@vagg.org>

* Update chain/index/chain-indexing-overview-for-rpc-providers.MD

Co-authored-by: Rod Vagg <rod@vagg.org>

* Update chain/index/chain-indexing-overview-for-rpc-providers.MD

Co-authored-by: Rod Vagg <rod@vagg.org>

* tests for changes to event addressing

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* changes as per review -> round 1

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* log tipset key cid

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* fix docs

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* fix tests

* fix tests

* make jen

* fix conflicts

---------

Co-authored-by: Aryan Tikarya <aryan.tikarya@dojima.network>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Steve Loeppky <biglep@filoz.org>

* fix lint

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* remove reverted flag from RPC

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* fix testing of events and dummy chain store

* remove lotus shed commands for old Indices

* change type of event counts to uint64

* only recompute events if theyre not found

* short-circuit empty events path for older tipsets

* chain indexer must be enabled if ETH RPC is enabled

* change name of message_id column to id in tipset_message table

* only expose SetRecomputeTipSetStateFunc

* dont block on head indexing for reading messages

* document why we're only checking for missing events for a single tipset

* document when we query for reverted events

* simplify event collection

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* fix test

* change event_id to id in the event table

* change head indexed timeout

* remove deprecated config options

* fail ETH RPC calls if ChainIndexer is disabled

* fix docs

* remove the tipset key cid func from lotus shed

* address review comments

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* chore(events): remove unnecessary DisableRealTimeFilterAPI (#12610)

* feat(cli): add --quiet to chainindex validate-backfill + cleanups (#12611)

* fix tests

* Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* error type for disabled chainindexer

* fix(chainindex): recompute tipset when we find no receipts

* fix(chainindexer): backfilling should halt when chain state data is missing and not backfill parents (#12619)

* fix backfilling UX

* Update chain/index/api.go

Co-authored-by: Rod Vagg <rod@vagg.org>

* address review

---------

Co-authored-by: Rod Vagg <rod@vagg.org>

* reduce log noise

* make jen

* make jen

* docs: finishing chain-indexer-overview-for-operators.md (#12600)

* Followup to PR #12450 for doc updates

This is being used to resolve the unresolved items in https://github.com/filecoin-project/lotus/pull/12450 since that PR is unwieldly at this point.

* Incorporated some items and added TODOs based on unresolved items from https://github.com/filecoin-project/lotus/pull/12450

* Incorporating more feedback

* Pointing to issue to learn about benefits

* Formatting fixes

* Apply most of the suggestions from @rvagg code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* Incorporating feedback from https://github.com/filecoin-project/lotus/pull/12600#discussion_r1802519453

* Addressing https://github.com/filecoin-project/lotus/pull/12600#discussion_r1802540042 and more

* Moved chain-indexer docs to documentation
Renamed
Added ToC

We can move to lotus-docs later

* Update documentation/en/chain-indexer-overview-for-operators.md

Co-authored-by: Rod Vagg <rod@vagg.org>

* Update documentation/en/chain-indexer-overview-for-operators.md

Co-authored-by: Rod Vagg <rod@vagg.org>

* Added upgrade path when importing chain state from a snapshot.

* Typo fixes

* Update documentation/en/chain-indexer-overview-for-operators.md

Co-authored-by: Rod Vagg <rod@vagg.org>

* chore(doc): "regular checks" section for chainindexer docs (#12612)

* Apply suggestions from @rvagg code review

Co-authored-by: Rod Vagg <rod@vagg.org>

* Incorporating @aarshkshah1992 feedback

* Update documentation/en/chain-indexer-overview-for-operators.md

Co-authored-by: Rod Vagg <rod@vagg.org>

---------

Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>

* remove go mod replace

* remove unnecessary changes from CHANGELOG

* fix test

* compare events AMT root (#12632)

* fix(chainindex): retry transaction if database connection is lost (#12657)

* retry database lost connection

* log context cancellation

* address review

* fix gateway itest: no chainindexer for lite nodes

* fix changelog

---------

Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Aryan Tikarya <aryan.tikarya@dojima.network>
Co-authored-by: Steve Loeppky <biglep@filoz.org>
2024-10-31 09:58:19 +00:00