Commit Graph

14411 Commits

Author SHA1 Message Date
Alex Sharov
6e6a079168
make $rate_interval configurable and migrate charts to new type (#2427) 2021-07-22 23:06:19 +07:00
ledgerwatch
026c4e9d02
Reorg ropsten solution (#2419)
* Reorg ropsten solution

* Add option

* Print TD recalc

* Correct fix for eip1559

* Try to fix the unwind

* Print header progress and hash

* Not insert descendants of bad headers

* Print some more

* Print less

* Better way of marking bad headers

* Disable inSync

* Penalise peers who give incorrect chain pieces

* better fix for initial cycle

* Clean up

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-07-22 16:49:36 +01:00
Alex Sharov
b957ae98e4
eip1559 for pending tx rpc (#2426) 2021-07-22 21:21:55 +07:00
alex.sharov
c2b0b8be36 remove debug comment 2021-07-22 19:08:19 +07:00
ledgerwatch
d7c405308c
Update skip_analysis.go (#2420) 2021-07-22 18:57:36 +07:00
Alex Sharov
50ccb67d52
shorter flags (#2423) 2021-07-22 18:55:56 +07:00
Alex Sharov
5dc0884f27
add stop point of tx_lookup unwind (#2413) 2021-07-22 12:40:00 +07:00
ledgerwatch
e4cade4ea7
Fix recording file for rpctest (#2418)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-07-21 22:37:32 +01:00
ledgerwatch
96ee6e1537
Fix for eip1559 incorrect assert (#2415)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-07-21 19:35:08 +01:00
ledgerwatch
e903152378
Fix for trace_replayBlockTransactions (#2414)
* Intermediate

* fix

* fix

* Fix test

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-07-21 19:34:56 +01:00
b00ris
7f81f9858b
proper handling of deleted values for snapshot (#2387) 2021-07-21 16:36:09 +03:00
Alex Sharov
f3474dc9ba
Limit non-genesis jump for prune node (#2412) 2021-07-21 18:44:47 +07:00
Alex Sharov
d2552196ad
Sokol v0: support for first epoch-set transition (#2411) 2021-07-21 18:13:26 +07:00
Alex Sharov
33b122424c
clean logs (#2410) 2021-07-21 08:18:21 +01:00
alex.sharov
e828308b44 reset_state must reset prune heigh also 2021-07-21 11:03:58 +07:00
Alex Sharov
8db5a47fb4
make get logs cancelable (#2408) 2021-07-21 09:37:29 +07:00
Alex Sharov
c3e1cfdac8
Pruning for: exec, log_index, tx_lookup, history stages (#2399)
* Pruning for: exec, log_index, tx_lookup, history stages

* Pruning for: exec, log_index, tx_lookup, history stages

* Pruning for: exec, log_index, tx_lookup, history stages

* Pruning for: exec, log_index, tx_lookup, history stages

* add tvm flag

* save

* db migration for storage mode
add flag --prune=
remove flag --storage-mode=
add flag --experiments=tevm,...
rename integration set_storage_mode to set_prune

* fix

* forward move of stages must skip everything before PruneTo

* keep in db progress of prune method

* keep in db progress of prune method

* simplify logs

* simplify logs

* simplify logs

* fix test

* simplify logs

* simplify logs

* simplify logs

* simplify logs

* remove callTraceSet as dupsort
use etl transform for txlookup prune
remove some logs

* cleanup tests a bit

* print_stages and eth_sync to show prune progress

* fix print_stages

* add readme about --prune.to flag

* more docs

* add --prune.history.older and other flags support

* fix migration on empty db

* better toString

* better toString
2021-07-20 21:03:19 +01:00
ledgerwatch
42c71da7dd
Fix for trace_replayTransaction due to gasPrice bug (#2403)
* Print CALL instr

* Print more info

* try to remove gas bailout

* gas bailout control and txHash

* Swap tracer

* Flush stream

* Add more json structure

* Print gasPrice

* Print gas price

* Fix

* Fix

* Clean up

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-07-20 10:36:32 +01:00
Alex Sharov
031b0b177e
remove mutexes use (#2406) 2021-07-20 15:34:11 +07:00
Alex Sharov
f1345e827d
remove ipc package (#2405)
* remove ipc package

* remove ipc package

* remove ipc package

* remove ipc
2021-07-20 15:34:04 +07:00
Alex Sharov
ecf0f6c2f0
remove signify package (#2404) 2021-07-20 13:48:53 +07:00
Artem Vorotnikov
0026cb8faa
Remove checkpoints (#2402)
* Remove checkpoints

* Remove more dead flags
2021-07-20 09:11:42 +07:00
ledgerwatch
1c24b9371e
Refactoring of rpctest to reduce copy-paste and enable error recording (#2401)
* Refactoring of rpctest to reduce copy-paste and enable error recording

* Reduction

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-07-19 18:50:45 +01:00
Marius
d085bf9a7f
docker-compose with minimal PID namespace and non-root permissions (#2397)
* Feat: only share the erigon container PID namespace with rpcdaemon instead of the entire host PID namespace.

* Feat: remove host UID:GUID mapping from erigon and rpcdaemon containers in favour of erigon user in Dockerfile. Adapted Makefile to pre-create mounted volumes to avoid permission issues at runtime.

* Feat: docker volume directories should always be owned by erigon user(1000:1000) regardless of the user that invoked the make command.

* Fix: don't chown here which breaks docker volume mounts.

* Fix: remove ERIGON_HOME Makefile variable and simplify recipe.
2021-07-19 20:40:09 +07:00
Alex Sharov
b7c3c15fc8
Update README.md 2021-07-19 18:11:39 +07:00
Alex Sharov
5dbb14b219
fix notifications range (#2400) 2021-07-19 17:53:04 +07:00
racytech
5e7bf5173d
Change freelist guide illustrations from lmdb to mdbx (#2391)
* lmdb to mdbx

* nolint added

* linting issues fixed

* linting issues fixed 2

* linting issues fixed 3

Co-authored-by: Kairat Abylkasymov <racytech0x0gmail.com>
2021-07-18 18:44:47 +01:00
Alex Sharov
a5a58e97d0
collector already does copy, no reason to copy in buffer (#2396) 2021-07-18 17:25:41 +07:00
Alex Sharov
13b29abcce
Make UnwindOrder variable non-inverted (#2395)
* revert unwind stages list

* revert unwind stages list
2021-07-18 16:42:50 +07:00
alex.sharov
508573709c update lintci domain 2021-07-18 16:41:31 +07:00
Alex Sharov
d9c5ef3eb9
Pruning stages order support (#2393) 2021-07-18 15:59:05 +07:00
Alex Sharov
71a7e54db0
docker readme (#2394) 2021-07-18 15:22:35 +07:00
Marius
b69638b58e
Feat: Experimental workaround for dockerized rpcdaemon in Local-Mode. Fix some permissions issues in docker containers. (#2392) 2021-07-18 14:42:23 +07:00
Alex Sharov
58e22c5bc3
remove stage.Done() method (#2390) 2021-07-18 09:23:25 +07:00
Alex Sharov
766655205f
Remove sync.Prepare() func (#2389) 2021-07-17 23:07:09 +07:00
Alex Sharov
4c53f51767
Remove "persistent unwind" concept (#2388) 2021-07-17 21:14:51 +07:00
alex.sharov
05a403c70a grafana up 2021-07-17 15:47:35 +07:00
Alex Sharov
499b5ce6ce
remove reader/writer builder (#2386)
* remove builder

* remove builder
2021-07-17 13:38:53 +07:00
Alex Sharov
8d320aee07
add pruning stage concept, but not enable yet (#2385) 2021-07-17 13:38:44 +07:00
Alex Sharov
a79b3cd6eb
unify stage params (#2384) 2021-07-17 09:09:56 +07:00
Alex Sharov
325c9cd9d8
RPC: compatible accountRange (#2378) 2021-07-16 22:01:29 +07:00
Alex Sharov
9f6ef74adc
Linter: to check tx.Rollback() by ruleguard (#2383) 2021-07-16 20:23:54 +07:00
Roman Koblov
1cb962c6e4
RPC: support to batch streamable requests 2021-07-16 20:18:55 +07:00
Alex Sharov
5f55b6b89c
Remove stage builder and use ID's in unwindOrder (#2381) 2021-07-16 20:17:40 +07:00
ledgerwatch
eb5402ee05
Add comments about anchorQueue (#2382)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-07-16 12:46:08 +01:00
ledgerwatch
c0488ea919
Fix for trace in trace_replayTransaction and trace_replayBlock (#2380)
* Fix for trace in trace_replayTransaction and trace_replayBlock

* Add to the rpctest

* Improve output

* Fix typo

* Simplify

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-07-16 08:31:28 +01:00
Alex Sharov
0d35048058
RPC: Access list storage keys are non-nil (#2375) 2021-07-15 21:00:51 +07:00
ledgerwatch
74a96cbefd
Improvements in rpctest (#2376) 2021-07-15 21:00:10 +07:00
Alex Sharov
ec129534ea
deoptimize batch streaming (#2377) 2021-07-15 20:59:38 +07:00
Alex Sharov
8f0ce86ad0
set same timeout for call and trace (#2373) 2021-07-15 17:25:32 +07:00