139 Commits

Author SHA1 Message Date
e145ef5b9c fix(sync): mark blocks which diverge from checkpoint as bad (#12763)
Resolves flake in `TestSyncCheckpointHead`

Fixes: https://github.com/filecoin-project/lotus/issues/12758

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
2024-12-09 15:53:07 +11:00
a704e4710d chore: delete STM annotations (#12752)
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
2024-12-05 16:45:07 +11:00
65230de10c fix(sync): do not allow to expand checkpointed tipsets (#12747)
* fix(sync): do not allow to expand checkpointed tipsets

Resolves a bug in sync by preventing checkpoint expansion.

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

* Simplify checkpoint affecting checks, add a pre-check

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

* Test checkpoint which restricts tipset size

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

* fixup wording

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

* Improve comment

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

---------

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
2024-12-04 00:27:48 +00:00
1bc8a8b32c chore: remove (deprecated) deps on build/ proxy-constants
This is a large diff, yet should have exactly zero functional changes

Ideally as a result of this some parts of the depchain will become lighter,
with downstream reaping the same benefits as the team that initiated this split.

P.S. work was done while forming better intuition of current dependency graph
2024-07-22 17:36:12 +04:00
26d3fd2ecc chore: lint: fix lint errors with new linting config
Ref: https://github.com/filecoin-project/lotus/issues/11967
2024-05-13 14:52:09 +10:00
5f7aaaa8f9 docs: fix function names in comments (#11898)
Signed-off-by: fuyangpengqi <995764973@qq.com>
2024-04-19 12:00:02 +10:00
5e5a81bf23 add go linter - "unused" (#11235)
* add go linter - "unused"

* use _ to name unused but needed padding variable

* remove unused code

* add queue test to appease unused linter

* remove unused code in test

* remove unused func

* remove unused struct identified by linter

* remove unused variable

* remove unused code

* remove unused file

* remove unused struct

* remove unused function

* remove unused observe peers function in raft

* remove unused declareFaults function

* annotate nolint:unused on needed methods
2023-09-05 12:19:43 -10:00
52657c5cb0 feat: chainstore: FRC-0051: Remove all equivocated blocks from tipsets 2023-08-09 19:28:24 -04:00
bb5ba64cca Revert "Merge pull request #9858 from adlrocha/adlrocha/consistent-bcast"
This reverts commit 8b2208fd9a3d70fa4ef419c12a3953337d45c807, reversing
changes made to 2db6b12b78baf6e73cfa16a86ae7e267fd967421.

Unfortunately, this is rather tricky code. We've found several issues so
far and, while we've fixed a few, there are outstanding issues that
would require complex fixes we don't have time to tackle right now.

Luckily, this code isn't actually needed by the main Filecoin chain
which relies on consensus fault reporting to handle equivocation. So we
can just try again later.
2023-04-27 12:25:30 -07:00
b7c297c537 Merge branch 'master' into adlrocha/consistent-bcast 2023-03-28 16:55:06 +02:00
cdf3812e40 NV18: Filecoin EVM runtime + Actor Events + EthAccount + EAM + f4 addressing (#9998)
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Raul Kripalani <raulk@users.noreply.github.com>
Co-authored-by: Kevin Li <ychiaoli18@users.noreply.github.com>
Co-authored-by: vyzo <vyzo@hackzen.org>
Co-authored-by: Ian Davis <nospam@iandavis.com>
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Geoff Stuart <geoff.vball@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Shrenuj Bansal <108157875+shrenujbansal@users.noreply.github.com>
Co-authored-by: Geoff Stuart <geoffrey.stuart@protocol.ai>
Co-authored-by: Aayush Rajasekaran <aayushrajasekaran@Aayushs-MacBook-Pro.local>
Co-authored-by: ZenGround0 <5515260+ZenGround0@users.noreply.github.com>
Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com>
2023-01-13 19:11:13 +00:00
3988cc9b2c disabling cb delivery delay for sync tests 2022-12-13 14:50:02 +01:00
0efca4d266 introduce v9 actors and nv17 2022-09-09 21:40:15 -04:00
08b22edd89 fix make gen 2022-08-29 16:25:30 +02:00
2086b219d2 Don't use go-libp2p-core 2022-08-25 14:20:41 -04:00
e65fae28de chore: fix imports 2022-06-14 17:00:51 +02:00
8cca9b1970 Use new go-state-types accessors 2022-05-17 15:21:27 -04:00
5f62227f53 fix sync_test 2022-04-14 19:33:24 +03:00
44e42bfec8 fix sync_test 2022-04-14 19:30:47 +03:00
3370847f3e Implement FIP-0031 2022-04-14 19:28:16 +03:00
34bfd13548 doc: add stm annotations to the syncer tests
Add annotations for the test crawler for the lotus.systemtestmatrix.com
dashboard.
2022-02-11 15:06:06 +01:00
ae66f57fa0 test: chain syncer & sync manager
Added a few tests for some uncovered methods of the syncer and sync
manager. Deleted some dead code (sync.go:getLatestBeaconEntry).
2022-02-11 00:46:59 +01:00
e51ce5c508 Merge remote-tracking branch 'upstream/master' into bloxico/system-test-matrix 2022-01-27 10:57:56 +01:00
0870f48b5c fix mocknet.New invocation 2022-01-20 11:36:11 +02:00
33f2d24f54 Snap Deals Integration
- FSM handles the actual cc upgrade process including error states
- PoSting (winning and window) works over upgraded and upgrading sectors
- Integration test and changes to itest framework to reduce flakes
- Update CLI to handle new upgrade
- Update dependencies
2022-01-10 15:39:38 +05:30
dda1a42a2a Merge branch 'bloxico/system-test-matrix' of https://github.com/filecoin-project/lotus into merge_lotus 2021-12-20 15:48:16 +01:00
cd266a05d2 fix tests 2021-12-17 12:04:04 +02:00
5e692f9071 fix more tests 2021-12-14 17:45:38 +02:00
0addca1070 Fix bad annotations 2021-12-13 13:41:04 +01:00
0169d0dafd Annotate state feature tests 2021-12-10 16:08:25 +01:00
95f86f9de0 Annotate feature syncer 2021-12-10 11:33:29 +01:00
c3c46e9097 Fix Drand fetching around null tipsets 2021-09-29 11:57:59 -04:00
7b4c657e90 Add v6 actors 2021-09-21 14:23:14 -04:00
b9bfcc4b69 Randomness: Move getters from ChainAPI to StateAPI 2021-09-21 14:20:15 -04:00
95b128b7bc chain: Cleanup consensus logic 2021-09-02 18:09:37 +02:00
104626acb7 ValidateBlock: Assert that block header height's are greater than their parents 2021-07-26 11:09:23 -04:00
6b014f57e5 pass Subsystems to StorageMiner option; add enableLibp2p bool in Settings 2021-07-07 13:56:37 +02:00
9ec7cd7239 enable libp2p options 2021-06-30 12:55:43 +02:00
b37a66c7c9 Merge remote-tracking branch 'origin/release/v1.10.0' into chore/merge-1.10 2021-06-21 17:03:03 +02:00
b9f864ba9e Expand on Drand change testing 2021-06-16 14:17:55 -04:00
520a0091f5 Merge branch 'releases' into release/v1.10.0 2021-06-15 17:40:36 -04:00
78c128f6a3 chain: Better logging in sync tests 2021-06-03 10:42:26 +02:00
dc642d0b7b Merge remote-tracking branch 'origin/feat/nv13' into feat/nv13-1.11 2021-06-01 21:06:58 +02:00
8d991283f4 Resolve to ID addresses when handling message selection 2021-05-31 18:13:23 -04:00
ffa47659a1 Merge remote-tracking branch 'origin/feat/nv13' into feat/nv13-1.11 2021-05-31 21:38:34 +02:00
10b931312b Fix edgecase in tipset skipcache 2021-05-27 13:44:37 -04:00
21b4741e30 Fix randomness fetching around null blocks 2021-05-26 21:06:06 -04:00
8f309b214b chain: move checkpoint logic into chainstore
That way, checkpoints can be enforced by the chainstore, removing a
potential race where an in-progress sync of a fork could bypass a sync
checkpoint.
2021-04-28 15:06:29 -07:00
0ad51f8a14 test(sync): fix tipset check and re-enable checkpoint tests
We need to wait until the node _has_ the tipset, not until it doesn't.

This probably only worked before due to race conditions.

fixes #4716 (probably)
2021-04-28 15:06:29 -07:00
fd0eb2ec8f Disable flaky checkpoint tests
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2021-04-15 19:59:25 +02:00