Alex Sharov
f590bf682f
RPCDaemon - open snapshots only when they are ready (and indices ready).
2022-05-04 12:55:58 +07:00
Alex Sharov
533970d31c
trace read parent header from snapshot and lru #4042
2022-05-01 10:35:30 +07:00
Alex Sharov
76c36c2c09
typed sender ( #4016 )
...
* save
* save
2022-04-28 15:35:14 +07:00
Alex Sharov
352869fc3a
rename field "type" ( #4015 )
...
* save
* save
* save
2022-04-28 15:02:06 +07:00
battlmonstr
fc3eecae5e
RPC: admin.peers() ( #3960 )
...
* RPC: admin.peers()
This RPC method returns information about the connected remote nodes.
https://geth.ethereum.org/docs/rpc/ns-admin#admin_peers
The peers are collected from all configured sentries.
See: https://github.com/ledgerwatch/interfaces/pull/102
Test with:
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "admin_peers", "params": [], "id":1}' localhost:8545
* save
* liner fix
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2022-04-25 14:40:04 +01:00
Enrique Jose Avila Asapche
e2fec2a081
got rid of the automatic usage of net api ( #3952 )
...
* got rid of the automatic usage of net api
* less confusing comment
* ops
* ops2
* important
* ops
2022-04-25 19:57:54 +07:00
Håvard Anda Estensen
6844e74ad2
Replace ioutil with io and os ( #3946 )
2022-04-23 15:43:00 +01:00
Alex Sharov
6aa4999729
Parallel indexing ( #3921 )
2022-04-21 10:34:10 +07:00
ledgerwatch
7080c6fab9
Fix help and README.md about pruning options ( #3914 )
...
* Update README.md
* Update flags.go
* Update README.md
2022-04-18 21:50:21 +01:00
Andrew Ashikhmin
7b8d828aa1
RPC: return latest available block rather than forkchoice head ( #3888 )
2022-04-14 18:05:59 +02:00
Alex Sharov
9b47daee44
Default syncmode=snap for Mainnet, Bsc, Goerli ( #3861 )
...
* change syncmode default to snap sync
* save
2022-04-10 07:20:20 +01:00
Andrew Ashikhmin
4531461d66
ExchangeTransitionConfiguration: allow non-zero TerminalBlockNumber ( #3846 )
2022-04-08 10:27:56 +07:00
alex.sharov
44a217892b
test of getPayload
2022-04-08 08:47:40 +07:00
Giulio rebuffo
396bd03021
Fixed JWT path when running the rpcdaemon ( #3840 )
2022-04-07 08:53:34 +07:00
Alex Sharov
d1218181b0
Snapshots: geth compatibility, use --syncmode=snap flag ( #3808 )
2022-04-01 15:00:50 +07:00
Andrew Ashikhmin
6ff6c39d13
Prefer forkchoice head as latest block in RPC ( #3806 )
...
* LastForkchoice accessors
* Update erigon-lib
* Prefer forkchoice head as latest block in RPC
* Fix typo
2022-04-01 08:33:50 +07:00
leonardchinonso
fbb62c7a35
Chore/test log subscription ( #3786 )
...
* saving
* Implemented and tested subscription of logs
* Fixed lint errors
* fixed compilation error
* Removed print statements across code
* made review changes
* Validated hex addresses
2022-03-31 13:40:09 +01:00
Igor Mandrigin
7f1771516c
Fix 'all defaults' case for eth_estimateGas ( #3790 )
...
* Fix 'all defaults' case for eth_estimateGas
* fix tests
Co-authored-by: Igor Mandrigin <i@mandrigin.ru>
2022-03-30 08:04:51 +07:00
Alex Sharov
89d4477df3
Snapshots: nil indices on p2p fix ( #3772 )
2022-03-27 10:07:58 +07:00
ledgerwatch
9ea6398524
Fixes to subscribe logs ( #3769 )
...
* Fixes to subscribe logs
* Add criteria to logs subscription
* Skeleton of RPC daemon event log distribution
* Simplify
* Send aggregated filter to Erigon
* Change API
* Print
* Fixes
* Fix topics filtering
* Fill txHash and blockHash
* Timing logs, fill tx index
* Print
* More print
* Print
* Asynchronous sending of log events to RPC daemon
* Remove prints
* Only extract logs if there are subscribers
* Check empty when RPC daemon is removed
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-03-26 18:21:31 +00:00
Marin Ivanov
1075bcacae
rpcdaemon: Tidy up eth_getLogs ( #3765 )
2022-03-25 11:17:23 +07:00
Giulio rebuffo
904674e1a1
added Websocket support and authentication to Engine API ( #3752 )
...
* added ws support and auth
* fixed lint
2022-03-23 17:12:19 +01:00
Giulio rebuffo
b7fb85df6a
demoted logs ( #3753 )
2022-03-23 10:28:32 +01:00
primal_concrete_sledge
fed19d5591
feat/rpcadaemon_logs_sub ( #3751 )
2022-03-23 07:35:04 +00:00
Andrew Ashikhmin
74a7d7c75a
Refactor PoS downloader ( #3717 )
...
* Remove blockHeight arg from FeedHeaderPoW
* Revert "Remove blockHeight arg from FeedHeaderPoW"
This reverts commit 9bf92921db11cd4e13386fcee29f30241d070fc6.
* Move PayloadMessage & ForkChoiceMessage to package engineapi
* RequestList instead of newPayloadCh & forkChoiceCh
* Introduce request status
* Send reply only when request status is New
* Move BeaconRequestList to HeaderDownload
* Don't SetFetching when PoS (Fetching means handling newBlockHashes)
* Merge Syncing & Synced into DataWasMissing
* Introduce SyncStatus
* onlyNew arg in WaitForRequest
* Move waitingForBeaconChain into RequestList
* Interrupt instead of skipCycleHack
* Introduce timeout for PoS headers
* Split downloadMissingPoSHeaders
* Move StartPoSDownloader into HeaderDownload
* Move Stopping interrupt to StartPoSDownloader
* Move stopping PayloadStatus back to HeadersPOS
* cleanUpPoSDownload
* Post-merge fix
* TestBogusForkchoice
* TestPoSDownloader
* requestStatus in attemptPoSDownload
* Broadcast in SetStatus
* Cosmetics
* attemptPoSDownload -> schedulePoSDownload
* Demote some logs to Trace
2022-03-22 17:49:12 +01:00
Enrique Jose Avila Asapche
726557fe72
Expose jwt-secret flag in erigon ( #3741 )
2022-03-21 08:33:10 +07:00
ledgerwatch
d5fb8f7d24
[erigon2] Separate handover timing ( #3736 )
...
* Separate handover timing
* Update
* Corrected handover time calculation
* Not use compression when aggregate
* Update to latest erigon-lib
* Update to erigon-lib main
* Update
* Disable reproducible builds
* Restore github actions
* Restore github actions
* Revert "linter to support go 1.18 (#3739 )"
This reverts commit 1fd434d3d1
.
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-03-19 16:15:12 +00:00
Alex Sharov
7bf87e9597
Snapshots: grpc event ( #3732 )
2022-03-18 15:06:23 +07:00
Enrique Jose Avila Asapche
bb711676a4
enabling apis for merge if chainConfig has TTD ( #3721 )
2022-03-17 08:28:17 +07:00
ledgerwatch
52852c0850
rpcdaemon: fix TxContext in traceBlock ( #3716 ) ( #3718 )
...
Previously `txCtx` is not updated for every tx, which
leads to wrong tracing results.
Co-authored-by: can <can@canx.me>
2022-03-16 16:21:40 +00:00
Andrew Ashikhmin
2785a57d1c
More Merge logging ( #3712 )
...
* More Merge logging
* Even more logging
* Marshall incoming payload json
* Fix json formatting
* Revert json marshalling
* Some extra logs
2022-03-16 06:55:21 +01:00
Alex Sharov
469b75c3d3
Snapshots: retire blocks by default ( #3707 )
2022-03-16 09:57:48 +07:00
mars
a0765a8bc4
No need to panic ( #3694 )
2022-03-15 07:47:23 +00:00
Giulio rebuffo
e20506e932
fixed JWT authentication port ( #3689 )
...
* fixed JWT
* jwt.hex
* ops
2022-03-14 14:47:26 +01:00
Giulio rebuffo
72d9947479
fix transition warning ( #3687 )
2022-03-13 10:24:17 +01:00
Giulio rebuffo
7094dcc614
Fixed forkid for mergeBlock ( #3686 )
...
* fixed forkid for mergeBlock
* ops
* ops again
2022-03-12 22:51:31 +00:00
alex.sharov
6ac254b54e
fix devel
2022-03-12 09:54:07 +07:00
ledgerwatch
2d1d71153a
Update eth_call.go
2022-03-12 00:16:18 +00:00
leonardchinonso
14b300214a
Feature/test event logs ( #3631 )
...
* Adding contract code for event logs subscription
* Saving changes
* gofmt'd files
* Setting up devnet test tool for log subscription testing
* Fixed lint errors
* Changes to debug case
* fixed linting
* Committing debugging changes
* Finalised contract tx creation and mining
* Fixed lint errors
* Made base fee upper limit a constant
2022-03-09 22:45:24 +00:00
Alex Sharov
0b2ce6f845
rpcdaemon: limit amount of read transactions ( #3637 )
...
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* a
* a
* a
* a
* a
* a
* fefefe
* fefefe
* fefefe
* fefefe
* fefefe
* fefefe
* fefefe
* fefefe
* fefefe
* fefefe
* fefefe
* fefefe
* fefefe
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
2022-03-08 10:43:14 +07:00
Enrique Jose Avila Asapche
dd47dfdf09
typo and code consistency ( #3651 )
2022-03-07 10:24:21 +07:00
Andrew Ashikhmin
4607179849
Handle a corner case in forkchoiceUpdated ( #3640 )
...
* Fix typo
* fix typos
* Handle corner case when unwinding to geneis
* No-op ForkChoice
2022-03-03 16:09:03 +01:00
Andrew Ashikhmin
f58e80bd56
Expose eth API on the same ports as engine API ( #3633 )
...
* Expose port 8551 (authenticated Engine API)
* Expose eth API on the same ports as engine API
2022-03-02 14:58:46 +01:00
battlmonstr
47df98a499
Use "err" key for logging errors. ( #3632 )
...
log.Warn/Error uses "err" key to log errors in most places.
This renames "error" to "err" in some places to adhere to this convention.
2022-03-01 15:40:51 +00:00
Enrique Jose Avila Asapche
a65f12b248
State override support ( #3628 )
...
* added stateOverride type
* solved import cycle
* refactoring
* imported wrong package
* fixed Call arguments
* typo
* override for traceCall
2022-03-01 15:40:24 +00:00
Giulio rebuffo
cb8aacae87
Added Engine Authentication [JWT] ( #3531 )
...
* jwt
* fuuuuture
* added auth
* merge
* merge
* Update jwt to the latest version
* ops
* comments
* cleanup
* bad
* gut
* maybe
* mod sum
Co-authored-by: yperbasis <andrey.ashikhmin@gmail.com>
2022-02-28 12:07:09 +01:00
Giulio rebuffo
99f688c3ec
PrevRandao Renaming ( #3616 )
...
* PrevRandao Renaming
* lint
2022-02-24 18:16:05 +01:00
ledgerwatch
ee488020dd
Auto detect latest block for optimal use of plain state and state cache ( #3598 )
...
* Auto detect latest block for optimal use of plain state and state cache
* Fix lint
* Fix test
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-23 23:42:14 +00:00
Andrew Ashikhmin
37ccbc53d6
Refactor payload building ( #3592 )
...
* Bump MaxPendingPayloads
* UnknownPayload error
* Improve ExchangeTransitionConfigurationV1 comment
* Extract MakeEmptyHeader
* Move MakeEmptyHeader to chain_makers
* Start with empty block as pending payload
* Only build payloads with the right parent hash
* Double check parent hash in SpawnMiningCreateBlockStage
* Simpler error formatting
* ReadHeadBlockHash instead of ReadHeadHeaderHash
* Avoid rebuilding already built blocks
* getPayload should stop the build process
* Tweaking stageLoopIsBusy
* Don't update pending payload after engine_getPayload
2022-02-23 21:27:38 +01:00
Enrique Jose Avila Asapche
198f021f33
Better inputs ( #3590 )
...
* updated tests
* using rpc.Timestamp
* added Timestamp type
2022-02-23 13:52:19 +00:00