Geoff Stuart
22760f0922
Handle pre-v7 case more gracefully
2022-02-23 12:02:26 -05:00
TheMenko
5ece3d4c10
Merge branch 'master' into bloxico/basic_wallet_tests
...
merge master to update the branch
2022-02-23 15:48:53 +01:00
Geoff Stuart
23147378a3
Added cli command for vrk to send RemoveVerifiedClientDataCap message
2022-02-22 22:07:20 -05:00
Geoff Stuart
375d9fdfc9
Added cli command for verifier to sing RemoveDataCapProposal
2022-02-22 22:07:20 -05:00
Darko Brdareski
0a03ec569a
Merge branch 'master' into bloxico/syncer-tests
2022-02-22 16:17:04 +01:00
Darko Brdareski
10c939bc36
Remove leftover logging from sync_manager_test
2022-02-22 14:54:56 +01:00
ZenGround0
6123aa2ed4
Merge pull request #8048 from filecoin-project/cli-chain-tests
...
test: cli: chain category unit tests
2022-02-21 19:12:18 -07:00
Steven Allen
1234fcfd4f
fix: mempool: check messages against the next block's height
...
Previously, we checked message gas/validity with the previous block's
height. This doesn't affect consensus, but will help us avoid adding
messages to the message pool that shouldn't be there.
2022-02-21 18:13:07 +00:00
Steven Allen
04bc4405c7
fix: chain: check against the inclusion price at the correct height
...
We need to use the height at which the messages will be executed, not
the height of the previous tipset. This brings the gas checking for
validation with the gas we actually _charge_ during message execution.
This only matters for the Calico upgrade (the only upgrade where we
changed the gas prices).
This change could potentially cause a block at that height to be
rejected if it includes a message with insufficient gas for inclusion.
However, that _should_ have shown up as a miner penalty when we executed
the blocks in the following tipset. Given that there were no miner
penalties at 265199-265201, this change should be "safe".
2022-02-21 18:12:51 +00:00
Aayush
6e1d5c5733
Merge branch 'master' into feat/fvm
2022-02-18 13:33:06 -05:00
Aayush
5be125ad1a
address review feedback
2022-02-18 13:21:17 -05:00
Aayush
393479ea69
Fvm: impl VerifyConsensusFault
2022-02-18 13:21:01 -05:00
Darko Brdareski
6feae1993d
Fix PR comments.
...
Refactor random addr generation to use a rand seed.
Remove unused lines in tests.
2022-02-17 14:24:42 +01:00
Aayush
afc29ed445
feat: tweak v15 migration params
2022-02-16 13:04:48 -05:00
Łukasz Magiera
7efed6617c
Merge pull request #8029 from filecoin-project/feat/splistore-cold-object-reification-redux
...
splistore cold object reification redux
2022-02-14 19:04:02 +01:00
Aayush
ee6989970f
Merge branch 'master' into feat/fvm
2022-02-13 14:25:39 -05:00
Nikola Divic
0e8a709f92
Merge branch 'master' of https://github.com/filecoin-project/lotus into bloxico/mempool_tests
2022-02-12 17:11:24 +01:00
Masih H. Derkani
b47cde70fa
Decode gossip extra data as []bytes
...
The type of extra data in go-legs gossip is bytes. But when it is parsed
as miner ID, it is cast to string then parsed. Instead, it should be
decoded from bytes.
2022-02-11 18:59:00 +00:00
Nikola Divic
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
Nikola Divic
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
Will
296eab3045
Merge pull request #8045 from gammazero/feat/cid-to-piece-idx
...
Add indexer pubsub message authentication and rate limiting
2022-02-10 13:49:58 -08:00
gammazero
c1b2080f4e
spelling in comment
2022-02-10 11:25:30 -08:00
gammazero
1e37185d74
Ignore, not regect, indexer messages from self.
2022-02-10 08:44:40 -08:00
gammazero
9481fa0a4b
Use new indexer pubsub message encoding
2022-02-09 16:40:27 -08:00
gammazero
681ce94a34
Correctly handle seqno check
2022-02-09 16:21:05 -08:00
gammazero
3ff209d95d
Add replay rejection
2022-02-09 11:06:56 -08:00
Nikola Divic
7d2810abbc
test: don't parse err messages in messagepool_test
...
Per @vyzo's feedback, we shouldn't parse err messages but figure out
a way to do this smarter. I updated the code just check for error
existence and @brdji should figure out what to do next.
2022-02-09 19:54:45 +01:00
gammazero
a62e027002
review changes
2022-02-09 10:29:49 -08:00
Nikola Divic
e797ec138d
test: chain getmessage cli command
...
I also added some helper functions for mocking in the types/mock pkg
2022-02-09 17:29:29 +01:00
Rob Quist
026c51033c
perf: chain: Make drand logs in daemon less noisy ( #7955 )
...
Makes logs less noisy
2022-02-09 13:34:55 +01:00
Steven Allen
e8bdf8171b
chore: cleanup fil vested calculation
...
1. Move lock, loading, etc into GetFilVested.
2. Call it directly when creating the FVM.
3. Detach GetFilLocked from state manager.
Really, this just makes it a bit easier to reason about this code.
2022-02-08 20:54:53 -08:00
Steven Allen
e8d771fcac
pass only fil-vested into FVM
2022-02-08 15:26:20 -08:00
Steven Allen
32b3618c74
fvm: feed in correct "base" circulating supply
2022-02-08 13:20:03 -08:00
gammazero
b2805823ce
Pass to validator the interfaces needed to get miner info
2022-02-08 04:55:59 -08:00
gammazero
1dc6a2fea6
Add indexer pubsub message authentication and rate limiting
2022-02-08 02:53:25 -08:00
Aarsh Shah
399a1afd94
Merge remote-tracking branch 'origin/master' into feat/cid-to-piece-idx
2022-02-08 12:37:57 +04:00
Steven Allen
279cdd0760
fvm: fix implicit messages and message inclusion gas charging
2022-02-07 10:33:57 -08:00
Steven Allen
fc74a6c8ca
update fvm/ffi bindings
2022-02-04 12:46:15 -08:00
Aayush Rajasekaran
2a669b95fb
:Hook up the FVM
2022-02-04 12:46:15 -08:00
vyzo
9d92b6eb92
correctly wrap hotview in the context for compute_state
2022-02-04 16:57:08 +02:00
vyzo
73c741f20c
reify cold objects on block validation/application
2022-02-04 16:19:28 +02:00
Aarsh Shah
3ecf478ff0
Merge pull request #8026 from gammazero/feat/cid-to-piece-idx
...
Lotus chain nodes relay indexer pubsub messages
2022-02-04 12:05:46 +04:00
gammazero
c084130d3e
Lotus chain nodes relay indexer pubsub messages
...
Content providers announce the availability of indexer data using gossip pubsub. The content providers are not connected directly to indexers, so the pubsub messages are relayed to indexers via chain nodes. This PR makes chain nodes relay gossip pubsub messages, on the /indexer/ingest/<netname> topic.
2022-02-03 14:56:21 -08:00
Darko Brdareski
008fbbd652
Add unit and integration tests for mempool
2022-02-02 17:08:50 +01:00
Darko Brdareski
e51ce5c508
Merge remote-tracking branch 'upstream/master' into bloxico/system-test-matrix
2022-01-27 10:57:56 +01:00
Łukasz Magiera
176ecd4c3b
mpool: Cache state nonces
2022-01-26 15:39:58 +01:00
Aayush Rajasekaran
71c6d05902
chore: chain: fix log
2022-01-24 11:18:01 -05:00
vyzo
0870f48b5c
fix mocknet.New invocation
2022-01-20 11:36:11 +02:00
Aayush
9ec1abf880
:Fix: create a new VM for each epoch
2022-01-17 16:28:22 -05:00
Aayush Rajasekaran
6f8d00310b
Merge branch 'master' into ntwk-butterfly-snapnet
2022-01-12 19:12:02 -05:00
Aayush Rajasekaran
083c5b003c
Address review
2022-01-12 12:57:34 -05:00
Aayush Rajasekaran
7559e4311e
Support faster Get, retry flushes on error
2022-01-11 20:30:34 -05:00
Aayush Rajasekaran
a41b4acec3
Use channels to trigger flushes in a dedicated goroutine
2022-01-11 19:44:56 -05:00
Aayush Rajasekaran
5ff6148444
implement stubs
2022-01-11 18:03:37 -05:00
Jennifer Wang
cd8d3a0c88
Update the ntwk v15 name to OhSnap
2022-01-11 17:41:20 -05:00
Aayush Rajasekaran
25768a291e
Implement an autobatcher
2022-01-11 17:20:10 -05:00
Aayush Rajasekaran
8aabe1b488
Fast migration for v15
2022-01-11 17:19:38 -05:00
TheMenko
5911780735
remove test files since they have been split to other PR
2022-01-11 19:55:54 +01:00
Aayush Rajasekaran
207d33eaba
Merge pull request #7810 from filecoin-project/feat/snap-deals
...
Snap Deals Lotus Integration: FSM Posting and integration test
2022-01-11 12:46:55 -05:00
Aayush Rajasekaran
d645c5fbab
Remove unnecessary params from VerifyWinningPost
2022-01-11 12:06:39 -05:00
TheMenko
492fb9d054
wallet basic tests with annotations for system test matrix
2022-01-11 02:16:53 +01:00
zenground0
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
Jakub Sztandera
736fb5c5b0
Add gas charge for VerifyReplicaUpdate
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2022-01-07 15:18:08 +01:00
Aayush Rajasekaran
5ec5ebac31
Fix circsuypply calc around null blocks
2022-01-05 14:17:40 -05:00
Raúl Kripalani
572114b8ba
Merge branch 'master' into raulk/fix/test-vector-runner
2022-01-04 17:34:16 +00:00
Raúl Kripalani
d4fa5a0f1d
tvx runner: adjust gas pricing to cope with synthetic epochs.
2022-01-04 17:32:57 +00:00
Łukasz Magiera
63d7ca328f
Merge branch 'master' into asr/shed-balances
2022-01-04 16:52:37 +01:00
Darko Brdareski
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
Aayush Rajasekaran
670bd993f3
Refactor: VM: Remove the NetworkVersionGetter
2021-12-17 19:14:21 -05:00
Aayush Rajasekaran
6f6f5d79fb
Refactor: State: Let Rand get network versions
2021-12-17 18:54:17 -05:00
Aayush Rajasekaran
3f4eaa99d5
Refactor: State: Rename stmgr::GetNtwkVersion to GetNetworkVersion
2021-12-17 18:43:39 -05:00
Aayush Rajasekaran
aa1b770974
Rand: Refactor so that versioning lives in StateRand
2021-12-17 13:58:53 -05:00
Łukasz Magiera
bc384c01e3
Merge remote-tracking branch 'origin/master' into deps/update-ctx-dsbs
2021-12-17 13:01:22 +01:00
vyzo
cd266a05d2
fix tests
2021-12-17 12:04:04 +02:00
vyzo
dd327f0b22
plumb more contexts
2021-12-17 11:42:09 +02:00
Aayush Rajasekaran
1f04cc1f23
VM: Circ supply should be constant per epoch
2021-12-17 00:29:55 -05:00
Aayush Rajasekaran
690be5bf7f
Merge pull request #7321 from filecoin-project/asr/msg-limit
...
Mempool msg selection should respect block message limits
2021-12-16 22:13:07 -05:00
Darko Brdareski
be1123b5df
Merge branch 'wallet_tests_stm'
2021-12-15 12:28:06 +01:00
TheMenko
5ccb4586b5
add header annotations
2021-12-15 12:27:19 +01:00
TheMenko
d8d708704d
Merge branch 'msgpool_tests_stm'
...
message pool tests
2021-12-15 12:20:57 +01:00
TheMenko
65819140dd
annotated tests for messagepool
2021-12-15 00:56:05 +01:00
Aayush Rajasekaran
0e2278cc76
Merge branch 'master' into deps/update-ctx-dsbs
2021-12-14 18:08:29 -05:00
Darko Brdareski
ec8baf23d8
Annotate message signer subsystem
2021-12-14 17:21:01 +01:00
vyzo
63487e1d69
fix checkpoint test
2021-12-14 18:05:23 +02:00
vyzo
a0353c8627
fix messagepool selection test
2021-12-14 18:01:34 +02:00
vyzo
6ecbcebd44
fix messagepool repub test
2021-12-14 17:57:37 +02:00
vyzo
e6a8c278f5
fix messagepool test mock provider
2021-12-14 17:53:31 +02:00
vyzo
780dfa0c7c
fix ReorgOps incantation in events test
2021-12-14 17:49:34 +02:00
vyzo
5e692f9071
fix more tests
2021-12-14 17:45:38 +02:00
vyzo
22ce395130
fix some unit tests
2021-12-14 17:05:10 +02:00
Darko Brdareski
a64f2421d2
Annotate 'incoming' subsystem
2021-12-14 11:33:33 +01:00
Aayush Rajasekaran
b08bf32040
Add a log for when message selection fails
2021-12-13 18:31:31 -05:00
Aayush Rajasekaran
a45803d8a0
Mempool: add selection tests
2021-12-13 18:28:05 -05:00
Aayush Rajasekaran
ec00e73c9d
Mempool: Selection should respect CBOR limits
2021-12-13 18:28:05 -05:00
Aayush Rajasekaran
dd20cb7301
Consensus: Safety check against unknown sig types
2021-12-13 18:28:05 -05:00
Aayush Rajasekaran
ac3cdf75fa
Mempool: Selection logic should respect block message limits
2021-12-13 18:28:05 -05:00
Aayush Rajasekaran
80d5e52923
Merge branch 'master' into next
2021-12-13 13:24:28 -05:00
Darko Brdareski
0addca1070
Fix bad annotations
2021-12-13 13:41:04 +01:00
Darko Brdareski
5065626984
Merge remote-tracking branch 'origin/wallet_tests_stm' into syncer_tests
2021-12-13 11:17:03 +01:00
TheMenko
15263bc0d7
basic tests for local and multi wallets
2021-12-13 11:16:06 +01:00
Aayush Rajasekaran
dfb65ed89f
Plumb contexts through
2021-12-11 17:04:00 -05:00
gstuart
9108828aeb
Make Lotus vm gas tracing an env var
2021-12-10 17:27:44 -05:00
Darko Brdareski
0169d0dafd
Annotate state feature tests
2021-12-10 16:08:25 +01:00
Darko Brdareski
f04bae3f0b
Annotate rand_test
2021-12-10 11:41:24 +01:00
Darko Brdareski
95f86f9de0
Annotate feature syncer
2021-12-10 11:33:29 +01:00
Aayush Rajasekaran
fcb7cd0eb0
Shed: Add a util to send a batch of messages
2021-12-07 17:09:07 -05:00
c r
e16e9ad343
reorder transfer
checks so as to ensure sending more money than you have to yourself fails with an error (fixing issue 7596)
...
PR #7637 , also adds tests to make sure behavior is correct across versions.
2021-11-29 17:26:47 -05:00
Aayush Rajasekaran
5f1783c9a5
Address review
2021-11-19 15:11:13 -05:00
Aayush Rajasekaran
8665e32221
Update deps
2021-11-17 15:55:14 -05:00
Aayush Rajasekaran
1449644c34
Integrate v7 actors
2021-11-17 15:55:14 -05:00
Aayush Rajasekaran
3be0c068b9
Shed: Add a util to create miners more easily
2021-11-03 00:20:48 +00:00
Raúl Kripalani
95d294db63
rename vm#make{=>Account}Actor().
2021-10-26 19:11:00 +01:00
Łukasz Magiera
d9100981ad
Merge pull request #7495 from filecoin-project/feat/inline-codegen
...
Inline codegen
2021-10-19 10:25:32 +01:00
Łukasz Magiera
1d8a9c75d4
Use .latestActorsVersion in actors/version.go
2021-10-19 11:05:14 +02:00
Łukasz Magiera
463f55ba13
Use more inline-gen
2021-10-18 17:46:50 +02:00
Łukasz Magiera
19f52b4541
inline-gen: Slightly nicer comment format
2021-10-18 17:21:53 +02:00
Aayush Rajasekaran
8e168cb657
FilecoinEC: Improve a log message
2021-10-12 10:34:47 -04:00
Łukasz Magiera
5616dfb1bc
Some more inline codegen
2021-10-11 22:57:24 +02:00
Aayush Rajasekaran
1723793c35
Bugfix: Use current startup network versions
2021-10-10 14:26:10 -04:00
Aayush Rajasekaran
bd2176c398
Test StateSearchMsg's use of the allowReplaced flag
2021-10-05 23:58:31 -04:00
Aayush Rajasekaran
441bcdc4af
StateSearchMsg: Correct usage of the allowReplaced flag
2021-10-05 23:58:16 -04:00
Jennifer Wang
38e01cba83
Merge branch 'release/v1.12.0' into jen/12tomaster
2021-10-04 02:38:00 -04:00
Aayush Rajasekaran
ec14259b5a
Prep the butterfly network for v14
2021-10-02 17:27:39 -04:00
Aayush Rajasekaran
a335cb3767
Update to latest actors
2021-10-01 17:11:05 -04:00
Aayush Rajasekaran
8756df2447
Fix tests after specs update
2021-09-29 21:27:49 -04:00
Aayush Rajasekaran
84b6734063
Incorporate the new PublishStorageDealsReturn
2021-09-29 19:13:13 -04:00
Aayush Rajasekaran
c3c46e9097
Fix Drand fetching around null tipsets
2021-09-29 11:57:59 -04:00
Aayush Rajasekaran
d9e711eac5
Merge pull request #7378 from filecoin-project/asr/weight
...
ChainStore: Add a tiebreaker rule for tipsets of equal weight
2021-09-27 12:34:16 -04:00
Aayush Rajasekaran
44405bd1a0
ChainStore: Add a tiebreaker rule for tipsets of equal weight
2021-09-27 10:23:30 -04:00
Aayush Rajasekaran
31666b9617
Sync: Sanity check msg siggy type
2021-09-22 16:59:11 -04:00
Aayush Rajasekaran
7b4c657e90
Add v6 actors
2021-09-21 14:23:14 -04:00
Aayush Rajasekaran
b9bfcc4b69
Randomness: Move getters from ChainAPI to StateAPI
2021-09-21 14:20:15 -04:00
Aayush Rajasekaran
1d6db306ec
Randomness: Move getters from ChainAPI to StateAPI
2021-09-15 00:03:13 +02:00
Aayush Rajasekaran
aef741ae19
Mempool: reduce size of sigValCache
2021-09-08 16:08:41 -04:00
Łukasz Magiera
727bb84592
stmgr: drop MethdosMap
2021-09-02 18:58:34 +02:00
Łukasz Magiera
30fccaa0bd
fix lint
2021-09-02 18:45:18 +02:00
Łukasz Magiera
95b128b7bc
chain: Cleanup consensus logic
2021-09-02 18:09:37 +02:00
Steven Allen
6a02237f6f
Merge pull request #7210 from filecoin-project/fix/fork-check
...
fix: correctly handle null blocks when detecting an expensive fork
2021-08-31 11:01:45 -07:00
Steven Allen
91da70fb7d
fix: comment spelling
2021-08-31 10:37:51 -07:00
Łukasz Magiera
daaa725e3b
sectors expired: Handle precomitted and unproven sectors correctly
2021-08-31 16:24:29 +02:00
Łukasz Magiera
b0f57d74e5
Merge pull request #7000 from filecoin-project/feat/refactor-events
...
Refactor events subsystem
2021-08-31 12:02:22 +02:00
Steven Allen
d113813b33
Merge pull request #7211 from filecoin-project/test/audit-disabled-tests
...
test: re-enable disabled tests
2021-08-30 17:03:03 -07:00
dirkmc
1da59fa2fe
fix events API timeout handling for nil blocks ( #7184 )
2021-08-30 17:00:24 -07:00
Steven Allen
1cf556c3a2
feat: expose ChainGetPath on the gateway
2021-08-30 16:43:21 -07:00
Steven Allen
003eae81ce
fix: address review
2021-08-30 16:43:21 -07:00
Steven Allen
f518e34131
fix: atomically get head when registering an observer
...
This lets us always call check (accurately).
2021-08-30 16:43:21 -07:00
Steven Allen
82ac0a24a0
test: improve chain event tests
2021-08-30 16:43:21 -07:00
Steven Allen
3846170302
refactor events system
2021-08-30 16:43:21 -07:00
Steven Allen
a875e9ba73
fix: check parents when adding tipsets to the "cache"
2021-08-30 16:43:21 -07:00
Steven Allen
43bbde1e6b
fix: close chain head subscription when the reader is slow
...
The reader can just re-subscribe when they're ready to catch up. This
prevents a slow reader from bogging down the entire system.
2021-08-30 16:43:21 -07:00