lotus/cmd/lotus-shed
Mikers 1eca520076 Added support for Filecoin network version 21 (v12 state types)
This commit includes the following updates:

- Imported v12 of the filecoin state types in migrations.go. This allows the system to interpret and operate on the latest structure of filecoin state information, ensuring compatibility with the latest version of the Filecoin network.

- Updated the 'getMigrationFuncsForNetwork' function to include a case for network.Version21, enabling the use of the UpgradeActorsV12 and PreUpgradeActorsV12 functions for network migration. These changes ensure the system correctly handles migrations when the network upgrades to version 21.

- Implemented a new 'checkNv21Invariants' function to check the invariants for version 21 of the Filecoin network. This function:

  1. Loads the new state root from the actor store.
  2. Retrieves the actor code IDs for the current state version (v12).
  3. Loads the actor tree from the state root and checks state invariants using the actor code IDs.
  4. Logs any error messages generated during the invariant check.
  5. Finally, prints a message with the time taken to complete the checks.

By checking these invariants, we can ensure the system's state is consistent and valid after migrating to network version 21.
2023-08-01 14:23:55 -10:00
..
shedgen make jen 2022-05-23 15:11:46 -04:00
actor.go Change arg from minerAddress to minerID 2023-05-04 15:21:05 +02:00
address.go encode address into byte 2023-01-24 20:18:04 +13:00
balancer.go shed: simple wallet balancer util 2021-11-22 14:29:23 +01:00
balances.go lint 2023-03-12 15:50:10 +02:00
base16.go refactor: stop using deprecated io/ioutil 2023-03-29 15:40:49 -04:00
base32.go refactor: stop using deprecated io/ioutil 2023-03-29 15:40:49 -04:00
base64.go refactor: stop using deprecated io/ioutil 2023-03-29 15:40:49 -04:00
bigint.go chore: fix imports 2022-06-14 17:00:51 +02:00
bitfield.go refactor: stop using deprecated io/ioutil 2023-03-29 15:40:49 -04:00
blockmsgid.go chore: remove redundant import prefixes 2022-06-15 12:06:22 +02:00
chain.go Add helper function to print usage when wrong number of arguments are supplied 2022-09-14 15:38:15 -04:00
chainwatch.go shed chainwatch: Appease the linter 2023-03-23 12:33:00 +01:00
cid.go cid -> bytes command 2023-01-17 12:19:04 -07:00
commp.go chore: fix imports 2022-06-14 17:00:51 +02:00
consensus.go cctx.Args().Len() to cctx.NArg() 2022-09-14 14:33:29 -04:00
cron-count.go chore: fix imports 2022-06-14 17:00:51 +02:00
datastore-vlog.go chore: all: migrate from go-libipfs to boxo 2023-04-18 17:22:18 +02:00
datastore.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
deal-label.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
diff.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
election.go chore: fix imports 2022-06-14 17:00:51 +02:00
eth.go Add new lotus-shed command for computing eth hash for a given message cid (#10961) 2023-06-06 17:53:04 -05:00
export-car.go chore: migrate to boxo 2023-06-19 14:45:05 -07:00
export.go chore: migrate to boxo 2023-06-19 14:45:05 -07:00
fevmanalytics.go make lint happy 2023-03-31 15:16:24 -04:00
fip-0036.go refactor: stop using deprecated io/ioutil 2023-03-29 15:40:49 -04:00
fr32.go storage: Move extern/sector-storage to storage/sealer 2022-06-14 20:03:38 +02:00
frozen-miners.go chore: fix imports 2022-06-14 17:00:51 +02:00
gas-estimation.go perf: eth: gas estimate set applyTsMessages false (#10546) 2023-03-29 14:25:40 -04:00
genesis-verify.go fix: chain: Fix flaky TestChainExportImport 2022-12-02 22:13:12 +01:00
hello.go Don't use go-libp2p-core 2022-08-25 14:20:41 -04:00
import-car.go chore: all: migrate from go-libipfs to boxo 2023-04-18 17:22:18 +02:00
indexes.go Move back to lotus-shed and add subcategory for indexes 2023-06-03 12:22:25 -05:00
invariants.go Refactor state invariant checks for different actor versions 2023-06-28 12:50:15 -07:00
itestd.go Bump http-server-timeout default to 30s 2022-11-29 14:38:44 +00:00
jwt.go refactor: stop using deprecated io/ioutil 2023-03-29 15:40:49 -04:00
keyinfo.go refactor: stop using deprecated io/ioutil 2023-03-29 15:40:49 -04:00
ledger.go Add helper function to print usage when wrong number of arguments are supplied 2022-09-14 15:38:15 -04:00
main.go Move back to lotus-shed and add subcategory for indexes 2023-06-03 12:22:25 -05:00
market.go feat: shed: refactor market cron-state command 2023-04-24 11:02:43 -04:00
math.go chore: fix imports 2022-06-14 17:00:51 +02:00
mempool-stats.go Bump http-server-timeout default to 30s 2022-11-29 14:38:44 +00:00
migrations.go Added support for Filecoin network version 21 (v12 state types) 2023-08-01 14:23:55 -10:00
miner-multisig.go Update go-state-types 2022-12-14 19:33:47 -05:00
miner-peerid.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
miner-types.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
miner.go Fix lint after merge 2023-04-23 15:43:53 -06:00
misc.go chore: fix imports 2022-06-14 17:00:51 +02:00
mismatches.go chore: deps: update to FVM 3.3.1 2023-05-01 10:37:43 -04:00
mpool.go chore: fix imports 2022-06-14 17:00:51 +02:00
msg.go Merge branch 'master' into adlrocha/cns-iface-master 2022-11-22 10:28:18 +01:00
msig.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
nonce-fix.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
params.go chore: remove redundant import prefixes 2022-06-15 12:06:22 +02:00
postfind.go chore: fix imports 2022-06-14 17:00:51 +02:00
proofs.go Add helper function to print usage when wrong number of arguments are supplied 2022-09-14 15:38:15 -04:00
pruning.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
rpc.go refactor: stop using deprecated io/ioutil 2023-03-29 15:40:49 -04:00
sectors.go fix tests/lint 2023-05-23 12:26:13 +02:00
send-csv.go Add helper function to print usage when wrong number of arguments are supplied 2022-09-14 15:38:15 -04:00
signatures.go Add helper function to print usage when wrong number of arguments are supplied 2022-09-14 15:38:15 -04:00
splitstore.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
state-stats.go chore: migrate to boxo 2023-06-19 14:45:05 -07:00
stateroot-stats.go cctx.Args().Len() to cctx.NArg() 2022-09-14 14:33:29 -04:00
sync.go Add helper function to print usage when wrong number of arguments are supplied 2022-09-14 15:38:15 -04:00
terminations.go Revert "Standardize path variable" 2023-02-15 11:09:24 -05:00
verifreg.go make ledger sign work 2023-05-17 22:01:04 -04:00