Commit Graph

16213 Commits

Author SHA1 Message Date
Andrew Ashikhmin
7199dcf7a2
Rename engine.* flags to authrpc.* for consistency with geth (#4890)
* Update README re. Engine API

* Remove obsolete code

* Don't apply --rpc.accessList to Engine API listener

* Simplify startAuthenticatedRpcServer

* Rename engine.* cmd flags to authrpc.* for consistency with geth

* More renamings

* Introduce --authrpc.vhosts flag
2022-08-02 13:15:01 +07:00
Alex Sharov
5cf933d0b0
torrent logs better (#4896) 2022-08-02 11:43:26 +07:00
Alex Sharov
053fc18b44
remove debug line (#4895) 2022-08-02 10:50:40 +07:00
Andrew Ashikhmin
41f27be140
Don't start engine API in standalone rpcdaemon (#4887) 2022-08-01 17:12:35 +02:00
nanevardanyan
cdcc031f41
cmd: make sure regular rpc server start is reachable (#4885) 2022-08-01 16:54:04 +02:00
Henry
9ed2f8d98b
cmd:use for_range read channel (#4880) 2022-08-01 12:58:09 +07:00
Alex Sharov
e60b38e283
decompress: catch maxDepth underflow (#4882)
* save

* save
2022-08-01 12:40:00 +07:00
Alex Sharov
539d14669a
fix empty sn list (#4881) 2022-08-01 11:49:37 +07:00
Alex Sharov
8ccae67447
savemdbx: better error msg(#4878) 2022-08-01 11:14:48 +07:00
Alex Sharov
a50d4c2852
snap indexing: less logs (#4877) 2022-08-01 11:07:07 +07:00
Alex Sharov
bd4bed5933
fix 64kb pageSize page_full corner case (#4847) 2022-08-01 11:03:28 +07:00
ledgerwatch
2b517b7630
Erigon22 prototype to support BSC (#4867)
* Reduce workers and queue size

* Add traces and event logs

* Add chain flag

* Print

* Open consensus db as read only

* Use only one engine instance

* chainDb

* Display palia error

* Not to panic

* Not to exit

* Add syscall

* Print

* Pointer to TxTask

* Not register senders

* Print

* Relax check

* Skip system transactions

* increase workerCount again

* Remove print

* Change recon

* Fix types

* Skip system txs

* Print

* No rules for genesis commit

* Print genesis

* Print|

* Print

* Print

* Update

* Fix

* Remove print

* No print

* Support contract upgrades

* Use the same dif

* Print create2

* Fix

* Fix

* Print

* Hack iterate

* Print empty vals

* Fix hack

* Code hashes

* Code hashes

* Print

* No panic

* No panic

* Fix?

* another incarnation fix

* Remove print

* Remove print

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-07-31 21:54:23 +01:00
Giulio rebuffo
3a972cc074
Removed the use of memory mutation for side-fork unwinds. (#4857)
* done

* updated sum and mod

* error handling

* error handling

* comments

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-31 15:56:08 +02:00
nanevardanyan
de0471aace
cmd: separate auth rpc server from regular (#4822)
* WIP: cmd: separate auth rpc server from regular

* WIP: cmd: updates after code review

* WIP: cmd: eth and engine should be predefined values for authAPI

* cmd: http enabled flag should not affect admin

* cmd: eliminate engine checks in case of non-auth

* cmd: remove engine from http.api options
2022-07-31 12:16:19 +02:00
Andrew Ashikhmin
5dc8baee7a
Improve error handling for the non-delayed PoS downloader (#4864)
* PoSDownloaderTip is set to headerHash, so it should be used in IsBadHeaderPoS

* Don't wait for downloader if can't schedulePoSDownload
2022-07-31 11:58:26 +02:00
Enrique Jose Avila Asapche
66c033a241
Adding config-file flag (#4868)
* added flag

* working flag ovewrite for http

* setting up all flags with yaml file

* comment

* ops

* set flags in the cli trump yaml config file

* changed to config.yaml.file

* ops

* better naming

* accepting toml or yaml files

* fixed flag

* fixed messages
2022-07-31 10:46:00 +07:00
Leonard Chinonso
d866b11923
Added a documentation section to the README.md (#4865) 2022-07-29 21:06:59 +07:00
Alex Sharov
a862bd9913
Revert "fix streaming in error case (#4861)" (#4862)
This reverts commit deccbf973a.
2022-07-29 16:59:31 +07:00
Delweng
4c6c3d6d30
cmd/utils/flags: fix a typo (#4853)
Signed-off-by: Delweng <delweng@gmail.com>
2022-07-29 09:59:12 +02:00
Alex Sharov
deccbf973a
fix streaming in error case (#4861)
* save

* save
2022-07-29 11:08:04 +07:00
Alex Sharov
2681ee392a
rpc: fix error stream (#4860) 2022-07-29 10:01:13 +07:00
Alex Sharov
454cea4811
docs cli antipattern (#4859)
* save

* save
2022-07-29 09:48:24 +07:00
Alex Sharov
554d27468e
parity_listStorageKeys: *mdbx.MdbxCursor is not kv.CursorDupSort (#4858) 2022-07-29 09:13:48 +07:00
Enrique Jose Avila Asapche
8b1574127a
checking txn chain id before adding it to the tx pool (#4855) 2022-07-29 08:26:15 +07:00
Andrew Ashikhmin
59bcbb4f33
No TTD mismatch if there's no TTD in chainConfig yet (#4852) 2022-07-28 18:25:01 +02:00
Andrew Ashikhmin
7ae99884af
Log data if cannot decode BlockBodiesPacket66 (#4850) 2022-07-28 17:26:34 +02:00
ledgerwatch
167de529a8
Fixes for erigon22 prototypes (#4851)
* Fixes for erigon22 prototypes

* Add waiting/applying stats

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-07-28 13:26:48 +01:00
hexoscott
75151e0700
fix memory leak in HandleInboundMessage (#4848) 2022-07-28 12:19:34 +01:00
ledgerwatch
09c104803a
Split erigon2.2 and erigon2.3 prototypes (#4811)
* Split erigon2.2 and erigon2.3 prototypes

* Renaming

* Interruptible and resumable erigon22

* Always regenerate trie

* Introduce aggregator

* Fixes

* cleanup

* Fix lint

* Update to erigon-lib main

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-07-28 12:16:37 +01:00
Alex Sharov
aee4b53788
save list of snapshots in db (#4777)
* 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
2022-07-28 16:57:38 +07:00
battlmonstr
620d65ef10
crypto: MarshalPubkey unit test (#4846) 2022-07-28 09:23:58 +07:00
Andrew Ashikhmin
d85e3c626e
Fix consensus tests (#4844)
* Fix timeout in (*MockSentry) insertPoSBlocks

* Fix bcInvalidHeaderTest/DifficultyIsZero
2022-07-27 17:43:48 +02:00
Andrew Ashikhmin
1ffa984457
Don't wait for CL in initialCycle (#4841) 2022-07-27 13:52:50 +02:00
Andrew Ashikhmin
c591266914
Small PoS clean-ups (#4834)
* Amend comment

* More watchful sleep

* improve comment

* Cosmetics for lock/unlock

* statusRef -> statusDeref

* Comment on obsure logic
2022-07-27 12:14:35 +02:00
Andrew Ashikhmin
b42b4e2aa2
More timeout prevention (#4839)
* More timeout prevention

* Fix Hive tests
2022-07-27 11:28:00 +02:00
Andrew Ashikhmin
f927ac8037
Increase JWT issued-at window to 60s (#4835) 2022-07-27 09:16:50 +02:00
Giulio rebuffo
039b661803
fixed timeout on CL (#4836)
* fixed timeout

* send response immediately wen dealing with SYNCING

* send response immediately wen dealing with SYNCING

* correct lvh for ACCEPTED

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-27 09:16:26 +02:00
Alex Sharov
0db00957e8
Fix for a lot of pending transactions being dropped from newPendingTransactions (#4837) 2022-07-27 12:11:57 +07:00
Giulio rebuffo
101e181c52
if PoS download block is within reach, determine VALID or INVALID (#4812)
* if PoS download is fast enough, determine VALID or INVALID

* more acceptable absolute value

* solved comments

* remove useless

* moved check in stage_headers

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-26 15:24:02 +02:00
Andrew Ashikhmin
c1f848746d
Update consensus tests to v11 (#4724)
* Consensus tests update 11

* Add GrayGlacier fork

* Wire currentRandom from tests into PREVRANDAO

* Serenity engine

* Support insertion of PoS blocks in MockSentry

* Introduce marshallTypedTransactionsAsRlpStrings arg into (*Block) RawBody()

* Revert "Introduce marshallTypedTransactionsAsRlpStrings arg into (*Block) RawBody()"

This reverts commit 903fca572be03c7de33318ce177a03a4be34927b.

* Post-merge fix

* Don't wait for Beacon Chain in tests

* Skip powToPosBlockRejection transition test

* ForkChoice in insertPoSBlocks

* Add withPosDownloader arg to MockWithEverything in order to fix TestPoSDownloader
2022-07-26 09:35:38 +02:00
Alex Sharov
b6ea28ea80
kv.Del() remove second parameter (#4832)
* save

* save

* save

* save

* save

* save

* save
2022-07-26 12:47:05 +07:00
Alex Sharov
60f1adddcd
implement server kv.Snapsthos() method (#4831)
* save

* save
2022-07-26 10:44:47 +07:00
Alex Sharov
3aac12a5f1
use PrioritizedSend method (#4830) 2022-07-26 10:37:51 +07:00
Alex Sharov
bc7f49bc1c
kv.Snapshots() server implementation (#4829) 2022-07-26 10:16:25 +07:00
Alex Sharov
5ee60dba3b
fix sort func (#4828) 2022-07-26 09:46:11 +07:00
Alex Sharov
790af5a62e
kv.Snapsthos() grpc method (#4827) 2022-07-26 09:44:53 +07:00
Alex Sharov
271898ee92
add go.work.sum to gitignore #4826 2022-07-26 09:30:53 +07:00
Alex Sharov
c40fce2ba0
kv.Snapshots() grpc method (#4825) 2022-07-26 09:28:18 +07:00
Andrew Ashikhmin
a4d8031f5d
Fix RemoveContents for non-existing dir (#4823) 2022-07-25 15:58:40 +02:00
Alex Sharov
6faf337b27
pool: allow non-parsable txs in db, skip them with warning 2022-07-25 13:06:56 +07:00