Raul Jordan
b8bbeae740
Introduce Thread Safe Map Data Structure ( #11940 )
...
* fix thread safety issue
* gazelle
* push up benchmarks
* rev
* rem keys method
* shallow copy
* fxi
2023-02-01 14:32:01 +00:00
terencechain
59cb9f0dd7
Use head state only for bls messages broadcast ( #11949 )
...
* Use head state only for bls messages broadcast
* Fix build
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-02-01 06:01:10 +00:00
Radosław Kapka
b10e59a144
Add finalized
flag to API responses ( #11947 )
...
* server code
(cherry picked from commit fc68e6e78f2a84c66cd6c4db2a482cccdaf487d5)
* tests
* middleware
* more tests
* fix one more test
2023-01-31 17:58:16 -06:00
terencechain
c070283bf1
Call FCU with attribute on non head block ( #11919 )
...
* Call FCU with attribute on non head block
* Fix condition
* Filer save head
* Refactor
* Rm
* Add tests
* Fix race test
* Potuz feedback
* Reorder r != currentHeadRoot
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 19:17:16 +00:00
Nishant Das
3f67818a65
Utilize Read Only Head State ( #11932 )
2023-01-31 10:41:53 -08:00
Manu NALEPA
847835534d
Validator client: Add missing endpoint.DeleteRequest
- Fixes #11943 ( #11944 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-01-31 18:01:51 +00:00
Potuz
c2194c57b7
Rate limit broadcasting of BLS changes at the fork and at RPC endpoint ( #11936 )
2023-01-31 09:31:22 -08:00
int88
bd83018e76
delete from s.nodeByPayload as well when pruneFinalizedNodeByRootMap ( #11813 )
...
* delete from s.nodeByPayload as well when pruneFinalizedNodeByRootMap
* regresstion test
* add different payload node
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-01-31 10:53:29 +00:00
terencechain
39114e6817
Use copied head state for metrics reporting ( #11933 )
...
* Use copied head state
* Move metrics to the end
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 10:07:27 +00:00
terencechain
67a9701e06
Add spec tests v1.3.0 rc.2 ( #11929 )
...
* Update test
* Fix shas
* Fix shas
* Use hotfix path for spectests
* Gazelle
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 09:42:09 +00:00
Nishant Das
5dc7741b30
Revert Bazel Hash Change ( #11941 )
2023-01-31 09:17:14 +00:00
james-prysm
53a135adbd
update-go-pbs.sh: fixing script for mac users & updating bazel dependency ( #11937 )
...
* fixing script for mac users
* updating checksum for bazel tool
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 01:17:12 +00:00
Raul Jordan
950d0c0282
Update Bazel Grail Toolchain SHA and Protect Digest Map with Lock ( #11939 )
...
* lock digest map
* imports
* toolchain update
2023-01-30 22:40:48 +00:00
Nishant Das
e8c25effb0
Cache Fork Digest Computation ( #11931 )
2023-01-29 16:07:50 +00:00
Potuz
cc454bb42c
Cycle the BLS changes pool when falling below a threshold ( #11873 )
...
* Cycle the BLS changes pool when falling below a threshold
* move cycle logic within pool
* set threshold at 2000
* fix conflict
* more fixes
---------
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-28 14:42:03 +00:00
Sammy Rosso
9529c73ff1
EIP-4881: Spec implementation ( #11720 )
...
* Initial spec rewrite
* Finish adding merkle tree implementation
* Last bits
* Move reverse function
* Add comments
* Add deposit tree snapshot
* Add deposit tree
* Add comments + cleanup
* Fixes
* Add missing errors
* Small fixes
* Add unhandled error
* Cleanup
* Fix unsafe file.Close
* Add missing comments
* Small fixes
* Address some of deepSource' compaints
* Add depositCount check
* Add finalizedDeposit check
* Replace pointer magic with copy()
* Add test for slice reversal
* add back bytes method
* Add package level description
* Remove zerohash gen and add additional checks
* Add additional comments
* Small lint fixes
* Forgot an error
* Small fixes
* Move Uint64ToBytesLittleEndian32 + test
* Fix uint subtraction issue
* Move mixInLength below error handling
* Fix
* Fix deposit root
---------
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-27 17:35:25 +00:00
terencechain
eca129d8ff
Better log for block that never became head ( #11917 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-27 11:58:43 -05:00
terencechain
53a4939da4
Use correct attribute if there's a payload ID cache miss ( #11918 )
...
* Use correct attribute if there's a payload ID cache miss
* Test
* Default case unknown state version
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-27 11:13:47 +00:00
Manu NALEPA
efc1e06c6b
Validator client beacon api non functional fixes ( #11915 )
...
* Validator Client Beacon API: Use Go idiomatic error handling
* Validator Client Beacon API: Use `buildURL`
`buildURL` sort params by keys.
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-01-27 10:44:23 +00:00
james-prysm
07210d7360
prysmctl: withdrawal ux improvement ( #11909 )
...
* adjusting submit bls to not early exit function in partial success
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-01-27 09:57:36 +00:00
Sammy Rosso
9136d30121
Return error when using unsupported mnemonic language ( #11805 )
...
* Return error when using unsupported mnemonic language
* Fix failing tests
* More test fixes
* Add MnemonicLanguage to CreateWalletRequest
* Add MnemonicLanguage to remaining tests
* Add language to error
* Add missing (.)
* Set default language + fix renumbered fields
* Replace hardcoded language with default var
* default set
* gaz
* fix proto field setting
* fix up
* Remove WithMnemonicLanguage from tests
* Remove WithMnemonicLanguage from tests
* Fix conflicting information failure
* Gazelle + remove hardcoded english values
* fix
* Fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-26 23:44:38 +00:00
Potuz
56907bb2c6
Randomize bls changes at fork ( #11923 )
...
* Rate Limit broadcasting of BLS changes
* Rate limit BLS changes broadcasting
* random
* linting
* mock test
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-01-26 23:13:28 +00:00
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +00:00
Radosław Kapka
a296a0c783
Update builder code to Capella ( #11904 )
2023-01-26 14:07:44 +01:00
Guillaume Ballet
c6338e3a31
beacon-chain, config: get consensus values from beacon config ( #11798 )
...
* beacon-chain, config: get consensus values from beacon config
* review feedback
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-01-25 10:42:03 +00:00
terencechain
0a4b0a68d3
Clean up unused code ( #11900 )
...
* Clean up unused code
* More unused
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-25 10:09:14 +00:00
james-prysm
f9dd462338
PrepareBeaconProposer: bug fix ( #11912 )
...
* fixing bug and adding unit test
* reverting small change
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 22:47:26 +00:00
Potuz
943eb93a57
save genesis state to hot cache and do not look it up from disk ( #11911 )
...
* do not lookup genesis state from disk
* make sure genesis state is saved
* fix tests
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
2023-01-24 23:14:50 +01:00
Potuz
9619170df1
Return error structures from bls changes endpoint ( #11908 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 15:58:43 +00:00
james-prysm
4da0abace7
validator exit test ( #11910 )
...
* adding exit test
* fixing deep source errors
2023-01-24 15:26:58 +00:00
Patrice Vignola
d919f800e3
Add REST implementation for Validator's GetDuties
( #11893 )
...
* Add REST implementation for `MultipleValidatorStatus`
* Fix PR comments
* WIP
* Add REST implementation for Validator's SubscribeCommitteeSubnets
* Remove redundant test
* Initialize dutiesProvider
* Address PR comments
* Remove duplicate import
* Fix build break
* WIP
* WIP
* WIP
* Add valid test case for getDutiesForEpoch
* Add failure tests for getDuties
* Revert test change
* Address PR comments
* Address PR comments
Co-authored-by: Emmanuel NALEPA <emmanuel.nalepa@kiln.fi>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-01-24 14:33:29 +00:00
james-prysm
38f095d556
prysmctl: changeblstoexecutionaddress ( withdrawals) ( #11790 )
...
* adding unit test for withdrawal
* updating to handle api changes
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/withdrawal/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/withdrawal/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* updating based on feedback
* rewording prints
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
* add error handling when status not ok
* addressing some of the feedback, adding new tests
* adding unit test with error return
* adjusting based on review comments
* addressing more comments and fixing unit test
* updating prompts
* migrating some functions to api/client
* removing unused function
* adding review feedback
* removing unused functions
* migrating command, old command under accounts still exist
* reverting tos.go
* fixing bazel lint
* fixing build
* resolving unused parameter caught by deepsource
* fixing unit tests
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
* adding in website
* addressing review comment
* adding new verify only flag
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing comments
* fixing unit test
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* address comments
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* adjusting object for new provided format
* adding omit empty
* fixing unit test, and linting
* adjusting based on cli changes
* fixing test data and metadata property
* addressing backwards compatability
* reverting based on review comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
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>
2023-01-24 10:05:55 +00:00
Potuz
04010d45c8
Do not check headstate being Capella for BLS changes on gossip ( #11902 )
...
* Do not check headstate being Capella for BLS changes on gossip
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 00:11:26 +00:00
Radosław Kapka
1a048a2f2a
Refactor BLS change pool ( #11894 )
...
* Refactor BLS change pool
* update mock's signature
* do not return error from `MarkIncluded`
* fix tests
* fix mock's signature
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-23 14:11:45 +00:00
terencechain
3df2dedbb2
Exit properly with terminal block hash ( #11892 )
2023-01-23 14:27:36 +01:00
Potuz
2fee906d25
Use LIFO instead of FIFO when packing BLS changes ( #11896 )
2023-01-20 16:30:42 +00:00
Sammy Rosso
9f44d6e452
Add flag for custom slasher database directory ( #11890 )
...
* Add slasher database directory flag
* Fix up some beacon chain flag uses
* fmt
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-18 21:52:53 +00:00
Patrice Vignola
55f311eb73
Add REST implementation for Validator's SubscribeCommitteeSubnets
( #11804 )
...
* WIP
* Add REST implementation for Validator's SubscribeCommitteeSubnets
* Remove redundant test
* Initialize dutiesProvider
* Remove duplicate import
* Fix build break
* Address PR comments
* Remove file committed by mistake
* Fix broken test
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-01-18 21:21:07 +00:00
Manu NALEPA
0f90bacac9
Add REST implementation for CheckDoppelGanger
( #11835 )
...
* Add REST implementation for `MultipleValidatorStatus`
* Fix PR comments
* Address PR comments
* Add REST implementation for `CheckDoppelGanger`
* Use context
* Fix comments
* Fix PR comments
* Fix PR comments
* remove blank lines
* Fix comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-01-18 16:13:45 +00:00
Radosław Kapka
30974039f3
Small adjustments to Beacon API ( #11874 )
...
* better `fillDBTestBlocks`
* error when submitting unknown block type
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-01-18 12:15:25 +00:00
int88
3392ecb3e1
fix TestVotes_CanFindHead ( #11821 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-01-18 10:54:44 +00:00
Nishant Das
fa2b64f702
Remove Unused Block Setter ( #11889 )
...
* remove methods
* remove mock
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-18 08:56:44 +00:00
omahs
6f5e35f08a
Fix: typos ( #11885 )
...
* Fix: typo
Fix: typo
* Fix: typos
Fix: typos
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2023-01-18 15:21:58 +08:00
terencechain
79d6ce45ad
Add capella's marshal and unmarshal ( #11879 )
...
* Add capella's marshal and unmarshal
* skip test
* Fix TestJsonMarshalUnmarshal/execution_payload_Capella
* Fixing test
* Skip http test
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 23:44:59 +00:00
terencechain
73cd7df679
Add capella fork version for Sepolia testnet ( #11888 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 19:51:01 +00:00
Nishant Das
d084d5a979
Add Disable Staking Contract Check Flag ( #11886 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 19:00:30 +00:00
Sammy Rosso
db6b1c15c4
Add additional tests to bytesutil ( #11877 )
...
* Add missing tests from bytes.go and integers.go
* Fix failing test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-01-17 17:54:43 +00:00
Dhruv Bodani
7c9bff489e
Add REST implementation for GetSyncCommitteeContribution ( #11875 )
...
* add REST implementation for GetSyncCommitteeContribution
* fix imports
* Update validator/client/beacon-api/sync_committee.go
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-01-17 16:43:22 +00:00
Nishant Das
1fca73d761
Delete interop.Dockerfile ( #11887 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 15:09:32 +00:00
Potuz
fbafbdd62c
Stream blocks capella ( #11883 )
...
* capella blocks stream
* add unit tests
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 12:17:18 +00:00