Alex Sharov
e6c4f0bc2a
lock snapshot dir when flag set ( #3555 )
2022-02-21 09:32:30 +07:00
ledgerwatch
e784f2b809
[erigon2] ETL optimisations ( #3550 )
2022-02-21 09:31:06 +07:00
Enrique Jose Avila Asapche
d12560f1b5
Get block by time stamp ( #3514 )
...
* initial
* binary search through blocks
* snapshot
* returning highest block
* oldest block is now 0
* multiple test written for getBlockByTimeStamp
* retrieved picked block time stamp
* added into erigon_api
* returning pointer
* reverting c37b99b2d7ebc2250b103393378cc4a4f94a6c21
* deleted print
* proper rpc block response
* fixing test
* returning lowest block
* lint
* typo
* fixed test
* returning lowest-1
* skip while loop for times too big or small
* added to readme
* using sort.Search
2022-02-20 10:45:29 +00:00
Enrique Jose Avila Asapche
e348b3ea93
deleted kovan ( #3546 )
2022-02-19 08:15:44 +00:00
ledgerwatch
80d7734ea8
[erigon2] fix history creation (txNum confusion) ( #3547 )
...
* More tracing
* More tracing
* More tracing
* Keep correct txNum
* Keep correct txNum
* Update to tracing
* Off by one
* Print memory info
* Quicker startup
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-19 08:15:35 +00:00
bernard-wagner
58d2118c10
rpcdaemon: added debug_traceBlockByNumber and debug_traceBlockByHash ( #3548 )
2022-02-19 08:15:27 +00:00
Giulio rebuffo
5db869236a
Fix Reorg Indexing on Proof-of-Stake ( #3538 )
...
* little fix
* feed pos
2022-02-18 17:03:47 +01:00
alex.sharov
d5b51e15f5
grafana:8.4.0
2022-02-18 10:29:50 +07:00
Alex Sharov
952085a83d
last version of kanzi-go ( #3543 )
2022-02-18 10:14:00 +07:00
Alex Sharov
2755af2345
more_stable_grpc_err_check ( #3542 )
2022-02-18 09:55:39 +07:00
Alex Sharov
b60faba5d9
more stable grpc err chec ( #3541 )
2022-02-18 09:54:38 +07:00
Alex Sharov
3de83e2d96
RPCDaemon: to start with disabled txpool ( #3539 )
2022-02-18 09:45:20 +07:00
Alex Sharov
226982d293
Use class dir.Rw - to separate Ro and Rw access to snapshotDir ( #3534 )
...
* save
* save
* save
* save
* save
* save
* save
2022-02-18 09:24:17 +07:00
Andrew Ashikhmin
0701c83222
Fix stall on unwind in handleForkChoice ( #3536 )
...
* ReadHeader instead of ReadHeaderByHash
* Add Engine API to rpcdaemon README
* Fix nil pointer dereference in HandlePendingBlock
* Fix latestValidHash JSON
* Delete GetPayloadBodiesV1
* Break infinte unwind loop in handleForkChoice
* More logging
2022-02-17 18:30:57 +01:00
Alex Sharov
e74b9ef9ff
Embed rpcdaemon fixes ( #3535 )
...
* save
* save
2022-02-17 11:24:21 +07:00
ledgerwatch
c5b4d3e352
[erigon2] Thin commitment (2nd attempt) ( #3515 )
...
* Another fix for history files
* Fix NPE
* Another fix
* Proper closing sequence
* Remove first byte insert flag
* Fixes
* Update
* Add traceblock to erigon2 command
* Update
* Update
* Update
* Update
* print panic
* Fix history reads
* Update
* Update locks
* Update
* Fixes
* Set changesets and commitments upfront
* Logging instead of printing
* Fixes in aggregator and recsplit
* Update to erigon-lib
* Remove empty commitments
* Update
* Update
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-17 10:56:20 +07:00
Alex Sharov
18989d73e6
RPCDaemon: --txpool.api.addr by default to use value of --private.api.addr #3532
2022-02-17 09:06:22 +07:00
alex.sharov
89f3164653
Revert "save"
...
This reverts commit 3ac9112df1
.
2022-02-17 09:04:23 +07:00
alex.sharov
3ac9112df1
save
2022-02-17 09:02:32 +07:00
Omer Korner
eabc2da6db
Fix typo ( #3529 )
2022-02-16 18:42:00 +00:00
ledgerwatch
f1aea7707f
Update skip analysis and preverified headers ( #3527 )
...
* Updated skip analysis for mainnet
* Preverified hashes for mainnet
* Add Sepolia and Ropsten
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-16 18:41:49 +00:00
Alex Sharov
237a7d24d0
Embed RPCDaemon ( #3522 )
...
* save
* save
* save
* save
* save
2022-02-16 17:38:54 +00:00
Andrew Ashikhmin
3663f8c709
Explicit error for purged change sets ( #3528 )
2022-02-16 16:44:16 +01:00
Alex Sharov
7960d0a472
Snapshot: link.header is nil sometime ( #3520 )
...
* save
* save
* save
* save
* save
* save
* save
* save
* save
* Add another check
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-16 12:55:43 +00:00
Andrew Ashikhmin
7bad3a9c59
state.PlainState is now at the beginning of blockNbr, not the end ( #3517 )
...
* state.PlainState is now at the beginning of blockNbr, not the end (fix discprepancy with GetAsOf)
* Fix tests
2022-02-16 08:38:12 +00:00
Alex Sharov
7390ac8381
avoid NAN duration in logs ( #3521 )
2022-02-16 11:54:39 +07:00
Alex Sharov
6d9ea162ab
rpc daemon embed (step 3) ( #3519 )
2022-02-16 11:24:51 +07:00
alex.sharov
1589a8d3d6
snapshots: header stage fixes
2022-02-16 09:30:57 +07:00
Alex Sharov
e652b5fa87
snapshots: header stage fixes ( #3518 )
2022-02-16 08:38:54 +07:00
Enrique Jose Avila Asapche
089a1dd5e7
adding engine_ExchangeTransitionConfigurationV1 ( #3454 )
2022-02-15 09:30:54 +00:00
ledgerwatch
c865290502
Add traceblock to erigon2 command ( #3516 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-14 23:15:24 +00:00
Andrew Ashikhmin
64f4de50cd
Optimized eth_createAccessList ( #3453 )
...
* Make blockNrOrHash optional in CreateAccessList (in line with geth)
* OptimizedAccessList
* cosmetics
* optimizeGas param instead of separate method
* Inline toAddress
2022-02-14 18:39:45 +00:00
Andrew Ashikhmin
b3905fb659
Fix rpcdaemon: borDb may be nil ( #3512 )
2022-02-14 13:00:54 +01:00
alex.sharov
83c99d66da
torrent flags - fix parsing logic
2022-02-14 14:14:37 +07:00
alex.sharov
b5a925d6b6
remove "golangci-lint cache clean" from "make clean"
2022-02-14 11:12:05 +07:00
alex.sharov
f23fdf51c1
snapshots: add torrent cli flags
2022-02-14 10:34:14 +07:00
ledgerwatch
dffcc57ecc
[erigon2] Fix history bug, optimise bitmap search ( #3510 )
...
* Fix history bug, optimise bitmap search
* Optimise SeekInBitmap64
* Update erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-13 20:02:18 +00:00
Alex Sharov
3655f9e629
set mdbx submodule to v0.11.4 tag ( #3509 )
2022-02-13 19:08:46 +07:00
ledgerwatch
d4e623b9e5
[header downloader] introduce queues instead of insertList ( #3489 )
...
* First change for header queues
* Fix
* Fix import
* trigger verification when highestInDb changes
* Print hash, fix MarkAllPreverified
* Fix test
* Cleanup
* More cleanup
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-13 11:27:53 +00:00
Alex Sharov
bbc4cd4fc1
snapshots: use blockReader in IH stage ( #3506 )
...
* use blockReader in IH stage
* use blockReader in IH stage
2022-02-13 16:03:10 +07:00
alex.sharov
ae652ad5c9
remove emed of rpcdaemon (not ready)
2022-02-13 13:48:51 +07:00
Alex Sharov
7566e1dbbe
return EOF on direct stream end ( #3504 )
2022-02-13 09:34:02 +07:00
alex.sharov
d488482c89
save
2022-02-13 08:53:10 +07:00
ledgerwatch
ef6013faff
Automation for gathering erigon2 history data ( #3501 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-12 22:16:06 +00:00
Alex Sharov
1ba95c1087
atomic close 2 channels ( #3498 )
2022-02-12 17:09:17 +00:00
ledgerwatch
2074b98568
Tools for gathering data on erigon2 history and bitmaps ( #3488 )
...
* Tools for gathering data on erigon2 history and bitmaps
* Always start with 0
* Always start with 0
* Clean up commitment files, trace block
* traceblock
* Add tracing to checkChangeSets
* Fixes to DeleteAccount
* Update to latest erigon-lib
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-12 15:48:38 +00:00
Alex Sharov
c9cee7a884
path -> filepath (path package is for urls) ( #3493 )
2022-02-12 20:33:09 +07:00
Alex Sharov
479c7f3d9d
Embed rpcdaemon: prepared direct clients ( #3492 )
2022-02-12 19:47:19 +07:00
leonardchinonso
aca755ab43
Fix/rpcdaemon ws upgrade ( #3490 )
...
* Added a method to `cmd/rpcdaemon/cli/config.go` to check header of incoming http request for a ws upgrade request
* Added the testing of the 'GET /' request for ws to the devnet tool
* Fixed lint errors
2022-02-12 12:40:19 +01:00
Alex Sharov
8d7eca012a
user-friendly pagesize flag ( #3484 )
2022-02-12 15:23:06 +07:00