Steven Allen
efb9422c01
fix: eth: re-execute tipsets on missing events ( #11588 )
...
This will re-execute tipsets to forcibly re-compute and store events
when they're missing. This is effectively lazy backfilling of events.
NOTE: This _won't_ backfill the index itself, it'll just give us the
events.
fixes #11335
2024-01-30 10:29:54 -08:00
Aayush
5b5dd525f5
skip migration cache correctly
2023-11-09 14:14:46 -05:00
Aayush
410bdc389e
fix: nv21fix migration: correctly upgrade system actor
2023-11-09 14:14:41 -05:00
Mikers
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
Aayush Rajasekaran
c4214e23bf
Merge pull request #11206 from AnomalRoil/fix/ctxonlongops
...
fix: chain: cancel long operations upon ctx cancelation
2023-08-28 13:33:08 -04:00
Łukasz Magiera
ae2ae3b9ed
Merge pull request #11189 from filecoin-project/update-go-libp2p-v0300
...
update go-libp2p to v0.30.0
2023-08-24 16:15:26 +02:00
Yolan Romailler
13ade62e27
fix: cancel long operations upon ctx cancelation
2023-08-24 15:30:33 +02:00
Aayush
7e6ed09628
refactor: move vm.Rand to rand.Rand
2023-08-22 11:34:28 -04:00
Aayush
034f6cf832
wip: 2 more randomness fetching APIs
2023-08-21 16:32:27 -04:00
Aayush
98a82d3dfe
Refactor: Rand: Rename DrawRandomness to DrawRandomnessFromBase
2023-08-21 15:03:46 -04:00
Aayush
05ac9453cd
Refactor: Rand: return randomness base without hashing
2023-08-21 15:03:46 -04:00
Marten Seemann
bca0ec4f9c
update go-libp2p v0.30.0
2023-08-21 10:44:37 +07:00
Aayush
e17af657da
chore: stmgr: migrations: do not log noisily on cache misses
2023-07-18 10:22:30 -04:00
Aayush Rajasekaran
867a7b1c01
Merge pull request #10628 from filecoin-project/asr/exec-trace-compute
...
fix: include extra messages in ComputeState InvocResult output
2023-05-29 12:56:43 -04:00
Fridrik Asmundsson
4e8ee737fc
Address review comments
2023-05-04 17:10:26 +00:00
Friðrik Ásmundsson
dec3af7d7f
Merge pull request #10585 from filecoin-project/10584-make-execution-cache-size-configurable
...
feat: Make execution trace configurable via env variable
2023-05-04 14:07:35 +00:00
Aayush
7710a57fa3
fix: include extra messages in ComputeState InvocResult output
2023-04-05 15:25:57 -04:00
Friðrik Ásmundsson
36913db0cd
Merge pull request #10587 from filecoin-project/10583-enable-index-for-statewaitformessage
...
feat: Use MessageIndex in WaitForMessage
2023-03-29 18:38:39 +02:00
Fridrik Asmundsson
2c98a187dd
Use defaultExecTraceCacheSize in case env cannot be parsed
2023-03-29 17:30:00 +02:00
Fridrik Asmundsson
f44fa5d96f
Use MessageIndex in WaitForMessage
2023-03-29 13:35:27 +02:00
Fridrik Asmundsson
8aa4917741
Fix bug in searchForIndexedMsg which always returns an error
2023-03-29 13:18:26 +02:00
Fridrik Asmundsson
17505a0022
Make execution trace configurable via env variable
...
We want to make the execution trace cache size configurable as SPs
may want to disable it while exchanges may want to crank it up.
We were also are going with intuition for this value, so having
ability to change it without a new build would help.
Fixes: https://github.com/filecoin-project/lotus/issues/10584
2023-03-29 11:53:43 +02:00
Fridrik Asmundsson
2e45f6f778
Dont do locking using defer
2023-03-28 12:36:57 +02:00
Fridrik Asmundsson
f84f8a831a
Use TipSetKey as key in cache and return copies
2023-03-28 12:36:57 +02:00
Fridrik Asmundsson
1ea7e05cde
feat: Add small cache to execution traces
...
This PR adds a small cache to calls to ExecutionTrace which helps
improve performance for node operators like exchanges and block
explorers.
If items is in cache calls to this function will be 2-3x faster.
Fixes: https://github.com/filecoin-project/lotus/issues/10504
2023-03-28 12:36:52 +02:00
Mikers
41fce94db4
perf: eth: gas estimate set applyTsMessages false ( #10546 )
...
* have gas estimate call callInternal with applyTsMessages = false and other calls with applyTsMessages=true for gas caclulation optimization
* set applyTsMessages = true in CallWithGas call in shed
* update test with new callwithgas api optimization for eth call
* Update chain/stmgr/call.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* env flag LOTUS_SKIP_APPLY_TS_MESSAGE_CALL_WITH_GAS must be 1 in order to have applyTsMessages change
* env flag LOTUS_SKIP_APPLY_TS_MESSAGE_CALL_WITH_GAS must be 1 in order to have applyTsMessages change
* make sure that even if we arent apply ts messages we grab ts messages from the particular user who is requesting gas estimation
---------
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Ubuntu <ubuntu@ip-10-0-4-29.us-east-2.compute.internal>
2023-03-23 18:27:01 -04:00
Aayush
bc87017ea5
feat: supply: only grab genesis msig locks for writes
2023-03-23 17:04:59 -04:00
Aayush
dcdd1bc214
feat: supply: drop genesis market locked funds
2023-03-23 15:56:59 -04:00
vyzo
8abe0ea608
Merge pull request #10452 from filecoin-project/vyzo/feat/chain/msgindex
...
feat:chain: Message Index
2023-03-22 17:02:34 +02:00
vyzo
883bbf8701
add sanity check in SearchForIndexedMsg call site
...
Check that receipt is non nil, and the message was indeed found.
2023-03-16 17:51:28 +02:00
vyzo
3710768910
add TODO for WaitForMessage to use the index
2023-03-16 17:45:16 +02:00
vyzo
ef2f2b0f89
reword funny comment
2023-03-16 17:43:56 +02:00
vyzo
8bceaadda8
chain errors in searchForIndexedMsg
2023-03-16 17:32:06 +02:00
Łukasz Magiera
27e3c0b89f
fix: stmgr: don't attempt to lookup genesis state ( #10472 )
...
* fix: stmgr: don't attempt to lookup genesis state
* stmgr: More correct fix for genesis state compute
2023-03-14 06:45:23 -07:00
vyzo
47646cbd69
add optimization TODO comment
2023-03-13 15:19:07 +02:00
vyzo
1970792445
fix bug in searchForIndexedMsg
...
Need to use and return the execution tipset
2023-03-13 14:56:00 +02:00
vyzo
05cb2428c1
add confidence check for indexed message epoch
2023-03-13 12:33:19 +02:00
vyzo
1415391988
lint
...
lint
lint
2023-03-12 15:50:10 +02:00
vyzo
171734ea31
hook the index into the rest of lotus
2023-03-12 15:25:07 +02:00
Steven Allen
92bca485b6
feat: stmgr: skip tipset execution when possible
2023-03-10 13:21:17 -08:00
Travis Person
f641139bf2
Merge pull request #10282 from filecoin-project/feat/cache-migrated-stateroot
...
feat: stmgr: cache migrated stateroots
2023-03-09 11:47:43 -08:00
Travis Person
b4e589a0f7
review comments
2023-03-09 18:54:29 +00:00
Aayush
74d94af034
fix: state: short-circuit genesis state computation
2023-03-06 15:39:28 -05:00
Steven Allen
dbbcf4b2ee
feat: vm: switch to the new exec trace format ( #10372 )
...
This is now "FVM" native. Changes include:
1. Don't treat "trace" messages like off-chain messages. E.g., don't
include CIDs, versions, etc.
2. Include IPLD codecs where applicable.
3. Remove fields that aren't filled by the FVM (timing, some errors,
code locations, etc.).
2023-03-01 16:02:18 -08:00
Travis Person
814c146626
feat: stmgr: cache migrated stateroots
2023-03-01 16:17:34 +00:00
Travis Person
bf2ac13609
Merge pull request #10283 from filecoin-project/feat/disable-pre-migrations
...
feat: stmgr: add env to disable premigrations
2023-02-21 09:23:13 -08:00
Travis Person
2dcaddf61d
feat: stmgr: add env to disable premigrations
...
Setting the environment variable `LOTUS_DISABLE_PRE_MIGRATIONS=1` will
discard premigrations for all upgrade.
2023-02-17 23:12:26 +00:00
Aayush
75c744a438
Merge branch 'release/v1.20.0'
2023-02-14 20:29:14 -05:00
Steven Allen
77fbc60cb8
fix: stmgr: copy the message before modifying it
2023-02-13 10:06:59 -08:00
Aayush
63b03a48d0
Merge branch 'release/v1.20.0' into asr/merge-release-into-master
2023-02-10 18:39:51 -05:00