Alex Sharov
1f4f850b89
pass context around hased state stage ( #4537 )
...
* save
* save
* save
2022-06-25 20:34:42 +06:00
Andrew Ashikhmin
9b8888d797
Delete bad blocks on unwind ( #4529 )
...
* Delete bad headers
* Delete bad bodies
2022-06-24 15:52:04 +02:00
Enrique Jose Avila Asapche
389af4fc06
check if block is nil ( #4528 )
...
* check if block is nil
* added to rpcdaemon22
2022-06-24 19:48:40 +06:00
primal_concrete_sledge
5e2f6bb2db
Fix/new eth filters ( #4504 )
...
* Add fixes to eth_newPendingTxFilter and others
* Fix tests
* Add test
* Add goroutines return on closed chans
2022-06-24 09:11:38 +01:00
Chase Wright
1c4584b438
Include admin methods in README ( #4519 )
2022-06-23 07:13:32 +06:00
Alex Sharov
6612cf42d6
"torrent_hashes --verify" to detect "snapshots/tmp" dir ( #4501 )
2022-06-20 14:31:57 +06:00
ledgerwatch
79830adefa
[erigon2.2] collecting read indices ( #4499 )
...
* [erigon2.2] collecting read indices
* Fix compile issue
* Update to latest erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-20 09:00:45 +01:00
Giulio rebuffo
7a2b575e56
Added memory execution ( #4446 )
...
* add
* added in memory execution draft
* func to state
* added functionality
* backend function for memory execution
* simplified stage state
* haltable stage execution
* added mod sum
* hd
* sl
* LOL
* LOL again
* need trace
* more logs
* added cleanup on fcu
* fcu
* mod
* bunch of prtln
* feed
* ops
* headers notify
* revert
* slightly more commented
* head
* nil block retire
* comments
* prevent clean
* corrected occasional panics
* fixed lint
2022-06-19 20:45:36 +01:00
ledgerwatch
64067a2b77
Debugging Engine API ( #4488 )
...
* defer tx rollback
* Add http.trace flag
* Fixed http.trace flag
* Fix lint
* Fix lint
* Delete unused tests
* Fix lint
* Fix lint
* Fix lint
* Fix lint
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-19 13:40:28 +01:00
ledgerwatch
2e3a75f2b1
[erigon2.2] Add skip analysis to trace_filter ( #4487 )
...
* [erigon2.2] Add skip analysis to trace_filter
* Optimisation
* Update to latest erigon-lib
* Fix test
* Update to latest erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-19 07:01:00 +01:00
Alex Sharov
dc8a3fc565
fix docs( #4491 )
2022-06-19 09:33:28 +06:00
Uwe Voelker
dfae218a6f
fix typo ( #4486 )
2022-06-18 20:17:38 +01:00
ledgerwatch
e44d62db1a
Fix trace block ( #4480 )
...
* Fix trace block
* Fix compile
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-17 19:14:52 +01:00
ledgerwatch
93151f0ae6
[erigon2.2] Reduce allocations when replaying historical txs ( #4460 )
...
* [erigon2.2] Reduce allocations when replaying historical txs
* import new API, fix code
* Add hack decompress function
* update erigon-lib
* Fix hack
* Update to latest erigon-lib
* Fix reindexing
* Enable skip analysis for tracing calls too
* Enable for eth_getLogs
* Fix skip analysis
* Optimise
* Stop grpc server in the tests
* Print
* No panic on server stop
* Update to latest erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-17 13:40:49 +01:00
Andrew Ashikhmin
45b374a6d8
Enable --http by default ( #4470 )
2022-06-16 17:39:36 +01:00
ledgerwatch
b1572a15d5
No reorgs when fork choice head points to a canonical header ( #4466 )
...
* No reorgs when fork choice head points to a canonical header
* Return immediately
* Fix sentry
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-16 16:07:09 +01:00
ledgerwatch
df3eea6414
Not send sentry task to closed tasks channel ( #4467 )
...
* Not send sentry task to closed tasks channel
* Add comments
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-16 11:17:53 +01:00
Andrew Ashikhmin
bca563fd0f
Fix genesis storage collision state tests ( #4462 )
...
* Enable a couple of tests that work now
* Fix genesis storage collision state tests
* IncarnationMap in t8ntool MakePreState
2022-06-15 21:17:16 +01:00
ledgerwatch
2e4e7bd4de
[erigon2.2] Log stats tool ( #4453 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-15 07:10:37 +01:00
Enrique Jose Avila Asapche
352e5b3d2a
Clean up ( #4445 )
...
* changed to rpchelper
* got rid of getBlockNumber file
2022-06-14 14:29:49 +01:00
Enrique Jose Avila Asapche
a5cb53d690
safe and finalized blocks from eth_getBlockByNumber ( #4436 )
...
* added getFinalzed and getSafe block num
* added rpc finalized and safe block num
* getting nums
* returning nil
* returning nil
* added to helper.go
* removed repeated code
* added functions into rpchelper
* returning err
* simplified
* using previous latest getter
* getting pending block with filter/
* Fix plain state block number
* Fix test
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-14 11:07:46 +03:00
laughship
f376d0a7a0
Remove debug output ( #4442 )
2022-06-14 05:31:42 +01:00
ledgerwatch
e47dd15e68
[erigon2.2] Prototype of eth_getLogs ( #4437 )
...
* Initial work
* Fix compile errors
* Update
* Debug
* Cleanup
* Temp changes
* Temp
* Remove temp
* Remove print
* Upgate to erigon-lib main
* go mod tidy
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-13 21:25:17 +01:00
Andrew Ashikhmin
eb497372ae
Interruptible PoS block building ( #4438 )
...
* Fix a typo
* BlockBuilder dummy
* BlockProposerParametersPOS -> BlockBuilderParameters
* Pass tx to MiningStep
* BlockBuilderFunc
* Interrupt in MiningExec Stage
* Draft implementation of BlockBuilder
* Fail back to empty header
* Add a comment
* cosmetic change
* Cosmetic change again
* It's not safe to pass transactions between goroutines
2022-06-13 15:43:09 +02:00
ledgerwatch
fd8adddce8
trace_filter implementation based on erigon 2 update 2 data ( #4431 )
...
* trace_filter implementation based on erigon 2 update 2 data
* Fix test compile, extract txNums
* Update to erigon-lib, add generic heap
* Fix getHeaderHash for RPC methods
* Missing files
* Skip tests
* Add reward traces
* Filter trace lint
* Reinstate filtering
* Print
* Print
* Fix
* Print
* Print txNums
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Remove prints
* Fix nil dereference
* Inclusive toBlock bound
* Print
* Print
* Hack
* remove some deps
* Fix lint
* Update erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-12 12:44:01 +01:00
iFA
41c0a47485
Add REVERT result to trace ( #4434 )
...
* Add REVERT result to trace
* topTrace error should be changed too
2022-06-11 12:05:26 +01:00
ledgerwatch
1cc5b92dd8
Another fix for stuck header download ( #4433 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-11 08:13:40 +01:00
ledgerwatch
8e3ac8a21c
Erigon2 upgrade 2 prototype ( #4341 )
...
* Erigon2 upgrade 2 prototype
* Latest erigon-lib
* Fixes
* Fix print
* Fix maxSpan
* Reduce maxSpan
* Remove duplicate joins
* TxNum
* Fix resuming
* first draft of history22
* Introduce historical reads
* Update to erigon-lib
* Update erigon-lib
* Update erigon-lib
* Fixes and tracing for checkChangeSets
* More trace
* Print account details
* fix getHeader
* Update to erigon-lib main
* Add tracer indices and event log indices
* Fix calltracer
* Fix calltracer
* Duplicate rpcdaemon into rpcdaemon22
* Fix tests
* Fix tests
* Fix tests
* Update to latest erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-10 16:18:43 +01:00
ledgerwatch
43f5f0ae27
Close peerInfo tasks channel ( #4429 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-10 11:59:31 +01:00
Krishna Upadhyaya
1e3c90ba80
Bor devnet option ( #4428 )
...
* bor mining testing
* Implemented bor-devent network
* Minor fixes
* use signer as validator
* remove unused spaces
* fix typo
2022-06-10 15:32:04 +07:00
Andrew Ashikhmin
36eacd23c0
eth_blockNumber should be equal to latest in eth_getBlockByNumber ( #4421 )
2022-06-09 15:53:37 +02:00
Enrique Jose Avila Asapche
ace482bd00
revert #4411 ( #4418 )
2022-06-09 12:26:30 +02:00
Enrique Jose Avila Asapche
77e2934647
if no latest valid hash default to empty hash ( #4411 )
2022-06-09 09:47:33 +07:00
Alex Sharov
935975bebd
methods to configure db ( #4412 )
...
* save
* save
* save
2022-06-09 09:45:30 +07:00
Andrew Ashikhmin
644d25d25d
MergeForkBlock -> MergeNetsplitBlock ( #4407 )
2022-06-08 12:41:50 +02:00
Willian Mitsuda
cbe25665db
Fix --help for --http; embedded rpcdaemon is off by default ( #4402 )
2022-06-08 09:30:24 +07:00
Alex Sharov
feabb96e69
Snapshots: allow delete .seg files #4403
2022-06-08 09:29:59 +07:00
Enrique Jose Avila Asapche
a1f4472f10
added back PR 3806 ( #4382 )
2022-06-07 10:51:28 +01:00
Alex Sharov
454c7aa87f
torrent: allow del db #4394
2022-06-07 13:12:27 +07:00
Alex Sharov
d655854b53
Snapshots: optimisticaly open at app startup ( #4393 )
...
* save
* save
2022-06-07 12:33:33 +07:00
Alex Sharov
e146b66e35
more usage of dirs object #4390
2022-06-07 11:54:04 +07:00
Alex Sharov
7c79d6d453
Cfg dirs ( #4388 )
2022-06-07 11:00:37 +07:00
Alex Sharov
a53642b4bf
datadir.Dirs configuration object to group dir config ( #4387 )
2022-06-07 10:24:50 +07:00
Alex Sharov
f6c9d2beea
downloader torrent_hashes --verify: 1 error line per file #4386
2022-06-07 09:36:42 +07:00
ledgerwatch
b2f9b25300
For for overwritten anchor ( #4379 )
...
* For for overwritten anchor
* Switch to time types, log retry time in diagnostics
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-06 18:23:41 +01:00
Alex Sharov
109e8ab814
StageSenders: wrong canonical array size at initial sync with snapshots ( #4378 )
...
* save
* save
* save
2022-06-06 18:08:33 +01:00
ledgerwatch
4a5f97527b
Better diagnostic for stuck headers ( #4372 )
...
* More stuck headers diagnostics
* Temp print
* Remove temp print
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-05 15:00:13 +01:00
Enrique Jose Avila Asapche
9f1cc40c89
changed syncmode flag to snapshots flag ( #4353 )
...
* changed syncmode flag to snapshots flag
* using boolT
* Remove syncmode concept
* Add mumbai
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-05 07:33:55 +01:00
ledgerwatch
ca2b0f19c1
Fix checkChangeSets and RPC daemon commands accessing history ( #4365 )
...
* Simplifications
* Print
* Fix
* Clean up
* Fixed RPC daemon command accessing history
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-04 23:06:30 +01:00
ledgerwatch
ee4ffd190d
Update skip analysis ( #4364 )
...
* Skip analysis advance, fix for change sets
* Optimisations for integration
* Print
* Print
* Fix
* Fix
* Fix
* Remove prints
* No panic
* More checks
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-04 16:54:22 +01:00