ledgerwatch
6292056503
Remove root from eth_getTransactionReceipt ( #2211 )
...
* Remove root from eth_getTransactionReceipt
* Simplifaction of status
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-06-23 15:52:31 +01:00
ledgerwatch
5ad449ef22
Migration to fix receipts (broken due to change of CBOR codec) ( #2221 )
...
* Scan receipts
* Not check tx type before Berlin
* Reverse
* scan receipt code in the migration
* Turn migration on
* Apply migration
* Fix
* Print last
* Remove last
* Not remove last
* Not updata in migration
* no cursors in migration
* Handle empty blocks
* Handle empty blocks
* Use the same code in hack
* Print
* Print
* Save
* Fix
* Fix lint
* Fix lint
* Fix for empty DB
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-06-23 15:05:16 +01:00
Andrea Lanfranchi
62476f0e07
Change MDBX tools build location so it does not dirty submodule ( #2223 )
...
* Change MDBX build location so it does not dirty submodule
* Update README.md
* Update README.md
2021-06-23 13:25:06 +02:00
Evgeny Danilenko
80c2fc6a0c
Remove stacked defers ( #2149 )
...
* rewrite everything
* remove stacked defers
* debug
* fix panic on nil tx
* use db.View
* panic
* block based progress
* errors
* - assume that batches are big enough to not worry about saving carefully logTime
- use only 1 digit as progress indicator
- log only if processing > 16 blocks
* - update metric when printing logs
* remove excluded
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2021-06-23 10:30:53 +03:00
Alex Sharov
24a76a002d
correct iterate over items when goroutine inside loop ( #2219 )
2021-06-22 14:33:22 +01:00
Alex Sharov
59d05dc5fe
hide file exists err ( #2218 )
2021-06-22 11:09:45 +01:00
Alex Sharov
2b59b45216
Do log tables size, db metrics - avoid concurrency, check stale readers hourly ( #2216 )
...
* add table size logs and metrics
* log stale readers
* - don't collect db metrics in background
- do check stale readers once an hour
* execution to update metrics when print logs
* hide file exists err
* hide file exists err
2021-06-22 11:08:47 +01:00
ledgerwatch
ab685e90d9
Improvement to the trimTxs ( #2215 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-06-22 08:35:34 +01:00
ledgerwatch
a79ed2fe0b
Utilities to fix DB corruption ( #2214 )
...
* Detect broken ancestry
* Print last canonical headers
* Add backExec
* Cleanup
* Add unwind util
* Add trimTxs utility
* Actually delete tx records
* Avoid infinite loop
* Change strategy
* Close cursor after commmit
* Fix RwBegin issue
* 10m records per transaction
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-06-21 21:52:51 +01:00
Alex Sharov
7d1e17712f
don't create block context twice ( #2213 )
2021-06-21 19:54:41 +01:00
Alex Sharov
99c770c51b
tx.AsMessage was called twice ( #2209 )
...
* tx.AsMessage was called twice
* noopWriter - one is enough
2021-06-21 06:56:56 +01:00
ledgerwatch
04943eaa52
Fix for state corruption without performance regression ( #2208 )
...
* extractHeaders
* Print diff
* Fix for state corruption without performance regression
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-06-21 06:56:45 +01:00
Artem Vorotnikov
72e9a34365
Remove unused tables, soft rename, take 3 ( #2207 )
...
* Remove unused tables, soft rename, take 3
* Bump db schema version
* nil check in migration
2021-06-20 20:46:57 +01:00
Artem Vorotnikov
504c31e97a
Revert "Remove unused tables, soft rename" ( #2205 )
2021-06-20 15:08:48 +01:00
Artem Vorotnikov
989a8305f2
Print Mgas/second during execution ( #2204 )
2021-06-20 09:36:42 +03:00
Artem Vorotnikov
d8a009837b
Nuke preimage remnants ( #2203 )
2021-06-20 13:00:22 +07:00
Alex Sharov
a535e8f30c
switch to mdbx-go module, and db-tools to libmdbx submodule ( #2199 )
...
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
* move mdbx to submodule
2021-06-19 21:30:12 +01:00
Alex Sharov
4736bac190
save ( #2197 )
2021-06-19 21:29:02 +01:00
Artem Vorotnikov
a9baf37ea1
Remove unused tables, soft rename ( #2201 )
2021-06-19 21:36:21 +03:00
Alex Sharov
353af6c664
up grafana ( #2200 )
2021-06-19 19:38:02 +07:00
Alex Sharov
902f6c097f
fix origin for localhost ( #2198 )
2021-06-19 11:38:45 +01:00
Alex Sharov
4533b59724
flag to stop before stage ( #2194 )
2021-06-19 16:01:33 +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
Alex Sharov
de24b427bf
save ( #2196 )
2021-06-19 13:32:35 +07:00
ledgerwatch
54dc77af40
Add files via upload
2021-06-18 15:38:00 +01:00
mempirate
ca926ce94d
net_peerCount for remote sentries ( #2192 )
...
* net_peerCount for remote sentries
* cleanup
* Simplify NetPeerCount using SentryClient
* Refactor id -> count
2021-06-18 14:34:15 +01:00
ledgerwatch
535ce8fb9c
Try to solve sentry hanging problem + p2p impovement from geth ( #2191 )
...
* Try to solve sentry hanging problem + p2p impovement from geth
* Fix import
* Finer stream lock
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-06-18 12:47:46 +01:00
Alex Sharov
e9f510c2b7
erigon as lib ( #2186 )
2021-06-18 10:35:11 +07:00
mempirate
e51b09da0d
Implements net_peerCount RPC call for internal sentries ( #2172 )
...
* Implement API and protobuf
* Squashed 'interfaces/' content from commit cd3eca28e
git-subtree-dir: interfaces
git-subtree-split: cd3eca28e50367af9de52fca863b1d7528bff774
* Implement net_peerCount RPC call
* Squashed 'interfaces/' content from commit cd3eca28e
git-subtree-dir: interfaces
git-subtree-split: cd3eca28e50367af9de52fca863b1d7528bff774
* Fixing merge conflicts
* Remove p2p.Server from Ethereum backend
* Fix peerCount calculation for internal sentries
* Bump eth backend API version
* Update rpcdaemon README
* Document version change
2021-06-17 22:55:20 +01:00
Igor Mandrigin
dd24eb8102
begin 2021.06.05 release cycle
2021-06-17 19:24:18 +02:00
ledgerwatch
249e4112e4
Update skip_analysis.go ( #2189 )
2021-06-17 14:51:38 +01:00
ledgerwatch
a36d5dc2c3
Revert "Remove unused tables, soft rename ( #2180 )" ( #2187 )
...
This reverts commit 1390b3c740
.
2021-06-17 09:35:59 +01:00
ledgerwatch
2f684bbb16
Revert "info" ( #2188 )
...
This reverts commit 470a9918b2
.
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-06-17 09:35:39 +01:00
alex.sharov
8da40b43ac
Revert "info"
...
This reverts commit 470a9918b2
.
2021-06-17 15:08:19 +07:00
alex.sharov
470a9918b2
info
2021-06-17 13:21:24 +07:00
ledgerwatch
64254f8d1e
Experiment with tests ( #2182 )
...
* Experiment with tests
* Increase test concurrency to 8
* Lower concurrency
* Concurrency back to 2
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-06-16 20:50:40 +01:00
ledgerwatch
9d03cd4bf4
trace compatibility with OE (sometimes bug for bug) ( #2174 )
...
* Initial investigations
* Add compatibility option, cleanup
* More cleanup
* Better error handling for streaming RPC requests
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-06-16 18:24:56 +01:00
ledgerwatch
1702ef866d
Add files via upload
2021-06-16 17:26:44 +01:00
ledgerwatch
8a166204b4
Fix for peer not found messages ( #2181 )
...
* Fix for peer not found messages
* Print proto on disconnects too
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-06-16 17:18:19 +01:00
Artem Vorotnikov
1390b3c740
Remove unused tables, soft rename ( #2180 )
2021-06-16 16:44:23 +01:00
Artem Vorotnikov
4fa034a306
Fix history test ( #2179 )
2021-06-16 16:20:58 +03:00
Alex Sharov
f63d12405a
Sender stage hangs ( #2177 )
...
* - add context for goroutines shutdown
- use 1 select for all channels to avoid deadlock
* - add context for goroutines shutdown
- use 1 select for all channels to avoid deadlock
- integration: senders to use right chainconfig
2021-06-16 14:04:44 +01:00
BitBaseBit
3a95e1a1c2
add london testnet blocks ( #2178 )
2021-06-16 12:06:55 +01:00
Artem Vorotnikov
af836a6200
Nuke LMDB ( #2167 )
2021-06-16 13:57:58 +03:00
Alex Sharov
372ab9060a
add chain support to ( #2176 )
2021-06-16 11:31:25 +07:00
Alex Sharov
dcf850dd75
fix fieldalignment linter warnings ( #2171 )
2021-06-16 11:00:35 +07:00
Alex Sharov
d7f7445a5e
fix concurrent badHeaders map writes crush ( #2175 )
...
* fix concurrent map writes crush
* fix concurrent map writes crush
2021-06-16 10:58:45 +07:00
BitBaseBit
159777db29
Changed gas price oracle to use effective tip and ignoreUnder parameter for 1559. ( #2173 )
...
* added temp file in crashreports because git is stupid and wont add empty folders
* implemented ignoreUnder + EffectiveGas for legacy and dynamic txs
* implemented changes to gas price oracle for 1559
* switched Cmp to Lt/Gt
2021-06-15 21:45:34 +01:00
Artem Vorotnikov
9a8c0f9669
Always enable eth65 ( #2166 )
...
* Always enable eth65
* Add ListenAddr65 to defaults
2021-06-15 17:57:26 +01:00
Alex Sharov
b160e30652
Send GetBlockHeaders immediately if TD of connected peer >= our TD ( #2169 )
...
* empty engine
* start sync from peer right after handshake if it's TD is higher
* fixCanonicalChain to print logs
* clean
* >
2021-06-15 13:43:55 +01:00