Potuz
52271cf0ba
Report depth and distance on reorgs ( #11315 )
...
* Report depth and distance on reorgs
* rename to CommonAncestor
* change event feed
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 23:59:08 +00:00
Potuz
e1f56d403c
Restore forkchoice dump endpoint. ( #11312 )
...
* Restore forkchoice dump endpoint.
Only working on doubly-linked-tree.
* unit test
* revert proto changes
* protoarray
* Deepsource
* shut up!
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 23:37:23 +00:00
terencechain
a2193ee014
Accept attestations when node is optimistic ( #11319 )
...
* Accept attestations when node is optimistic
* Fix tests
* Add regression tests
* Fix tests
* Fix more bad tests
2022-08-25 20:15:07 -03:00
james-prysm
762b3df491
Beacon API: api wrongly marked deprecated ( #11316 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-25 21:02:17 +00:00
terencechain
2b3025828f
ErrorContains
dont allow empty string (#11314 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 19:07:39 +00:00
terencechain
436792fe38
Builder: filter header with 0 bid and empty tx root ( #11313 )
...
* Filter header with 0 bid and empty root
* Check nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 18:24:02 +00:00
terencechain
1d07bffe11
Beacon api: fix get blind block ( #11304 )
...
* Beacon api: fix get blind block
* Gaz
* Add back before bellatrix behavior
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-25 17:19:17 +00:00
Preston Van Loon
f086535c8a
Update llvm to 13.0.1 ( #11310 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 15:15:14 +00:00
Han Shen
3a4c599a96
Implement delete gaslimit ( #11290 )
...
* Implement delete gaslimit.
* Minor comment change.
* Reset gaslimit to DefaultConfig's gaslimt instead of 0.
* After gaslimit deletion, use global gaslimit default value instead of values provided in ProposalConfig.
* After deletion, use config default, if that is not available, use global default gaslimit value.
* Use grpc's codes.NotFound instead of http code "404".
* Updated bazel deps (new imports "google.golang.org/grpc/codes" was added for tests).
* Fix "TestServer_RecoverWallet_Derived" test failure.
Previously "params.BeaconConfig()" (thus the default global value
"BLSSecretKeyLength") was overriden by standard_api_test:TestServer_DeleteGasLimit.
Fixed the problem by retoring the origin global default after the test is done.
* Do not change BeaconConfig object, instead change BeaconConfig.DefaultBuilderGasLimit.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-08-25 14:43:21 +00:00
Nishant Das
1c6cbc574e
Update Geth Version In Prysm ( #11308 )
...
* clean up
* clean up
2022-08-25 13:55:01 +00:00
Potuz
2317375983
Add feature flag to treat all blocks as optimistic at startup ( #11303 )
...
* Add feature flag to treat all blocks as optimistic at startup
* Terence's review
* remove changed empty lines
* Apply suggestions from code review
* Go fmt sorry
* bad comments
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2022-08-25 12:40:29 +00:00
terencechain
6354748b12
Update badges ( #11305 )
...
* Update badges
* Update README.md
2022-08-24 22:46:56 +00:00
Nishant Das
e910471784
Add In Duty Logging ( #11301 )
...
* add it in
* use time until
* potuz's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-24 19:50:19 +00:00
Potuz
ab7e97ba63
Fix setNodeAndParentValidated ( #11302 )
...
* Fix setNodeAndParentValidated
* fix tests
2022-08-24 19:30:45 +00:00
Mike Neuder
e99de7726d
Wallet recover CLI Manager migration ( #11278 )
...
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* add TODO to remove duplicate code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-24 16:57:03 +00:00
Justin Traglia
606fdd2299
Return copy of deposits instead of internal pointer ( #11273 )
...
* Return copy of deposits instead of internal pointer
* Update the comment
* Fix linter warning
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-24 15:46:51 +00:00
james-prysm
1eb6025aaa
Beacon API: validator registration encoding bug ( #11299 )
2022-08-24 15:05:43 +00:00
Nishant Das
d431ceee25
Improve Logging When Parsing JWT Secret ( #11300 )
...
* remove all references
* remove warning
2022-08-24 13:16:48 +00:00
james-prysm
4597599196
Code Cleanup: remove forkchoicer from beacon node ( #11294 )
...
* removing forkchoicestore on beacon node
* fixing linting
* Update beacon-chain/node/node.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
* fixing if statement
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-23 17:47:12 +00:00
james-prysm
0c32eb5c03
Beacon API: skip updating fee recipient if it's the same ( #11296 )
...
* adding in redudant check
* adding unit tests
* fixing linting
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-23 17:26:43 +00:00
terencechain
4b1cb6fa80
Fork aware beacon API end points ( #11274 )
...
* Make operation RPC fork aware
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-08-23 17:07:11 +00:00
Nishant Das
9cfb823cc6
Simplify List Attestations RPC Method ( #11292 )
...
* simplify
* fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-08-23 12:47:16 -04:00
terencechain
cb502ceb8c
Skip updating fee recipient if it's the same ( #11295 )
2022-08-23 10:54:38 -05:00
Roberto Bayardo
8da4d572d9
fix wrapping of nil errors ( #11282 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-08-22 16:57:43 +00:00
terencechain
1c6fa65f7b
Add back deprecated flags ( #11284 )
...
* Add back deprecated flags
* Add enable-validator-registration as alias
* Clean up
* Add deprecatedEnableLargerGossipHistory
* Rm duplicated gossip batch aggregation
2022-08-22 16:05:15 +00:00
Nishant Das
eaa2566e90
Add Back Fallback Provider Flag ( #11281 )
...
* add it back
* remove all references
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2022-08-22 11:20:21 -04:00
Nishant Das
6957f0637f
Bring Down Error To A Debug Log ( #11283 )
2022-08-22 12:00:50 +00:00
Nishant Das
01b1f15bdf
Add Back Resync Routine ( #11280 )
2022-08-21 13:31:40 +00:00
Nishant Das
b787fd877a
Handle Deprecated Flags Correctly ( #11276 )
2022-08-20 04:16:14 +00:00
Nishant Das
2c89ce810d
Bring back old execution flag as an alias ( #11275 )
2022-08-20 03:28:22 +00:00
Potuz
e687fff922
Insert attestations on block ( #11260 )
...
* Insert attestations from blocks to forkchoice
* do not insert twice
* use OnAttestation instead
* Revert "use OnAttestation instead"
This reverts commit 577c37bbebf05bc6881a2a5b29c7079503d9ccd1.
* unit test
* fix test
* Update beacon-chain/blockchain/receive_block_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2022-08-19 17:02:17 +00:00
james-prysm
5e2498be7e
Gas_Limit as string ( #11264 )
...
* setting gas limit as string in json and yaml
* adding more tests
* fixing unit test
* fixing string conversion
2022-08-19 11:36:49 -05:00
Potuz
76f958710f
Protoarray deadlocks ( #11271 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 14:46:12 +00:00
Potuz
1775cf89c6
Call on_tick on every skipped slot for spectests ( #11262 )
...
New spectests ensure that we call on_tick for every slot between the
last tick and the current one. This PR fixes that
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 14:25:35 +00:00
Potuz
8fecfaee48
DoublyLinkedTree double locks ( #11269 )
...
* DoublyLinkedTree double locks
* fix updateCheckpoints
* add comment
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 14:06:57 +00:00
terencechain
f089405d2f
Update spec tests to v1.2.0-rc.3 ( #11261 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 13:46:41 +00:00
Nishant Das
029c81a2e4
Switch Down Libp2p Logging Level By Default ( #11266 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 13:09:29 +00:00
Nishant Das
56c48b4971
Tag Gosec To Last Stable Version ( #11267 )
2022-08-19 13:00:30 +00:00
Raul Jordan
20ed47a107
Add a Generate Genesis State Command to Prysmctl ( #11259 )
...
* genesis tool
* done with tool
* delete old tool
* no fatal
* fix up
* Update cmd/prysmctl/testnet/generate_genesis.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* radek feedback
* more feedback
* required
* fix up
* gaz
* radek feedback
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-19 09:26:25 +00:00
terencechain
e30471f1a0
Remove inclusion distance & slots ( #11265 )
2022-08-18 16:31:22 -07:00
terencechain
3b38765a2d
Better re-org log ( #11253 )
...
* Better re-org log
* Dont' return err
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-18 16:53:17 +00:00
Raul Jordan
b60e508c89
Remove Slasher Deprecated Protos ( #11257 )
...
* rem deprecated
* fix slasher
2022-08-18 15:56:05 +00:00
Justin Traglia
a65c670f5e
Use function argument in error message instead of return value ( #11244 )
...
* Do not use return value in error handling
* Revert changes to EpochFromString & SlotFromString
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-08-18 14:01:24 +00:00
Han Shen
4af7d8230a
Implement "set gaslimit" for KeyManager API ( #11208 )
...
* This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit".
* This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit".
* Fixed comment string.
* Regenerated key_management proto files.
* Addressed code review comment - explitly set BuildConfig.Enabled to false.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-08-18 04:49:54 +00:00
Han Shen
27733969f7
Fixed flag usage text typo. ( #11254 )
2022-08-17 23:50:26 +00:00
Raul Jordan
e70fe1c9fd
Support Chain Config File Loading in Genesis State Tool ( #11249 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 19:44:29 +00:00
Justin Traglia
9b3a834437
Parse slot as uint64 in spectest ( #11252 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-08-17 19:34:43 +00:00
terencechain
d815fa8f21
Remove deprecated eth endpoints ( #11251 )
...
* Remove deprecated eth endpoints
* Add back blockroot
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 19:20:34 +00:00
Justin Traglia
ac3079f8cd
Add lock around unsafe append in goroutine ( #11247 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-08-17 19:01:01 +00:00
Raul Jordan
cb8f6423e0
Do Not Push Prysmctl Docker Images to Dockerhub ( #11250 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 18:15:31 +00:00