Commit Graph

14253 Commits

Author SHA1 Message Date
Alex Sharov
e9ae6d688f
Propagate new txs to P2P (#2249) 2021-06-29 14:40:23 +07:00
Alex Sharov
96ecce60e4
ChainID alias for ChainId (#2248) 2021-06-28 18:36:07 +07:00
Andrea Lanfranchi
bc16c0127f
Update README.md 2021-06-28 12:55:14 +02:00
Alex Sharov
f30c3b8951
Rpcdaemon help add namespaces (#2244)
* add namespaces list to rpcdaemon help

* add namespaces list to rpcdaemon help

* add namespaces list to rpcdaemon help
2021-06-27 22:14:14 +01:00
Zhengyan Gao
31cd8afe98
update tx block base fee, tips,fee cap json fields. (eip1559) (#2237)
* update tx block base fee, tips,fee cap json fields. (eip1559)

* gofmt core/types/block.go
2021-06-27 22:14:01 +01:00
Alex Sharov
ef3e5d3107
add 0x prefix for RPC accountRange (#2243) 2021-06-27 15:19:34 +01:00
Alex Sharov
cba7861164
Send raw tx test (#2234) 2021-06-27 13:41:21 +07:00
Alex Sharov
6b21eab364
pull submodules on make db-tools (#2241) 2021-06-27 09:53:49 +07:00
ledgerwatch
7baf3ec484
Move secp256k1 into a separate go module, hook up erigon-lib (#2239)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-06-26 15:03:05 +01:00
Alex Sharov
0edac73451
RPC: trace_replayTransaction and trace_replayBlockTransactions methods (stateDiff only) (#2238)
* trace_replay

* trace_replay

* trace_replay

* trace_replay

* trace_replay
2021-06-26 13:27:29 +01:00
Alex Sharov
605d7a8d59
Sokol v0 (#2228)
* handle chain flag in integration

* handle chain flag in integration

* handle chain flag in integration

* save

* save

* merge devel

* save

* noopWriter - one is enough

* chain spec parser

* chain spec parser

* embed

* embed

* embed

* embed

* embed

* embed

* embed

* clean

* clean

* correct alloc after reset state

* correct alloc after reset state

* correct alloc after reset state

* integration reset state now does re-apply genesis and chainConfig

* eips summary

* eips summary

* eips summary
2021-06-25 19:13:40 +01:00
Alex Sharov
d8608ac22e
simplify eth_callBundle (#2233)
* simplify eth_callBundle

* simplify eth_callBundle
2021-06-25 17:25:12 +01:00
Roman Koblov
18fa156d92
Make default gas for eth_call to be maximum gas capacity instead of 0 (#2232)
* Make default gas for eth_Call to be maximum gas capacity instead of 0

* Fix nil pointer dereference
2021-06-24 15:48:54 +01:00
Igor Mandrigin
a0694dd3fb
Merge pull request #2230 from ledgerwatch/AlexeyAkhunov-patch-1
Update skip_analysis.go
2021-06-24 13:00:27 +02:00
Igor Mandrigin
b7dea3492b
Merge pull request #2229 from ledgerwatch/add-hashes
Update preverified hashes for mainnet and ropsten
2021-06-24 13:00:12 +02:00
Alexey Sharp
717cb4000b Add preverified hashes for Ropsten 2021-06-24 11:12:52 +01:00
ledgerwatch
3ea6e1779a
Update skip_analysis.go 2021-06-24 09:51:34 +01:00
Alexey Sharp
dec0ab2adf Update preverified hashes for mainnet 2021-06-24 08:57:42 +01:00
ledgerwatch
adf4766191
Scan transaction to select test cases (#2225)
* Scan txs

* Find examples with access lists

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-06-23 23:34:17 +01:00
ledgerwatch
876dde506f
Fix range for eth_getLogs (#2227)
* Fix range for eth_getLogs

* Use Or and measure time

* more measurement

* more measurement

* Not compute tx hashes

* Not compute tx hashes

* Not compute tx hashes

* filter logs before derive fields

* Fix filtering by block number

* fix

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-06-23 23:33:45 +01:00
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