Andrew Ashikhmin
714888b016
HashBuilder: fix top node shorter than 32 bytes ( #6456 )
...
Prior to withdrawals, it was extremely unlikely to have short (RLP < 32)
top trie nodes outside test scenarios.
2022-12-28 11:58:37 +01:00
Alex Sharov
fa6f6038e7
kv: tx.Prefix method ( #6441 )
2022-12-26 17:58:21 +07:00
Håvard Anda Estensen
1398703bc5
Use hex package to convert bytes to string ( #6205 )
2022-12-05 09:06:16 +07:00
Alex Sharov
4ffd50c716
hashers to use sync.pool ( #6200 )
...
for https://github.com/ledgerwatch/erigon/issues/6195
2022-12-04 17:23:44 +07:00
Giulio rebuffo
54d1895542
updated go-verkle ( #6126 )
2022-11-26 19:36:10 +01:00
Alex Sharov
68f3edf06a
devel fix ( #6089 )
2022-11-20 11:01:25 +07:00
Alex Sharov
92e6e56120
Fix test e3 ( #6087 )
2022-11-20 10:58:20 +07:00
Giulio rebuffo
99fbbb545b
Added complete verkle trie regeneration ( #5310 )
...
* verkle generation
* better UX
* q
* better verkle stuff
* for
* for o
* lint
* direct vtree
* addee verkle trees incremental promotion
* lint
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-10 20:00:03 +02:00
Andrew Ashikhmin
270fb4cde9
Fix IH when state contains addresses < 1st key in AccTrie ( #5296 )
...
* Test case that reproduces wrong trie root in Hive
* Do not hardcode roots
* Fix IH when state contains addresses smaller than the first key in AccTrie
2022-09-07 10:34:49 +02:00
Giulio rebuffo
435de928b7
Separation of Pedersen code, account and storage hashing ( #5267 )
...
* separation of pedersen hashing
* added multithreading to accounts
* more workers
* removed err
* ops
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-03 19:55:13 +02:00
Giulio rebuffo
faebec48c9
Added pedersen hash generator utility in cmd/verkle ( #5258 )
...
* added tree key functions for verkle tries
* added tree key functions for verkle tries
* added tree key functions for verkle tries
* Pedersen hash generator
* removed extra functions
* better comment
* ops
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-02 15:45:30 +02:00
Giulio rebuffo
361403f2ca
Added verkle tree key hash generating functions. ( #5249 )
...
* added tree key functions for verkle tries
* added tree key functions for verkle tries
* added tree key functions for verkle tries
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-01 02:15:40 +02:00
fynn.z
9c713d8168
Fixed mining system contract txn lost ( #5212 )
...
* fix mining exec error
* fix invalid memory
* remove logs
Co-authored-by: Jeff Rossiter <jeffrey.rossiter@me.com>
2022-08-30 09:47:47 +07:00
Alex Sharov
6495ec6d28
erigon22: working PlainState unwind ( #5051 )
2022-08-14 18:06:32 +07:00
Alex Sharov
52fd0d0e8b
Aggregator22.Unwind() ( #5039 )
...
* save
* save
2022-08-13 18:51:25 +07:00
Alex Sharov
351cd49c21
go1.19 gofmt ( #4988 )
2022-08-10 19:04:13 +07:00
Andrew Ashikhmin
8f86c5d615
Remove getNodeData experimental feature ( #4559 )
2022-06-29 18:23:00 +06:00
Alex Sharov
52d6f1d551
kv_mdbx: atomic closed flag #464 ( #4247 )
2022-05-24 12:24:20 +07:00
battlmonstr
2da927b74a
trie ( #4236 ): skip TestIHCursor until it is fixed ( #4237 )
2022-05-23 13:01:04 +02:00
Alex Sharov
64508a7d4e
Snap: call AddHeadersFromSnapshot only at initialCycle ( #4198 )
2022-05-19 10:38:53 +07:00
Alex Sharov
e1dec529d4
Generic sort of slices (no allocs, inlinable) ( #4161 )
...
* save
* save
* save
* save
* save
2022-05-16 08:24:12 +01:00
Alex Sharov
3e4fb5dd49
up linter version ( #4108 )
...
* save
* save
* save
2022-05-10 10:14:09 +07:00
ledgerwatch
17b2a9ba93
Bor fixes ( #3553 )
...
* Integration to work with bor
* Turn off validator set check
* disable verifySeal, add skeleton of postExec stage
* Pass around syscall
* Print
* Print more
* Default heimdall values for integration
* restore contract
* Print
* Print
* Print
* Print
* Print
* Print
* Print
* Print
* Fix nonce of system contract
* Remove prints
* Revert some more printing
* More fixes
* Print log
* Fix transfer log
* More printing
* More printing
* Print
* Print
* Print
* Print
* Print
* Print
* Print
* Fix validaor reward
* Remove printing
* Remove more prints
* Less printing
* Fetch validators from heimdall
* Remove syscall from Seal and CalcDifficulty
* Remove syscall from Prepare
* Print
* Remove DNS discovery
* Print apply snapshot
* Print
* Chunk up snapshot generation
* Chunk up snapshot generation
* Better logs when snapshotting
* Handle parents
* Prevent shadowing of snap
* Fix heimdall fetch
* Logging fixes
* Save generated snapshots
* Add header
* Less logging
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-24 00:03:10 +00:00
Giulio rebuffo
b49381821f
Fixed get-payload and Hanging ForkChoice ( #3575 )
...
* done
* removed sleep
* f
* errors.Is(err, io.EOF) instead of err == io.EOF
Co-authored-by: yperbasis <andrey.ashikhmin@gmail.com>
2022-02-22 14:47:23 +01:00
ledgerwatch
ea6dbd49e8
[erigon2] Running with commitment ( #3203 )
...
* [erigon2] Running with commitment
* [erigon2] Running with commitment
* [erigon2] Running with commitment
* go mod tidy
* [erigon2] Running with commitment
* More
* Debug
* fix
* Fix
* state root command
* More fixes
* Fix
* Progress to 164735
* Only trace when failing
* fix for firstInsert
* Over block 1.36m
* Update
* fix to deleteAccount
* Fixes for plainKeys
* Undo printing
* No changeset generation by default
* Print block number on interrupt, fix lint
* Fix lint
* Open history DB as read only
* Print error
* Open non read only
* Readonly again
* Fix lint
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-01-14 16:02:44 +00:00
TBC Dev
9e5ae33eb0
Use IsZero() instead of Sign() for uint256.int ( #2960 )
2021-11-14 22:18:47 +07:00
Andrea Lanfranchi
c913f35c2e
Inner errors ( #2774 )
2021-10-04 22:16:52 +07:00
ledgerwatch
15b4095718
Move ETL to erigon-lib ( #2667 )
...
* Move ETL to erigon-lib
* Update link in the readme
* go mod tidy
* Use common/chan.go from erigon-lib
* Clean up
* Fix lint
* Fix test
* Fix compilation
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-09-12 08:50:17 +01:00
alex.sharov
9f62fe702a
txpool.v2 built-in
2021-09-07 10:07:36 +07:00
alex.sharov
db4e5bf2fa
txpool.v2 built-in
2021-09-07 10:07:17 +07:00
Alex Sharov
6bd44eb26c
move kv to erigon-lib ( #2467 )
2021-07-29 18:53:13 +07:00
Alex Sharov
5069558752
Apache licensed logger ( #2460 )
2021-07-29 17:23:23 +07:00
Alex Sharov
838e5f9ef2
Move bucket constants into kv package, move kv interface to kv package ( #2455 )
2021-07-28 09:47:38 +07:00
Alex Sharov
a36a613e61
move migrations to kv interfaces ( #2430 )
2021-07-24 11:28:05 +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
Alex Sharov
a79b3cd6eb
unify stage params ( #2384 )
2021-07-17 09:09:56 +07:00
Alex Sharov
5f55b6b89c
Remove stage builder and use ID's in unwindOrder ( #2381 )
2021-07-16 20:17:40 +07:00
Alex Sharov
7c60cc0fee
step towards kv interface ( #2313 )
2021-07-08 09:56:09 +07:00
Alex Sharov
3d6d45a82f
remove subtrie loader and dcmp ( #2258 )
2021-06-30 10:31:36 +07:00
Alex Sharov
bc271f92ce
To break dependency to db implementation - move all db classes to "ethdb/kv" and leave in "ethdb" only interfaces ( #2195 )
2021-06-19 15:21:53 +07:00
ledgerwatch
73bb98f686
Move tests 6 ( #2107 )
...
* Move tests 6
* Compile fixes
* Fix lint
* Compile fixes
* Fix compile
* compile fixes
* Compile fix
* Fix consesus/clique
* Cleanup
* Add gas limit
* Print
* Prints
* More print
* Fix
* Reinstate TestGetBlockReceipts66
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-06-06 22:44:14 +01:00
Alex Sharov
1f13f73045
up version of uint256 lib ( #2082 )
...
* eip 1559_tx_constraints
* eip 1559_tx_constraints
* return error on uint256 overflow
* up uint256 version
* merge master
* fix master
Co-authored-by: ledgerwatch <akhounov@gmail.com>
2021-06-04 17:25:28 +01:00
Evgeny Danilenko
74847d77e6
Rename to Erigon ( #2018 )
...
* turbo-geth to erigon
* tg, turbo to erigon
2021-05-26 11:35:39 +01:00
Alex Sharov
545fe32f68
Mdbx - make it default db. Lazy buckets renaming. ( #1982 )
2021-05-22 10:03:02 +07:00
Alex Sharov
0be3044b7e
rename ( #1978 )
...
* rename
* rename "make grpc"
* rename "abi bindings templates"
* rename "abi bindings templates"
2021-05-20 19:25:53 +01:00
Alex Sharov
50934fa5d3
Move chain maiker to kv ( #1972 )
2021-05-20 18:49:33 +07:00
Alex Sharov
781a67a4ee
Auto-Close db in tests by using t.Cleanup ( #1956 )
2021-05-19 10:47:28 +07:00
Alex Sharov
cceaf75b16
use t.TempDir() ( #1955 )
2021-05-18 19:13:16 +07:00
Alex Sharov
e8255abdd0
deprecate tds and trie ( #1890 )
2021-05-06 15:48:30 +07:00
Artem Vorotnikov
c967655c1d
More cleanups ( #1765 )
2021-04-21 08:48:37 +07:00