Commit Graph

149 Commits

Author SHA1 Message Date
Alex Sharov
1b22208462
e3: Thread safe reopen folder (#881) 2023-02-09 12:11:36 +07:00
ledgerwatch
1a14cfd7e7
support for eth/68 in transaction pool (#877)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
Co-authored-by: Alex Sharp <alexsharp@surfer-172-29-1-65-hotspot.internet-for-guests.com>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-02-01 21:50:37 +00:00
Alex Sharov
c76b46a8ec
grpc minor version up (#861) 2023-01-27 20:20:18 +07:00
Andrew Ashikhmin
31b020d9c7
Remove PassivePeers (#857)
See https://github.com/ledgerwatch/erigon/pull/6710
2023-01-26 14:07:17 +01:00
Alex Sharov
d31bb96c59
up interfaces version (#852) 2023-01-26 09:42:31 +07:00
Alex Sharov
f62649c307
e3: getLogs on iterators (#851) 2023-01-25 16:29:23 +07:00
Alex Sharov
2c764ab8a7
grpc version up (#843) 2023-01-21 10:58:13 +07:00
ledgerwatch
ac237028d0
Rollback MDBX upgrade (#842)
There is some circumstantial evidence that there are some regressions in
this version of MDBX, I would like to rollback to either remove these
regressions or at least eliminate one of the possible causes

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-20 20:11:58 +00:00
Andrew Ashikhmin
c49d8b8262
Unify Engine API V1 & V2 methods (#841)
Pick up https://github.com/ledgerwatch/interfaces/pull/153
2023-01-20 18:16:32 +01:00
Alex Sharov
a705195fa0
e3: reverse/limited iterators, stream tooling (#840) 2023-01-20 18:08:22 +07:00
Andrew Ashikhmin
fc3dd4fd27
Withdrawal amount in GWei (#832)
Pick up https://github.com/ledgerwatch/interfaces/pull/148
2023-01-17 10:58:43 +01:00
Alex Sharov
aaafab8fc0
e3: storageRangeAt (#833) 2023-01-17 14:16:33 +07:00
Alex Sharov
16f4e2609b
e3: invalid txnum table (#828) 2023-01-12 09:31:29 +07:00
Alex Sharov
d2d03d140b
mdbx: v0.12.3 (#824) 2023-01-10 09:15:04 +07:00
Alex Sharov
db2a25b1ae
kv_temporal: 2nd key for domain (#825) 2023-01-09 15:16:05 +07:00
Alex Sharov
d2f5682ee8
kv_temporal: DomainGet (#822) 2023-01-06 14:27:50 +07:00
hexoscott
3c7c00677d
use set in mining yield (#819)
based on the suggestion to use a set rather than a slice for tracking
yielded transactions
2023-01-02 12:24:55 +00:00
Alex Sharov
5b7297fbe2
make clang happy (#817) 2023-01-01 11:43:12 +07:00
Alex Sharov
dcfbce2f57
up log version (#814) 2022-12-30 20:31:19 +07:00
Alex Sharov
745aacef74
coherent state cache: change btree type (#813) 2022-12-30 19:47:21 +07:00
Alex Sharov
f6d2125cc1
torrent lib version up (#805) 2022-12-27 12:53:44 +07:00
Alex Sharov
9a6ae5bf5a
kv: tx.Prefix method (#804) 2022-12-26 17:58:17 +07:00
Alex Sharov
1371990bed
e3: BuildMissedIndices errgroup (#802) 2022-12-24 17:30:21 +07:00
Alex Sharov
3170bf0a57
kv_remote: server to support thread-safe multi-streams per 1 tx (#798) 2022-12-24 13:11:09 +07:00
Alex Sharov
48bd0311d5
kv_remote: c.Count() (#799) 2022-12-22 12:44:06 +07:00
Andrew Ashikhmin
125788cbac
Extend fork ID to timestamp-based forks (#783)
Prerequisite for https://github.com/ledgerwatch/erigon/pull/6324
2022-12-16 11:42:09 +01:00
ledgerwatch
d70b55bc1a
Add PeerUseless function to instruct sentry that peer should not be used for a while (#776)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-12-11 22:20:33 +00:00
ledgerwatch
874c497dda
Add passive_peers parameter to the sentry to better take advantage of non-POS block gossip (#775)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2022-12-11 14:53:19 +00:00
Alex Sharov
0c5a850177
mdbx bindings: remove txn.RawRead field (#769) 2022-12-07 13:08:51 +07:00
Giulio rebuffo
c5f3972276
added getStatus (#762) 2022-12-05 03:55:18 +01:00
Alex Sharov
0613545530
mdbx: reproducibility of benchmarks (#757) 2022-12-02 18:42:35 +07:00
Andrew Ashikhmin
f32d6541e3
Add withdrawal operations to Engine API (#734)
See https://github.com/ethereum/execution-apis/pull/195

Prerequisite: https://github.com/ledgerwatch/interfaces/pull/134
2022-12-01 08:32:55 +01:00
Giulio rebuffo
fd11ffca3d
Added execution .proto (#749) 2022-11-30 11:20:21 +01:00
Alex Sharov
c793890fdd
grpc version up (#750) 2022-11-30 08:53:22 +07:00
Giulio rebuffo
2d86bff102
Sentinel interfaces (#748) 2022-11-29 00:01:03 +01:00
Alex Sharov
661ef494cf
mdbx: remove deprecated cmp_suffix32 feature (#744) 2022-11-24 09:10:09 +07:00
Alex Sharov
0eb4f8388a
Downloader extract, step2 (#739) 2022-11-20 10:41:20 +07:00
Alex Sharov
fb0238b6e6
up some deps (#738) 2022-11-16 14:22:28 +03:00
Andrew Ashikhmin
b810bb6ee0
Update interfaces (#733)
Pick up https://github.com/ledgerwatch/interfaces/pull/131
2022-11-11 16:36:22 +01:00
Max Revitt
ad300d8d66
Send Message - Peer Count (#726)
Adds peer count to SendMessageByMinBlock to allow sending requests to
multiple peers.

Also takes in change to update SnapshotsReply to use only Files slice of
string.
2022-11-03 15:14:11 +00:00
Alex Sharov
45647a5e42
revert_o2 changes (#706) 2022-10-26 15:18:21 +07:00
Alex Sharov
b671d1a645
revert last mdbx change - because some suspicious bug-report (#705)
for https://github.com/ledgerwatch/erigon/issues/5863
2022-10-26 14:04:28 +07:00
Alex Sharov
bfdf6d80c0
up some deps (#702) 2022-10-25 09:27:40 +07:00
Alex Sharov
231fb52d21
E3: par logs (#699) 2022-10-23 15:30:27 +07:00
Alex Sharov
2466e4e4a7
up grpc and log deps (#688) 2022-10-19 09:31:10 +07:00
Alex Sharov
0eab2a3dd1
e3: prevent files ranges overlap (kill -9 during merge handle) (#674) 2022-10-12 10:18:51 +07:00
Alex Sharov
b683ed435c
Compress params change (#651)
Main Target: reduce RAM usage of huffman tables. If possible - improve
decompression speed. Compression speed not so important.

Experiments on 74Gb uncompressed file (bsc
012500-013000-transactions.seg)
Ram - needed just to open compressed file (Huff tables, etc...)
dec_speed - loop with `word, _ = g.Next(word[:0])`
skip_speed - loop with `g.Skip()` 
```
| DictSize | Ram  | file_size | dec_speed | skip_speed |
| -------- | ---- | --------- | --------- | ---------- |
| 1M       | 70Mb | 35871Mb   | 4m06s     | 1m58s      |
| 512K     | 42Mb | 36496Mb   | 3m49s     | 1m51s      |
| 256K     | 21Mb | 37100Mb   | 3m44s     | 1m48s      |
| 128K     | 11Mb | 37782Mb   | 3m25s     | 1m44s      |
| 64K      | 7Mb  | 38597Mb   | 3m16s     | 1m34s      |
| 32K      | 5Mb  | 39626Mb   | 3m0s      | 1m29s      |
```
 
Also about small sampling: skip superstrings if superstringNumber % 4 !=
0 does reduce compression ratio by 1% - checked on big BSC file and
small (1gb) goerli file.

so, I feel it's not so bad idea to use:
maxDictPatterns=64k
samplingFactor=4

Tradeoffs: sacrify 5% compression ratio to 4x compression speedup (i
think even more), 30% decompression speedup, 10x RAM reduction

Release: I will not change existing snapshots - now will focus on
releasing new block snapshots and releasing new history snapshots
(Erigon3). If have time will re-compress existing snapshots later.
2022-10-05 17:54:48 +07:00
Artem Tsebrovskiy
4f5232504f
E3 agg commitment (#647)
* added commitment to aggregator

* added commitment evaluation by updates, fixed mainnet roothash mismatch

* added ability to change starting state of hph

* replayable erigon23 with commitment

* possible fix for eliasfano index read after close

* fixed db pruning and restart

* Initial fixes

* Debug

* clear downHashedLen for branch nodes

* Fix key length, cleanup

* Cleanup

* Cleanup

* picked aggregator updates

* fixed empty cell hash for ProcessUpdate evaluation

* hashBuffer moved from Cell to HexPatriciaHashed

* fixed codeHash incorrect renewal

* lint

* removed valuemergefn from history

* fixed lint

* fixed test

* rewritten fuzz test on hph

* fix for Win tests - do not remove tmp dir after test

* win

* fixup after merge

* close aggregator after test

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-09-26 15:59:24 +01:00
Alex Sharov
dac8c207fc
clean deps (#649) 2022-09-22 14:08:56 +07:00
Alex Sharov
f05cd214bd
aggregator22: read dir without idx (#638) 2022-09-18 17:38:43 +07:00