Commit Graph

4127 Commits

Author SHA1 Message Date
vyzo
9a0ec84953 shut down the index if there is an error during head processing 2023-03-29 22:13:26 +02:00
vyzo
e11e0eb32a complain if head change processing is building backlog 2023-03-29 22:13:26 +02:00
vyzo
3d58ef1c21 fix typos 2023-03-29 22:13:26 +02:00
vyzo
42553dac6b chain errors in searchForIndexedMsg 2023-03-29 22:13:26 +02:00
vyzo
abdb12b450 add ON CONFLICT REPLACE clause in messages 2023-03-29 22:13:26 +02:00
vyzo
427ff42063 increase coalesce delays for test to deflake on CI 2023-03-29 22:13:26 +02:00
vyzo
d3cb4a1244 add optimization TODO comment 2023-03-29 22:13:26 +02:00
vyzo
7aa72e4466 fix bug in searchForIndexedMsg
Need to use and return the execution tipset
2023-03-29 22:13:26 +02:00
vyzo
4f5e0a0fe4 basic msgindex itest 2023-03-29 22:13:26 +02:00
vyzo
22490bdea9 add confidence check for indexed message epoch 2023-03-29 22:13:26 +02:00
vyzo
e718857b2f enhance comment about lookup cid semantics 2023-03-29 22:13:26 +02:00
vyzo
682eb90654 adjust coalescer delays 2023-03-29 22:13:26 +02:00
vyzo
50d15e32c0 log rollback errors 2023-03-29 22:13:26 +02:00
vyzo
64a380fce3 wire in lifecycle context 2023-03-29 22:13:26 +02:00
vyzo
8735f69fc7 fix comment typo 2023-03-29 22:13:26 +02:00
vyzo
5b54bcf7f9 cosmetics 2023-03-29 22:13:26 +02:00
vyzo
02797bb578 fix tests 2023-03-29 22:13:26 +02:00
vyzo
e682036cef refactor database
- drop the execution index; we don't need it
- it is inclusion tipset
- use MessagesForTipset
- hoist db sql stuffs on top for clarity
- add index for tipset on messages
2023-03-29 22:13:26 +02:00
vyzo
7219fae0a1 more lint 2023-03-29 22:13:26 +02:00
vyzo
0564663b7e lint
lint

lint
2023-03-29 22:13:26 +02:00
vyzo
f82a94220d make gen 2023-03-29 22:13:26 +02:00
vyzo
f76babceec hook the index into the rest of lotus 2023-03-29 22:13:26 +02:00
vyzo
d032e4f119 use the transaction Luke! 2023-03-29 22:13:26 +02:00
vyzo
dad3442500 test test test 2023-03-29 22:13:26 +02:00
vyzo
e6a0c5a406 implement Close 2023-03-29 22:13:26 +02:00
vyzo
c123fab1da implement reconciliation 2023-03-29 22:13:26 +02:00
vyzo
7a3af7bf0f more implementation 2023-03-29 22:13:26 +02:00
vyzo
28321c1eea better logger name 2023-03-29 22:13:26 +02:00
vyzo
6a67cd9931 implementation details 2023-03-29 22:13:26 +02:00
vyzo
46488d4356 abstract ChainStore interface 2023-03-29 22:13:26 +02:00
vyzo
3a06c7afaf we don't need the block 2023-03-29 22:13:26 +02:00
vyzo
df21d5b4ee use tipset cid instead of key for posterity. 2023-03-29 22:13:26 +02:00
vyzo
0d1c0f9247 scaffolding 2023-03-29 22:13:26 +02:00
Jiaying Wang
caa6dd9c41
Merge pull request #10594 from filecoin-project/phi/v1210-rc2
build: release: v1.21.0-rc2
2023-03-29 15:59:56 -04:00
Aayush
a724a713da refactor: stop using deprecated io/ioutil 2023-03-29 15:38:46 -04:00
Aayush
3120852eb9 feat: supply: only grab genesis msig locks for writes 2023-03-29 14:26:15 -04:00
Aayush
24381411f2 feat: supply: drop genesis market locked funds 2023-03-29 14:26:08 -04:00
Mikers
06294351fa 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-29 14:25:40 -04:00
Łukasz Magiera
7e414ac390 Merge remote-tracking branch 'origin/master' into feat/go-data-transfer-v2 2023-03-15 11:37:53 +01:00
Łukasz Magiera
162e07fc95
Merge pull request #10470 from filecoin-project/feat/applyblock-timing-log
feat: consensus: log ApplyBlock timing/gas stats
2023-03-14 15:25:31 +01: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
Łukasz Magiera
51c6b64c91 feat: consensus: log ApplyBlock timing/gas stats 2023-03-14 13:58:36 +01:00
Steven Allen
dcb49dc8ee
refactor: update cache to the new generic version (#10463)
- Adds type safety.
- Reduces allocations.
- Fixes the drand cache (was storing by value, but retrieving by pointer)
2023-03-13 15:29:09 -07:00
Raúl Kripalani
f7a979d825 eth_feeHistory: migrate to using TipSetState. 2023-03-11 17:25:00 +00:00
Steven Allen
1cf57ffe2d feat: eth: optimize receipt reading
This optimizes the eth APIs (except the fee history one) to lookup the
tipset state/receipts instead of computing the state.
2023-03-10 15:33:45 -08:00
Steven Allen
92bca485b6 feat: stmgr: skip tipset execution when possible 2023-03-10 13:21:17 -08:00
Steven Allen
f7603f6c13 feat: eth API: reject masked ID addresses embedded in f410f payloads
We'll never get an actor/account deployed to one of these
addresses (although we might get a placeholder). However, converting
such an address to an f4 address is definitely wrong.
2023-03-10 10:57:39 -08:00
Steven Allen
58900a7033
feat: mempool: Reduce minimum replace fee from 1.25x to 1.1x (#10416)
However, we're leaving the default at 1.25x for backwards compatibility, for now.

Also:

1. Actually use the configured replace fee ratio.
2. Store said ratios as percentages instead of floats. 1.25, or 1+1/(2^2),
can be represented as a float. 1.1, or 1 + 1/(2 * 5), cannot.

fixes #10415
2023-03-09 13:17:17 -08:00
Aayush Rajasekaran
b75ebcac81
Merge pull request #10423 from filecoin-project/asr/fast-index
feat: chain: make chain tipset fetching 1000x faster
2023-03-09 15:38:55 -05:00
Aayush
90c89288b6 feat: chain: make fetching tipset by height 1000x faster 2023-03-09 15:12:13 -05:00