Alex Sharov
77560b6732
More careful handle of sequences in stage_headers --reset ( #4023 )
...
* save
* save
* save
* save
2022-04-29 14:37:02 +07:00
ledgerwatch
285c782b1b
More efficient header verification of headers for Parlia when snapshots are used ( #3998 )
...
* Update stageloop.go
* Print
* Consider snapshot headers as parlia checkpoints
* Not fail after not loading snapshot
* Lazy snapshots
* Print number of validators
* More printing
* Use epoch instead of checkpoint interval
* Reduce logging
* Fix compilation
* Remove trace jump dest
* Fix lint
* Not store snapshots every epoch
* Separate snapshot for verification and finalisation
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-04-29 07:10:31 +01:00
Alex Sharov
831da9ba41
reduce downloader deps ( #4011 )
2022-04-28 12:42:14 +07:00
Alex Sharov
2655d57288
reduce downloader deps ( #4010 )
...
* reduce downloader deps
* reduce downloader deps
2022-04-28 12:13:30 +07:00
Alex Sharov
8b8c442dc6
Open shorter logs #400
2022-04-28 10:11:07 +07:00
Alex Sharov
d0ce0df1ab
Open only existing torrent files ( #4007 )
...
* save
* save
* save
* save
* save
2022-04-28 10:10:40 +07:00
Alex Sharov
ea8a347ece
Downloader: calc stat inside, add --torrent.download.slots and limit downloads inside ( #3986 )
...
* save
* save
* save
* save
* save
* save
* save
* save
* save
2022-04-28 09:10:00 +07:00
ledgerwatch
ad4182ca36
Re-introduced cleanup of temporary table ( #3999 )
...
* Re-introduced cleanup of temporary table
* Fix sign
* Fix lint
* Fix lint
* Revert
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-04-27 19:11:15 +01:00
Andrew Ashikhmin
c9b26c23b3
Check that safe & finalized blocks are canonical for no-op forkChoice ( #3997 )
...
* Place finishHandlingForkChoice after startHandlingForkChoice
* forkChoiceMessage -> forkChoice
* Check that safe & finalized blocks are canonical for no-op forkChoice
2022-04-27 17:23:13 +02:00
Alex Sharov
8de3e8d0e9
TxLookup fix 2 ( #3994 )
...
* save
* save
* tolerate some fails
* tolerate some fails
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-04-27 12:37:08 +01:00
Alex Sharov
b25cbb439c
save ( #3983 )
2022-04-27 07:06:12 +01:00
Andrew Ashikhmin
4d2db4467e
FullSync instead of FastSync ( #3980 )
2022-04-26 17:19:24 +02:00
Andrew Ashikhmin
3e1d4fab10
Forgot to check err status ( #3978 )
...
* Forgot to check err status
* Invalid header shouldn't fail the entire stage
2022-04-26 15:17:54 +02:00
Alex Sharov
61515ed21e
Bsc: enable syncmode=snap by default #3973
2022-04-26 13:06:18 +07:00
Alex Sharov
e04f7fc9f8
Integration: allow headers --reset ( #3972 )
2022-04-26 12:54:05 +07:00
ledgerwatch
9c2ea3d41b
Update stage_headers.go ( #3966 )
2022-04-26 08:26:44 +07:00
ledgerwatch
538543ad17
Experiment files 1 by 1 ( #3959 )
...
* Experiment files 1 by 1
* Remove check
* sort preverified snapshots
* docs: docker permissions
* sort preverified snapshots
* sort preverified snapshots
* sort preverified snapshots
* sort preverified snapshots
* sort preverified snapshots
* sort preverified snapshots
* save
* Fix speed log, remove file name
* Move timer out of the loop
* Calculate total size of downloaded files
* Fixes
* Fix
* Fix
* Fix
* Move downloadData
* Fix
* Revert "Fix"
This reverts commit 038e02b8a4d23cd32ddb111e9f325fc4ce1bbe2b.
* Revert "Move downloadData"
This reverts commit 8130a4d9bdc0705082eb7fe94e2261c9313f8482.
* Revert "Fix"
This reverts commit 1dca25bd68772bc42ac710c24698c8670f9f6b86.
* Revert "Fix"
This reverts commit ee5a1e82abd47bef4f9d8f0f68b8497476d29c0b.
* Revert "Fix"
This reverts commit 8af7be71d4685e0d6115fef91ed2f304695e1df9.
* Revert "Fixes"
This reverts commit 50509af81f3721cca957cd15d0286e8f30e5097b.
* Revert "Calculate total size of downloaded files"
This reverts commit 64a26df54f6226d739c8a5b57b32ad5af07d3061.
* Remove progress
* Remove progress
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2022-04-25 19:32:27 +01:00
battlmonstr
fc3eecae5e
RPC: admin.peers() ( #3960 )
...
* RPC: admin.peers()
This RPC method returns information about the connected remote nodes.
https://geth.ethereum.org/docs/rpc/ns-admin#admin_peers
The peers are collected from all configured sentries.
See: https://github.com/ledgerwatch/interfaces/pull/102
Test with:
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "admin_peers", "params": [], "id":1}' localhost:8545
* save
* liner fix
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2022-04-25 14:40:04 +01:00
Alex Sharov
874cd5dca0
bsc: disable snap sync ( #3955 )
2022-04-25 08:52:25 +07:00
Giulio rebuffo
5e1900cc48
cleaned up forkchoices db insertions #3949
2022-04-24 08:13:49 +07:00
Håvard Anda Estensen
6844e74ad2
Replace ioutil with io and os ( #3946 )
2022-04-23 15:43:00 +01:00
Alex Sharov
62c377521b
Torrent conns print ( #3943 )
...
* save
* save
2022-04-22 18:24:21 +07:00
battlmonstr
92db317e06
Observer - P2P network crawler ( #3928 )
...
Observer crawls the Ethereum network and collects information about the nodes.
2022-04-22 12:02:12 +01:00
Alex Sharov
0d6775fd95
torrent: print peers amount in logs ( #3942 )
2022-04-22 17:37:35 +07:00
Giulio rebuffo
c5b1836481
Added Ethstats service ( #3931 )
...
* somewhat there but not yet
* lol
* more efficient ethstats
* lint
* not die on no wifi
2022-04-22 07:23:52 +01:00
Alex Sharov
58c86d550d
Snapshots: Max index parallelism to 4 ( #3925 )
...
* save
* save
* Readme update: built-in rpc daemon and syncmode=snap
* save
* save
* save
2022-04-21 17:49:42 +07:00
Alex Sharov
9051d95836
Downloader tables, mdbx-based torrent pieces completion store ( #3923 )
...
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
2022-04-21 10:34:31 +07:00
Alex Sharov
6aa4999729
Parallel indexing ( #3921 )
2022-04-21 10:34:10 +07:00
Alex Sharov
e1d7cc3d3f
Enable: syncmode=snap by default (goerli, mainnet, bsc) ( #3910 )
2022-04-18 14:40:40 +07:00
Alex Sharov
768e1204f6
integration: check that snapshots are nil #3906
2022-04-17 09:54:00 +07:00
Giulio rebuffo
ef14176007
Caching Least Recently Used Contract Code in Stage Execution ( #3887 )
...
* caching gets
* whitelist
* fix
* less ram
* comment
2022-04-14 23:34:03 +02:00
ledgerwatch
156da607e7
More compact representation of huffman trees in the seg files ( #3875 )
...
* More compact representation of huffman trees in the seg files
* Update to latest erigon-lib
* recompress
* recompress
* recompress
* uncompress: buf fix
* Update to latest erigon-lib
* Revert default sync mode
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2022-04-13 16:29:44 +01:00
alex.sharov
8db37cfd97
change default syncmode
2022-04-13 19:09:20 +07:00
Andrew Ashikhmin
b41fe19ecb
Memorize bad PoS headers ( #3879 )
...
* Memorize bad PoS headers
* More places to ReportBadHeaderPoS
2022-04-12 17:05:23 +02:00
Alex Sharov
ff44db147e
Torrent: Increase peers amount to improve Swarm-ing, can do it now because have ratelimiter #3877
2022-04-12 09:09:09 +07:00
Alex Sharov
c56d32682e
fix_nil_pointer ( #3871 )
2022-04-11 17:29:53 +07:00
Alex Sharov
54ec6df6e1
ErigonLib: move types to own package ( #3865 )
2022-04-11 10:05:07 +07:00
ledgerwatch
f56d4c5881
Switch peerId from 256 to 512 bit (as in stable) ( #3862 )
...
* Switch peerId from 256 to 512 bit (as in stable)
* go mod tidy
* Fix some tests
* Fixed
* Fixes
* Fix tests
* Update to erigon-lib main
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-04-10 08:01:25 +01:00
Alex Sharov
9b47daee44
Default syncmode=snap for Mainnet, Bsc, Goerli ( #3861 )
...
* change syncmode default to snap sync
* save
2022-04-10 07:20:20 +01:00
Andrea Lanfranchi
03bd96ef8c
Remove unneeded Plainstate lookups for EOAs ( #3860 )
2022-04-10 09:28:41 +07:00
alex.sharov
072e49653a
A bit less logs
2022-04-09 10:45:46 +07:00
alex.sharov
637c981350
Fix for slow LogIndex prune
2022-04-09 10:29:40 +07:00
alex.sharov
fea26a4c0d
Fix for slow LogIndex prune
2022-04-09 10:14:39 +07:00
Alex Sharov
b512d4423a
Fix for slow LogIndex prune ( #3858 )
...
* save
* save
2022-04-09 10:11:18 +07:00
Alex Sharov
3d0b339124
wait for snapshots not only for POW ( #3857 )
2022-04-09 09:45:18 +07:00
alex.sharov
f02a390dad
snapshots: delete portion of ancient blocks on each sync cycle
2022-04-08 14:43:11 +07:00
Andrew Ashikhmin
9b9da14cd1
Check that safe & finalized blocks are ancestors of head block ( #3839 )
...
* Check that safe & finalized blocks are ancestors of head block
* Add logging
2022-04-07 09:37:12 +02:00
Andrew Ashikhmin
634e9e4f3c
Prohibit EIP-2718 txn wrapped as RLP strings ( #3827 )
2022-04-06 10:40:44 +02:00
alex.sharov
ce95cb496d
download on empty
2022-04-06 09:40:14 +07:00
Alex Sharov
67a623e264
Open rwdir once( #3833 )
2022-04-06 05:54:53 +07:00