Alex Sharov
78e9703bd7
don't reset trie at historyV1 #5127
2022-08-21 11:39:15 +07:00
Enrique Jose Avila Asapche
18f9313c85
added config file slice support ( #5122 )
...
* added config file slice support
* ReadMe update
2022-08-19 16:20:51 +07:00
Alex Sharov
c1214e4ac5
erigon22: incremental stage trie ( #5116 )
2022-08-19 13:23:23 +07:00
Alex Sharov
30324fbb81
erigon22: get acc index from aggregator22 ( #5114 )
2022-08-19 11:30:59 +07:00
Alex Sharov
cb9f86fcbc
erigon22: incremental hash state stage ( #5111 )
2022-08-19 10:00:47 +07:00
Alex Sharov
46ef7e5305
erigon22: incremental hash state stage ( #5102 )
2022-08-19 09:35:43 +07:00
fynn.z
82fb73a545
Fix in-flight sealing task not abort when next sealing task coming ( #5103 )
...
* Fix in-flight sealing task not abort when next sealing task coming, may cause lightclient state verify failed.
* fix integretion err
2022-08-18 18:35:30 +07:00
Enrique Jose Avila Asapche
6e18bef60a
added mutex lock to avoid race condition in downloader ( #5089 )
...
* added mutex lock to avoid race condition in downloader
* Revert "added mutex lock to avoid race condition in downloader"
This reverts commit cc14bf539a7cdf552ffceda3a9aef2949ccac5c2.
* using lock
2022-08-17 18:33:03 +07:00
Alex Sharov
3f20363da4
erigon22: fix storage cleanup on unwind ( #5088 )
2022-08-17 16:24:11 +07:00
Håvard Anda Estensen
ea6b92b132
Enable gosec linter ( #5083 )
...
* Ignore pseudo random generators
* Enable gosec linter
2022-08-17 12:18:19 +07:00
Håvard Anda Estensen
ad865ac758
Enable staticcheck linter ( #5084 )
2022-08-17 12:17:45 +07:00
Håvard Anda Estensen
8460fd8e25
Remove deprecated functions ( #5086 )
2022-08-17 12:17:32 +07:00
ledgerwatch
2e50dc9543
Erigon22 - small fixes to reconstitution ( #5076 )
...
* Fix db issues
* Fix
* another fix
* Another fix
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-08-16 11:50:04 +01:00
Alex Sharov
db95b9a194
RPCDaemon: improve UX - when erigon not available - still can use snpashots ( #5073 )
2022-08-16 15:45:27 +07:00
Håvard Anda Estensen
13322893cb
Enable gosimple linter ( #5071 )
...
* Run gofmt
* Simplify slice making
* Use simple channel to receive instead of select with single case
* Enable gosimple linter
2022-08-16 13:02:13 +07:00
Alex Sharov
a9801d36db
fix nil pointer at startup when not all indices available yet #5070
2022-08-16 08:44:41 +07:00
Leonard Chinonso
039efc38f8
Fix for custom tracer method crashing ( #5066 )
...
* checked for nil blocks
* Showed block number and hash in error message
* cleaned up code
* more cleanup
* Fixed format type for bytes
2022-08-16 08:32:22 +07:00
Enrique Jose Avila Asapche
f0c7235f97
Pruning Receipts Default ( #5065 )
2022-08-15 17:21:18 +03:00
dmitriyselivanov
4499e04a05
rpcdaemon: wire the most recent of EthBackend.builders.block as a pending block into eth_getBlockByNumber ( #5061 )
2022-08-15 15:19:45 +07:00
Alex Sharov
6df6640868
erigon22: prune - check key existance ( #5059 )
2022-08-15 14:36:57 +07:00
ledgerwatch
0f20e1cb93
erigon2.2 optimise reconstitution of state ( #4958 )
...
* No parallel buildFiles and mergeFiles to conserve memory
* go mod
* Fix and optimise
* Fix
* Another fix
* Fix
* Extra return value
* Optimise recon
* Another optimisation of recon
* Different order of usage
* Fix
* Fix
* Optimise allocations
* Lookup before going to history
* Fix
* Fix
* Optimise a bit more
* Only use one helper table
* Set bro tx
* Set broTx to writer
* Use same db for recon and x
* Write into chainDb
* Update to latest erigon-lib
* Remove test
* Set execution progress
* Fix compilation
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@alexs-mbp.lan>
2022-08-14 19:49:32 +01:00
Alex Sharov
6495ec6d28
erigon22: working PlainState unwind ( #5051 )
2022-08-14 18:06:32 +07:00
Alex Sharov
a8cbf6e476
Open erigon_watchTheBurn: could not find block header ( #5050 )
2022-08-14 17:52:42 +07:00
Giulio rebuffo
6713abb420
fixed exec22 panic ( #5045 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-13 18:54:32 +01:00
Alex Sharov
52987a56f3
rpcdaemon: start without panic when --snapshots=false #5043
2022-08-13 22:16:24 +07:00
Alex Sharov
60ff998133
integration: make --datadir and --chain required #5041
2022-08-13 21:46:25 +07:00
Alex Sharov
778792e20e
Sentry doc ( #5040 )
...
* save
* save
* save
2022-08-13 21:37:51 +07:00
Alex Sharov
52fd0d0e8b
Aggregator22.Unwind() ( #5039 )
...
* save
* save
2022-08-13 18:51:25 +07:00
Alex Sharov
64bc837ccf
erigon22: integration, to support parallel execution ( #5037 )
...
* save
* save
2022-08-13 16:53:10 +07:00
Alex Sharov
5ee318e722
--db.read.concurrency must be not less than 10 ( #5036 )
...
* save
* save
2022-08-13 16:16:18 +07:00
Alex Sharov
de3a602a24
erigon22: bsc fixes
2022-08-13 16:09:52 +07:00
Alex Sharov
4f007ae43e
erigon22: use chainDB instead of db22 for everything ( #5034 )
2022-08-13 12:08:15 +07:00
Alex Sharov
e27f669a3f
erigon2.2: save stage progress to chainDB, can run "integration stage_exec" and "state erigon22" on same datadir ( #5033 )
2022-08-13 11:17:24 +07:00
Giulio rebuffo
8ade569cc5
Save PoW blocks for processing received through P2P ( #5015 )
...
* save terminal blocks
* ops
* save less PoW blocks
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-12 21:54:20 +02:00
Alex Sharov
811f531561
erigon22: support of integration stage_exec ( #5029 )
2022-08-12 22:39:33 +07:00
Alex Sharov
25d85d88c5
state erigon22: use right db ( #5028 )
2022-08-12 21:45:09 +07:00
Max Revitt
7a87da9497
fix(sentry): add locks in sentry grpc ( #4981 ) ( #5025 )
2022-08-12 21:18:43 +07:00
Alex Sharov
4594ce5ef7
erigon22: history.v2 flag, align rpcdaemon22 ( #5016 )
...
* save
* save
* save
* save
* save
2022-08-12 16:13:14 +07:00
Giulio rebuffo
348be13508
fixed gossip post TTD ( #5012 )
...
* gossip all gossip
* gossip all gossip
* fixed tests
* fixed gossip post TTD
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-11 19:55:59 +02:00
nanevardanyan
8749fb4a70
cmd: make sure chain config is initialized before accessing it ( #5006 )
...
* cmd: make sure chain config is initialied before accessing it
* cmd: avoid using lazy field directly
2022-08-11 23:44:11 +07:00
Enrique Jose Avila Asapche
30df8a9765
Solving log index out of bound error ( #5009 )
2022-08-11 19:08:20 +03:00
Alex Sharov
206f41811d
save ( #5010 )
2022-08-11 21:37:14 +07:00
Alex Sharov
a7d07ad04d
erigon22 add to exec stage ( #5008 )
...
* save
* save
* save
2022-08-11 21:06:41 +07:00
Alex Sharov
61d3b6c297
erigon22 use initialSync variable ( #5004 )
2022-08-11 12:08:27 +07:00
Alex Sharov
d643da3db8
erigon22 move exec to own package ( #5003 )
...
* save
* save
2022-08-11 11:36:13 +07:00
Alex Sharov
e786cbac24
E22 step2 ( #5002 )
2022-08-11 11:19:59 +07:00
Alex Sharov
f83032533f
Revert "move exec22 to package, call it from stage_exec ( #5000 )" ( #5001 )
...
This reverts commit efa6dfd8ce
.
2022-08-11 11:18:23 +07:00
Alex Sharov
efa6dfd8ce
move exec22 to package, call it from stage_exec ( #5000 )
2022-08-11 11:17:03 +07:00
Alex Sharov
18757053cf
fix merge conflict ( #4998 )
2022-08-11 09:18:17 +07:00
fenghaojiang
12cf311b7c
feat: add erigon_getLogs
with timestamp field to erigon rpcdaemon and fix the issue 4982 ( #4968 )
...
* add_abigen_error_handle
* add abigen error type test code
* add field timestamp in `eth_getLogs` api
add field timestamp in `eth_getLogs` api
* undo add field timestamp in `eth_getLogs`
* add `erigon_getLogs` api and add field `timestamp`
add `erigon_getLogs` api and add field `timestamp`
* feat: add `erigon_getLogs` with timestamp field to erigon rpcdaemon
feat: add `erigon_getLogs` with timestamp field to erigon rpcdaemon
* fix: issue `4982` roaring out of range
fix: issue 4982 roaring out of range
* convert rangeEnd to latest
convert rangeEnd to latest when range end is a big value that go out of range of MaxUint32
* add begin condition
add begin condition in case of bigger than latest block
* add annotation to unreachable code
2022-08-11 09:16:40 +07:00