Commit Graph

1068 Commits

Author SHA1 Message Date
Alex Sharov
8d5cf0170a
agg print stats at startup #662 2022-10-01 09:25:59 +07:00
Alex Sharov
2ef023e5f0
ef revert to unsafe.pointer use #661 2022-09-30 13:59:04 +07:00
Alex Sharov
784b6cc904
erigon3: build .vi after downloading (#659) 2022-09-29 12:14:45 +07:00
Alex Sharov
ec49625cd9
erigon3: allow set workers amount for history compress and merge #657 2022-09-28 14:31:28 +07:00
Alex Sharov
6c929b7771
erigon3: simplify history reader (fixing edge case of reading history from files) (#658) 2022-09-28 13:48:13 +07:00
awskii
e1860348b2
reverted minHeap at elias-fano merge (#655)
* reverted minHeap at elias-fano merge

* skip ef merge test for now
2022-09-27 11:54:29 +01: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
7790688724
erigon3: build .efi after download #654 2022-09-26 15:26:58 +07:00
Alex Sharov
417cea6485
erigon22: non-pointer btree (#653) 2022-09-26 09:42:44 +07:00
Enrique Jose Avila Asapche
183d2718ca
allow mem-mutation to create buckets (#650) 2022-09-25 16:35:30 +07:00
Enrique Jose Avila Asapche
eaad0d0a4a
changed baseFeeCap from uint64 -> uint256 (#646)
* changed baseFeeCap from uint64 -> uint256

* fixed test

* ops

* no overflow

* tmp var

* difference

* ops difference

* adding proper rlp with feecap
2022-09-23 12:47:01 +02:00
giuliorebuffo
f38bce356d added verkle tree buckets 2022-09-22 18:05:02 +02:00
Alex Sharov
dac8c207fc
clean deps (#649) 2022-09-22 14:08:56 +07:00
Alex Sharov
ad0e8d47e9
remove sequential compressor #648 2022-09-22 13:59:22 +07:00
Alex Sharov
cd20a6862f
tests: one-liner to create tx (#644) 2022-09-20 13:18:30 +07:00
Alex Sharov
f05cd214bd
aggregator22: read dir without idx (#638) 2022-09-18 17:38:43 +07:00
Alex Sharov
153bec3177
remove libmdbx git-submodule, make db-tools work on vendored to mdbx-go .c code (after "make dist") #5392 #643 2022-09-18 17:37:17 +07:00
ledgerwatch
10a15edebc
[erigon22] not to overwrite files after state reconstitution (#642)
* Print

* Skip finishTx

* Correct skip

* Fix

* Fix

* Remove print

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-09-16 08:34:11 +01:00
hexoscott
547ac03eeb
ensure kv semaphore has at least 1 count (#641) 2022-09-15 22:14:10 +02:00
Andrew Ashikhmin
ef693175fe
Bump map size of in-memory MDBX (#640) 2022-09-15 13:18:08 +02:00
hexoscott
6f6b03d7f0
semaphore for remote kv and reduce semaphore max count (#639) 2022-09-15 08:49:12 +07:00
Alex Sharov
aad257bc0c
erigon22: skip tmp files by regexp (#637) 2022-09-13 16:01:41 +07:00
Alex Sharov
1b5dd96e17
remove file by extension (#636) 2022-09-12 12:37:53 +07:00
Alex Sharov
bf836996ed
uint 256 lib up (#635) 2022-09-12 10:53:59 +07:00
Alex Sharov
34bd7cfc4d
dir remove ext (#634) 2022-09-12 10:51:50 +07:00
Giulio rebuffo
2017964398
added temporary database (#633)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-10 23:56:59 +02:00
Andrea Lanfranchi
09680a841f
MDBX does support empty keys (#631)
* MDBX does support empty keys

* Lint errors

* Amend test

Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2022-09-09 16:25:00 +02:00
Alex Sharov
4858acfb2e
fix lint (#632) 2022-09-09 21:07:39 +07:00
Alex Sharov
4fea8e9ba2
erigon22: history iterator v3 #630 2022-09-08 14:01:32 +07:00
Alex Sharov
6db97dbe2d
enable some test (#629) 2022-09-08 11:19:32 +07:00
Alex Sharov
e6276aeea8
erigon22: history iterator v2 (#628) 2022-09-08 11:09:54 +07:00
Alex Sharov
c22f737b87
Erigon22: use history iterator #627 2022-09-07 15:57:28 +07:00
Alex Sharov
f8060aa75d
erigon22: HistoryIterator1 v1 (#626) 2022-09-07 14:40:39 +07:00
Enrique Jose Avila Asapche
a1f691e032
returning an error if offset is wrong (#621)
* returning an error if offset is wrong

* added file broken

* index file being printed
2022-09-07 14:40:27 +07:00
Alex Sharov
841fe604f9
erigon22: fix infinity loop #624 2022-09-06 13:56:07 +07:00
Alex Sharov
775ace2e37
erigon22: historyReader22 and more tests #623 2022-09-06 13:54:58 +07:00
Andrew Ashikhmin
e572bef176
Remove TxParseContext.withBor (#622) 2022-09-04 13:15:02 +02:00
Andrew Ashikhmin
bae34e0149
Only legacy transactions can happen before EIP-2 (#620) 2022-09-02 13:48:50 +02:00
Andrew Ashikhmin
215695f939
Add a test with the bad txn on Görli (#619) 2022-09-02 10:37:02 +02:00
Enrique Jose Avila Asapche
7505532113
got rid of bor related things (#618) 2022-09-02 10:50:59 +07:00
ledgerwatch
d9648b4c69
Cleanup interfaces (#617)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-09-01 14:41:00 +01:00
Andrew Ashikhmin
987fb4a7e1
ParseTransaction: Validate v, r, s in signature (#616)
* Introduce TxParseContext.allowPreEip2s

* TxParsseConfig -> TxParseConfig

* Extract MustDecodeHex

* Validate v, r, s of txn signature

* Add comment
2022-09-01 15:26:42 +02:00
Giulio rebuffo
0883fdc23d
added check for same tx included more than once (#574)
* added check

* added check

* added check

* Update pool.go

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-31 14:41:51 +01:00
ledgerwatch
0263814f92
Cleanup interfaces (#615)
* Cleanup interfaces

* Add PendingBlock

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-08-31 14:41:33 +01:00
Håvard Anda Estensen
a9459aea68
Enable thelper linter (#610) 2022-08-31 10:09:44 +07:00
Alex Sharov
1508952df9
mdbx more metrics (#614) 2022-08-31 10:09:23 +07:00
Alex Sharov
22beae4579
mdbx more metrics (#613) 2022-08-31 10:04:53 +07:00
Enrique Jose Avila Asapche
393fcf6856
check with bor (#612)
* check with bor

* lol
2022-08-30 18:50:34 +07:00
Enrique Jose Avila Asapche
1a42afe5f2
Parse transaction for bor (#604)
* checking if it is a bor tx

* ops

* checking if sender is empty bytes

* no need for borSprint var

* fixing lint

* still returning p

* added isBor to slot

* added global var

* got rid of sender check

* ops

* ops two

* lint
2022-08-30 09:51:26 +07:00
Håvard Anda Estensen
f418be8e50
Enable unconvert linter (#609)
* Enable unconvert linter

* Print filename and line number when linting fails

* Use same golangci-lint version in makefile as in ci

* Remove unnecessary conversions

* Remove unnecessary conversions
2022-08-30 09:50:23 +07:00