Giulio rebuffo
982de94428
misleading comment in receive_block.go ( #10538 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-04-18 12:15:28 +00:00
terence tsao
a41025e5ec
Rename optimistic_sync.go to execution_engine.go ( #10537 )
...
* Rename optimistic_sync.go to execution_engine.go
* Update BUILD.bazel
2022-04-18 05:49:48 +00:00
terence tsao
3ce26ae7e2
Add process payload header ( #10529 )
...
* Add process payload header
* Update block.go
* Remove unused receivers
* Use errors vars
* Add some comments
* Add some comments
2022-04-17 07:02:59 +00:00
terence tsao
1acedd5b01
Rename receipt root to receipts root ( #10535 )
2022-04-16 13:18:07 +00:00
Radosław Kapka
a0679c70d3
Service constructors and Start()
- better separation of concerns ( #10532 )
...
* move waitForStateInitialization to Start
* remove channel
* handle error in test
* fix service tests
* use fatal log
* deterministic-genesis
* sync
* rpc
* monitor
* validator-client
* test fixes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-16 02:45:35 +00:00
Radosław Kapka
3b69f7a196
Simplify Initial Sync ( #10523 )
...
* move waitForStateInitialization to Start
* remove channel
* handle error in test
* fix service tests
* use fatal log
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-15 13:32:31 +00:00
Nishant Das
72562dcf3a
Fix Another Off By 1 In Our Finalized Trie ( #10524 )
...
* fix everything
* fix more
* fix test
* Update beacon-chain/powchain/service.go
* Update beacon-chain/powchain/service.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-04-15 12:51:56 +00:00
terence tsao
cbe54fe3f9
Handle nil execution block response when logging TTD ( #10502 )
2022-04-13 19:47:04 -07:00
Nishant Das
1b6adca3ca
Handle Finalized Deposit Insertion Better ( #10517 )
2022-04-13 10:08:19 +02:00
Potuz
56187edb98
Use forkchoice first when checking canonical status ( #10516 )
2022-04-12 21:34:13 -03:00
Nishant Das
407182387b
fix it all ( #10511 )
2022-04-12 19:50:29 +08:00
terence tsao
ad0b0b503d
Move GetTerminalBlockHash
to powchain engine ( #10500 )
...
* Move GetTerminalBlockHash to powchain engine
* Update service.go
* Update service.go
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-12 10:19:07 +00:00
terence tsao
58f4ba758c
Metrics tracking EE VALID/SYNCING/INVALID response counter ( #10504 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-04-12 09:51:13 +00:00
terence tsao
e70055733f
Save state to DB after proposer boost ( #10509 )
2022-04-11 16:51:49 +00:00
Radosław Kapka
36e4f49af0
Bellatrix evaluators ( #10506 )
...
* defensive nil check
* separate ExecutionPayload/Header from codegen
* tell bazel about this new file
* Merge: support terminal difficulty override (#9769 )
* Fix finding terminal block hash calculation
* Update mainnet_config.go
* Update beacon_block.pb.go
* Various fixes to pass all spec tests for Merge (#9777 )
* Proper upgrade altair to merge state
* Use uint64 for ttd
* Correctly upgrade to merge state + object mapping fixes
* Use proper receive block path for initial syncing
* Disable contract lookback
* Disable deposit contract lookback
* Go fmt
* Merge: switch from go bindings to raw rpc calls (#9803 )
* Disable genesis ETH1.0 chain header logging
* Update htrutils.go
* all gossip tests passing
* Remove gas validations
* Update penalty params for Merge
* Fix gossip and tx size limits for the merge part 1
* Remove extraneous p2p condition
* Add and use
* Add and use TBH_ACTIVATION_EPOCH
* Update WORKSPACE
* Update Kintsugi engine API (#9865 )
* Kintsugi ssz (#9867 )
* All spec tests pass
* Update spec test shas
* Update Kintsugi consensus implementations (#9872 )
* Remove secp256k1
* Remove unused merge genesis state gen tool
* Manually override nil transaction field. M2 works
* Fix bad hex conversion
* Change Gossip message size and Chunk SIze from 1 MB t0 10MB (#9860 )
* change gossip size and chunk size after merge
* change ssz to accomodate both changes
* gofmt config file
* add testcase for merge MsgId
* Update beacon-chain/p2p/message_id.go
Change MB to Mib in comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* change function name from altairMsgID to postAltairMsgID
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Sync with develop
* Merge branch 'develop' of github.com:prysmaticlabs/prysm into kintsugi
* Update state_trie.go
* Clean up conflicts
* Fix build
* Update config to devnet1
* Fix state merge
* Handle merge test case for update balance
* Fix build
* State pkg cleanup
* Fix a bug with loading mainnet state
* Fix transactions root
* Add v2 endpoint for merge blocks (#9802 )
* Add V2 blocks endpoint for merge blocks
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* go mod
* fix transactions
* Terence's comments
* add missing file
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Sync
* Go mod tidy
* change EP field names
* latest kintusgi execution api
* fix conflicts
* converting base fee to big endian format (#10018 )
* ReverseByteOrder function does not mess the input
* sync with develop
* use merge gossip sizes
* correct gossip sizes this time
* visibility
* clean ups
* Sync with develop, fix payload nil check bug
* Speed up syncing, hide cosmetic errors
* Sync with develop
* Clean up after sync
* Update generate_keys.go
* sync with develop
* Update mainnet_config.go
* Clean ups
* Sync optimistically candidate blocks (#10193 )
* Revert "Sync optimistically candidate blocks (#10193 )"
This reverts commit f99a0419ef1efc4bda0be77f22165b8fe4377c0d.
* Sync optimistically candidate blocks (#10193 )
* allow optimistic sync
* Fix merge transition block validation
* Update proposer.go
* Sync with develop
* delete deprecated client, update testnet flag
* Change optimistic logic (#10194 )
* Logs and err handling
* Fix build
* Clean ups
* Add back get payload
* c
* Done
* Rm uncommented
* Optimistic sync: prysm validator rpcs (#10200 )
* Logs to reproduce
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
* Fix marshal
* Update json_marshal_unmarshal.go
* Log
* string total diff
* str
* marshal un
* set string
* json
* gaz
* Comment out optimistic status
* remove kiln flag here (#10269 )
* Sync with devleop
* Sync with develop
* clean ups
* refactor engine calls
* Update process_block.go
* Fix deadlock, uncomment duty opt sync
* Update proposer_execution_payload.go
* Sync with develop
* Rm post state check
* Bypass eth1 data checks
* Update proposer_execution_payload.go
* Return early if ttd is not reached
* Sync with devleop
* Update process_block.go
* Update receive_block.go
* Update bzl
* Revert "Update receive_block.go"
This reverts commit 5b4a87c512325d9f26de4db7f941dcd7303cd0d8.
* Fix run time
* add in all the fixes
* fix evaluator bugs
* latest fixes
* sum
* fix to be configurable
* Update go.mod
* Fix AltairCompatible to account for future state version
* Update proposer_execution_payload.go
* fix broken conditional checks
* fix all issues
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
* Log bellatrix fields
* Update log.go
* Revert "fix broken conditional checks"
This reverts commit e118db6c20172783a3bb573d2f78670f0207ec1e.
* LH multiclient working
* Friendly fee recipient log
* Remove extra SetOptimisticToValid
* fix race
* fix test
* Fix base fee per gas
* Fix notifypayload headroot
* tx fuzzer
* clean up with develop branch
* save progress
* 200tx/block
* add LH flags
* Sync with devleop
* cleanup
* cleanup
* hash
* fix build
* fix test
* fix go check
* fmt
* gosec
* Blocked stream
(cherry picked from commit f362af9862db680b6352692217ad5c08d44a1e86)
# Conflicts:
# proto/prysm/v1alpha1/validator.pb.go
* remove duplicate param
* test
* revert some test changes
* Initial version of EE tx count
* evaluate all txs in epoch
* remove logs
* uncomment tests
* remove unwanted change
* parameterize ExpectedExecEngineTxsThreshold
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Zahoor Mohamed <zahoor@zahoor.in>
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-11 13:45:22 +00:00
terence tsao
d98428dec4
Can prune nodes from canonical and payload maps ( #10496 )
...
* Can prune nodes from canonical and payload maps
* Update store_test.go
* prune payload hashes, canonical nodes and better testing
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-04-11 11:08:50 +00:00
Nishant Das
00b92e01d3
Fetch Non Finalized Deposits Better ( #10505 )
2022-04-11 09:59:22 +02:00
Potuz
ca5adbf7e4
Fix optimistic logging ( #10503 )
2022-04-09 23:09:04 +00:00
Nishant Das
a083b7a0a5
Set Auth Differently In Our Powchain Constructor ( #10501 )
2022-04-09 11:03:05 +02:00
Raul Jordan
dd5995b665
Proper Connection Management for ETH JSON-RPC Client for Startup and Runtime ( #10498 )
...
* begin connection management revamp
* kiln runs
* retry
* reconnect
* add
* rpc connect fix
* remove logging
* logs
* retry
* default value for web3flag
* test pass
* comments
* ensure auth works
2022-04-09 09:28:40 +08:00
Potuz
ac8d27bcf1
Deal with node balance underflow ( #10492 )
...
* deal with balance underflow
* fix log format
* preston's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-04-07 17:38:48 +00:00
terence tsao
0411b7eceb
Payload ID caching ( #10481 )
2022-04-06 16:36:52 -07:00
Radosław Kapka
8dfc80187d
Fix receipts root field name in API Middleware ( #10488 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-06 21:56:11 +00:00
terence tsao
3833f78803
Remove invalid nodes ( #10399 )
2022-04-06 14:24:00 -07:00
Potuz
83a83279d4
Remove synced tips and use last valid hash ( #10439 )
...
* Remove synced tips
use last valid hash in removing invalid nodes.
* add test
* Remove unused code
* More unused parameters
* Fix proposer boost
* terence's review #1
* Fix conflicts
* terence's review 2
* rename argument
* terence's review #3
* rename optimistic -> status
* Minor clean up
* revert loop variable change
* do not mark lvh as valid
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-04-06 14:18:30 +00:00
terence tsao
bdab34fd01
Use correct head for notifyForkchoiceUpdate
( #10485 )
...
* Use correct head for notifyForkchoiceUpdate
* Fix existing tests
* Update receive_attestation_test.go
2022-04-06 19:05:53 +08:00
kasey
de0143e036
save origin block root before finalize ( #10463 )
...
* save origin block root before finalize
* add test for SaveOrigin
* goimports :(
* signature to LoadGenesis changed in a diff PR
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-04-05 17:13:53 +00:00
Nishant Das
2a7a09b112
Add Lock Analyzer ( #10430 )
...
* add lock analyzer
* fix locks
* progress
* fix failures
* fix error log
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-05 16:39:48 +00:00
terence tsao
984575ed57
Optimistic check: handle zeros check point root ( #10464 )
...
* Handle zero roots
* Update chain_info_test.go
* Update chain_info_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-05 14:37:25 +00:00
Nishant Das
927e338f9e
Enable Bellatrix E2E ( #10437 )
...
* Fix finding terminal block hash calculation
* Update mainnet_config.go
* Update beacon_block.pb.go
* Various fixes to pass all spec tests for Merge (#9777 )
* Proper upgrade altair to merge state
* Use uint64 for ttd
* Correctly upgrade to merge state + object mapping fixes
* Use proper receive block path for initial syncing
* Disable contract lookback
* Disable deposit contract lookback
* Go fmt
* Merge: switch from go bindings to raw rpc calls (#9803 )
* Disable genesis ETH1.0 chain header logging
* Update htrutils.go
* all gossip tests passing
* Remove gas validations
* Update penalty params for Merge
* Fix gossip and tx size limits for the merge part 1
* Remove extraneous p2p condition
* Add and use
* Add and use TBH_ACTIVATION_EPOCH
* Update WORKSPACE
* Update Kintsugi engine API (#9865 )
* Kintsugi ssz (#9867 )
* All spec tests pass
* Update spec test shas
* Update Kintsugi consensus implementations (#9872 )
* Remove secp256k1
* Remove unused merge genesis state gen tool
* Manually override nil transaction field. M2 works
* Fix bad hex conversion
* Change Gossip message size and Chunk SIze from 1 MB t0 10MB (#9860 )
* change gossip size and chunk size after merge
* change ssz to accomodate both changes
* gofmt config file
* add testcase for merge MsgId
* Update beacon-chain/p2p/message_id.go
Change MB to Mib in comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* change function name from altairMsgID to postAltairMsgID
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Sync with develop
* Merge branch 'develop' of github.com:prysmaticlabs/prysm into kintsugi
* Update state_trie.go
* Clean up conflicts
* Fix build
* Update config to devnet1
* Fix state merge
* Handle merge test case for update balance
* Fix build
* State pkg cleanup
* Fix a bug with loading mainnet state
* Fix transactions root
* Add v2 endpoint for merge blocks (#9802 )
* Add V2 blocks endpoint for merge blocks
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* go mod
* fix transactions
* Terence's comments
* add missing file
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Sync
* Go mod tidy
* change EP field names
* latest kintusgi execution api
* fix conflicts
* converting base fee to big endian format (#10018 )
* ReverseByteOrder function does not mess the input
* sync with develop
* use merge gossip sizes
* correct gossip sizes this time
* visibility
* clean ups
* Sync with develop, fix payload nil check bug
* Speed up syncing, hide cosmetic errors
* Sync with develop
* Clean up after sync
* Update generate_keys.go
* sync with develop
* Update mainnet_config.go
* Clean ups
* Sync optimistically candidate blocks (#10193 )
* Revert "Sync optimistically candidate blocks (#10193 )"
This reverts commit f99a0419ef1efc4bda0be77f22165b8fe4377c0d.
* Sync optimistically candidate blocks (#10193 )
* allow optimistic sync
* Fix merge transition block validation
* Update proposer.go
* Sync with develop
* delete deprecated client, update testnet flag
* Change optimistic logic (#10194 )
* Logs and err handling
* Fix build
* Clean ups
* Add back get payload
* c
* Done
* Rm uncommented
* Optimistic sync: prysm validator rpcs (#10200 )
* Logs to reproduce
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
* Fix marshal
* Update json_marshal_unmarshal.go
* Log
* string total diff
* str
* marshal un
* set string
* json
* gaz
* Comment out optimistic status
* remove kiln flag here (#10269 )
* Sync with devleop
* Sync with develop
* clean ups
* refactor engine calls
* Update process_block.go
* Fix deadlock, uncomment duty opt sync
* Update proposer_execution_payload.go
* Sync with develop
* Rm post state check
* Bypass eth1 data checks
* Update proposer_execution_payload.go
* Return early if ttd is not reached
* Sync with devleop
* Update process_block.go
* Update receive_block.go
* Update bzl
* Revert "Update receive_block.go"
This reverts commit 5b4a87c512325d9f26de4db7f941dcd7303cd0d8.
* Fix run time
* add in all the fixes
* fix evaluator bugs
* latest fixes
* sum
* fix to be configurable
* Update go.mod
* Fix AltairCompatible to account for future state version
* Update proposer_execution_payload.go
* fix broken conditional checks
* fix all issues
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
* Log bellatrix fields
* Update log.go
* Revert "fix broken conditional checks"
This reverts commit e118db6c20172783a3bb573d2f78670f0207ec1e.
* LH multiclient working
* Friendly fee recipient log
* Remove extra SetOptimisticToValid
* fix race
* fix test
* Fix base fee per gas
* Fix notifypayload headroot
* tx fuzzer
* clean up with develop branch
* save progress
* 200tx/block
* add LH flags
* Sync with devleop
* cleanup
* cleanup
* hash
* fix build
* fix test
* fix go check
* fmt
* gosec
* add deps
* cleanup
* fix up
* change gas price
* remove flag
* last fix
* use new LH version
* fix up
* fix finalized block panic
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Zahoor Mohamed <zahoor@zahoor.in>
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Zahoor Mohamed <zahoor@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-04-05 14:02:46 +00:00
terence tsao
f44c99d92a
Add blinded beacon block protobufs and wrappers ( #10473 )
...
Co-authored-by: rkapka <rkapka@wp.pl>
2022-04-05 14:57:19 +02:00
terence tsao
7d669f23ab
Sync: process pending block with optimistic parent ( #10480 )
2022-04-04 18:46:05 -07:00
terence tsao
9b64c33bd1
RPC: GetValidatorPerformance for Bellatrix ( #10482 )
2022-04-04 19:50:57 -04:00
Potuz
defa602e50
Adapt Doppelganger to Altair ( #9969 )
...
Co-authored-by: rkapka <rkapka@wp.pl>
2022-04-04 15:55:55 +02:00
Radosław Kapka
67c8776f3c
Fix execution payload field names in API Middleware ( #10479 )
2022-04-04 13:19:31 +02:00
Mohamed Zahoor
896d186e3b
process the optimistic blocks whose parent are optimistic too ( #10350 )
...
* process the optimistic blocks whose parent are optimistic too
* adding unit test
* fix test
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-04-03 23:57:52 -03:00
Raul Jordan
edb98cf499
Move Engine API to Powchain and Consolidate Connection Management ( #10438 )
...
* gazelle
* tests passing
* use the same engine client
* pass
* initialize in right place
* erge
* build
* imports
* ensure engine checks work
* pass powchain tests
* powchain tests pass
* deepsource
* fix up node issues
* gaz
* endpoint use
* baz
* b
* conf
* lint
* gaz
* move to start function
* test pass
2022-04-01 14:04:24 -04:00
Potuz
ce15823f8d
Save head after FCU ( #10466 )
...
* Update head after FCU
* rename function
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-04-01 00:08:01 +00:00
terence tsao
7cdc741b2f
Sync: don't set block to bad due to timeout ( #10470 )
...
* Add filter error and tests
* Update BUILD.bazel
* Kasey's feedback
2022-03-31 23:29:27 +00:00
terence tsao
5704fb34be
Remove duplicated engine mock ( #10472 )
...
* Rm mock
* udpate
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-03-31 19:14:09 -04:00
Potuz
177f9ccab0
Return historical non-canonical blocks as optimistic ( #10446 )
...
* Return historical non-canonical blocks as optimistic
* terence's review
2022-03-31 12:51:14 +00:00
Potuz
649dee532f
insert block to forkchoice after notifyNewPayload ( #10453 )
...
* insert block to forkchoice after notifyNewPayload
* Add optimistic candidate check
* Terence's review
* Apply suggestions from code review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-31 09:17:49 -03:00
terence tsao
4b3364ac6b
Log terminal total difficulty status ( #10457 )
...
* Log terminal total diff status
* Update check_transition_config.go
* Update BUILD.bazel
* Update check_transition_config.go
* Update check_transition_config.go
* Update check_transition_config.go
2022-03-31 03:05:23 +00:00
kasey
0df8d7f0c0
refactor genesis state flag handling, support url ( #10449 )
...
* refactor genesis state flag handling, support url
* lint fix
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-03-30 22:23:34 +00:00
terence tsao
fe98d69c0a
Clean up blockchain pkg ( #10452 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-30 17:45:24 +00:00
Radosław Kapka
be6f3892e8
Align Beacon API with 2.2.0 spec ( #10455 )
2022-03-30 15:17:19 +00:00
Potuz
588605ceeb
Remove TODOs that were already taken care of ( #10454 )
2022-03-30 13:24:02 +00:00
Raul Jordan
56ab5872bb
Add Histogram Response Buckets to Engine API Methods ( #10414 )
...
* gaz
* defer payload func
* amend
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-28 22:17:31 +00:00
Raul Jordan
eb6d68a4b1
Deterministic Proposer Root Boosting in Forkchoice ( #10427 )
...
* begin refactor
* fix doubly linked tree tests
* pass
* fix up
* gaz
* buidl
* buidl more
* comment
* args check
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-28 21:34:41 +00:00
kasey
7920528ede
Checkpoint Sync 4/5 - enable checkpoint sync to be used by beacon node ( #10386 )
...
* enable checkpoint sync in beacon node
* lint fix
* rm unused error
* addressing PR feedback from Radek
* consistent slice -> fixed conversion
Co-authored-by: kasey <kasey@users.noreply.github.com>
2022-03-28 21:01:55 +00:00
Raul Jordan
1af3c07ec5
Stop Checking Transition Configuration Post-Merge ( #10413 )
...
* no longer check transition config after the merge
* nil check
* better payload check
* stop checking post merge based on received blocks
* add proper test
* gaz
* fix test
* lint
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-28 17:14:02 +00:00
terence tsao
7279349ae2
Cleanup helpers in beacon-chain/core/blocks/payload.go
( #10435 )
...
* less fragile check for execution payload
* gaz
* gaz
* include field
* clean up helpers for checking merge status
* Update beacon-chain/core/blocks/payload.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
* Update payload.go
* Rename
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-03-28 15:25:49 +00:00
Potuz
2d60d04b57
Update LastValidatedCheckpoint on DB ( #10412 )
...
* Update LastValidatedCheckpoint on DB
* fix conflicts
2022-03-28 14:48:14 +00:00
Nishant Das
071f6de559
Fix Beacon API Responses For Bellatrix ( #10436 )
...
* fix bugs
* fix build
* simplify it
2022-03-26 07:34:29 +00:00
Preston Van Loon
b697463da9
wrapper: Remove deprecated fork specific wrapper methods for signed beacon blocks ( #10369 )
...
* Remove deprecated wrappers, lots of refactoring
* Revert proto/prysm/v1alpha1/validator.proto
* fix tests
* fix test
* fix conversion in e2e
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-25 23:00:44 +00:00
kasey
bfbf693660
Checkpoint Sync 3/5 - beacon node api client lib and prysmctl cli tool ( #10385 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-03-25 17:18:03 +00:00
Radosław Kapka
ed07f4bd77
Add execution_optimistic
field to API responses ( #10389 )
...
* protos
* grpc
* middleware
* event protos
* event backend
* event middleware
* fix tests
* use `IsOptimisticForRoot` with proper block instead of header
* better algorithm
* return proper error
* review
* optimistic return on bellatrix proposal
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-25 16:31:50 +00:00
terence tsao
1922416cac
Use correct pre state to call new payload ( #10416 )
...
* Update todo strings
* Go fmt
* add merge specific checks when receiving a block from gossip
* Fix beacon chain build
* Interop merge beacon state
* fix finding Transactions size
* Update go commit
* Merge union debugging (#9751 )
* changes test cases per ssz changes
* noisy commit, restoring pb field order codegen
* get rid of codegen garbage
* M2 works with Geth 🎉
* Fix bazel build //...
* restoring generated pb field ordering
* defensive nil check
* separate ExecutionPayload/Header from codegen
* tell bazel about this new file
* Merge: support terminal difficulty override (#9769 )
* Fix finding terminal block hash calculation
* Update mainnet_config.go
* Update beacon_block.pb.go
* Various fixes to pass all spec tests for Merge (#9777 )
* Proper upgrade altair to merge state
* Use uint64 for ttd
* Correctly upgrade to merge state + object mapping fixes
* Use proper receive block path for initial syncing
* Disable contract lookback
* Disable deposit contract lookback
* Go fmt
* Merge: switch from go bindings to raw rpc calls (#9803 )
* Disable genesis ETH1.0 chain header logging
* Update htrutils.go
* all gossip tests passing
* Remove gas validations
* Update penalty params for Merge
* Fix gossip and tx size limits for the merge part 1
* Remove extraneous p2p condition
* Add and use
* Add and use TBH_ACTIVATION_EPOCH
* Update WORKSPACE
* Update Kintsugi engine API (#9865 )
* Kintsugi ssz (#9867 )
* All spec tests pass
* Update spec test shas
* Update Kintsugi consensus implementations (#9872 )
* Remove secp256k1
* Remove unused merge genesis state gen tool
* Manually override nil transaction field. M2 works
* Fix bad hex conversion
* Change Gossip message size and Chunk SIze from 1 MB t0 10MB (#9860 )
* change gossip size and chunk size after merge
* change ssz to accomodate both changes
* gofmt config file
* add testcase for merge MsgId
* Update beacon-chain/p2p/message_id.go
Change MB to Mib in comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* change function name from altairMsgID to postAltairMsgID
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Sync with develop
* Merge branch 'develop' of github.com:prysmaticlabs/prysm into kintsugi
* Update state_trie.go
* Clean up conflicts
* Fix build
* Update config to devnet1
* Fix state merge
* Handle merge test case for update balance
* Fix build
* State pkg cleanup
* Fix a bug with loading mainnet state
* Fix transactions root
* Add v2 endpoint for merge blocks (#9802 )
* Add V2 blocks endpoint for merge blocks
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* go mod
* fix transactions
* Terence's comments
* add missing file
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Sync
* Go mod tidy
* change EP field names
* latest kintusgi execution api
* fix conflicts
* converting base fee to big endian format (#10018 )
* ReverseByteOrder function does not mess the input
* sync with develop
* use merge gossip sizes
* correct gossip sizes this time
* visibility
* clean ups
* Sync with develop, fix payload nil check bug
* Speed up syncing, hide cosmetic errors
* Sync with develop
* Clean up after sync
* Update generate_keys.go
* sync with develop
* Update mainnet_config.go
* Clean ups
* Sync optimistically candidate blocks (#10193 )
* Revert "Sync optimistically candidate blocks (#10193 )"
This reverts commit f99a0419ef1efc4bda0be77f22165b8fe4377c0d.
* Sync optimistically candidate blocks (#10193 )
* allow optimistic sync
* Fix merge transition block validation
* Update proposer.go
* Sync with develop
* delete deprecated client, update testnet flag
* Change optimistic logic (#10194 )
* Logs and err handling
* Fix build
* Clean ups
* Add back get payload
* c
* Done
* Rm uncommented
* Optimistic sync: prysm validator rpcs (#10200 )
* Logs to reproduce
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
* Fix marshal
* Update json_marshal_unmarshal.go
* Log
* string total diff
* str
* marshal un
* set string
* json
* gaz
* Comment out optimistic status
* remove kiln flag here (#10269 )
* Sync with devleop
* Sync with develop
* clean ups
* refactor engine calls
* Update process_block.go
* Fix deadlock, uncomment duty opt sync
* Update proposer_execution_payload.go
* Sync with develop
* Rm post state check
* Bypass eth1 data checks
* Update proposer_execution_payload.go
* Return early if ttd is not reached
* Sync with devleop
* Update process_block.go
* Update receive_block.go
* Update bzl
* Revert "Update receive_block.go"
This reverts commit 5b4a87c512325d9f26de4db7f941dcd7303cd0d8.
* Fix run time
* Update go.mod
* Fix AltairCompatible to account for future state version
* Update proposer_execution_payload.go
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
* Log bellatrix fields
* Update log.go
* Friendly fee recipient log
* Remove extra SetOptimisticToValid
* Fix base fee per gas
* Fix notifypayload headroot
* clean up with develop branch
* Sync with devleop
* Fix
* Fix
* fix
* Fix
* fix tests
* revert some changes
* fix tests
* Update optimistic_sync_test.go
* Simplify IsExecutionEnabledUsingHeader
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com>
Co-authored-by: Zahoor Mohamed <zahoor@zahoor.in>
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-25 16:03:15 +00:00
Potuz
a5dc40393d
Allow inner protoarray nodes to become VALID ( #10418 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-25 15:35:44 +00:00
Raul Jordan
b238235210
prevent run ( #10432 )
2022-03-25 11:08:38 -04:00
terence tsao
73a6a85069
Ensure finalized root can't be zeros ( #10422 )
2022-03-24 23:55:54 +00:00
terence tsao
ac4a30588f
Properly initialize replayer builder for rpc ( #10426 )
2022-03-24 23:12:47 +00:00
Raul Jordan
3579551f15
Use --http-web3provider for Execution Engine Connection ( #10307 )
...
* combine endpoints
* initialization in the start function instead
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-03-24 20:53:07 +00:00
kasey
acd7e62cfb
fix issue #10420 ( #10421 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-03-24 18:32:39 +00:00
Radosław Kapka
165f0667f0
Implement getDebugChainHeadsV2
API endpoint ( #10419 )
...
* protos
* grpc
* middleware
* update comments
2022-03-24 13:08:40 +00:00
kasey
49826ebe28
Checkpoint Sync 2/5 - API support for retrieving weak subjectivity data ( #10384 )
...
also refactor replayer code for better reuse:
- separately expose stategen's canonical block func
- CanonicalHistory in ws api, NewCanonicalBuilder
- refactor CanonicalHistory into a ReplayerBuilder
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-03-23 22:54:07 +00:00
terence tsao
3ad6abd9c0
Add tracings for engine api methods ( #10407 )
...
* Add engine call tracings
* Update BUILD.bazel
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-23 22:17:09 +00:00
terence tsao
c61f54176d
Ignore attestations voting for the wrong finalized checkpoint ( #10295 )
...
* Ignore attestations voting for the wrong finalized checkpoint
* aggregate
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-23 21:48:26 +00:00
Potuz
0165351db3
Setup Optimistic sync when starting the service ( #10397 )
...
* Load Last Validated Checkpoint at service startup and initialize
Forkchoice
* fix spectests
* Update service_test.go
* wip
* Fix blockchain tests
* remove unnecessary summary saves
* Terence's suggestion
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-23 21:11:36 +00:00
Potuz
8f49167117
return invalid roots from SetOptimisticToInvalid ( #10403 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-23 15:55:05 -03:00
Nishant Das
b4c27f64de
Add Method To Modify Participation Bits ( #10409 )
...
* fix up all tests
* Update beacon-chain/state/v2/BUILD.bazel
* add tests
2022-03-23 23:18:02 +08:00
Preston Van Loon
e4ac5e74b7
RPC: Deduplicate block production logic ( #10368 )
...
* RPC: Deduplicate block production logic
* Surface error to caller
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-03-23 12:51:20 +00:00
Nishant Das
0b9b635646
Block Processing And State Transition Improvments ( #10408 )
...
* cleanup
* clean up more
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-03-23 11:57:48 +00:00
Leo Lara
c8c1d04c07
Complete coverage for in beacon chain state for getters checkpoint ( #10373 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-03-23 09:58:45 +00:00
Potuz
5550334956
set optimistic status on notify payload ( #10398 )
...
* set optimistic status on notify payload
* pre-execution blocks are never optimistic
* add unit test
* add test for lengths
* Update optimistic_sync_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-22 03:35:02 +00:00
Radosław Kapka
c055642f79
Return correct header root from API calls ( #10401 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-22 01:56:44 +00:00
terence tsao
c7d64c03ac
Insert payload hash to forkchoice store nodes ( #10400 )
...
* Insert payload hash to forkchoice store nodes
* Fix tests
* Update new_slot_test.go
* Update beacon-chain/blockchain/process_block.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-03-22 01:20:42 +00:00
james-prysm
131fb43ba7
Fee recipient flag rename for beacon node ( #10402 )
...
* initial commit
* fixing comment
* fixing bazel
2022-03-21 21:25:33 +00:00
kasey
cf0bd633f0
Checkpoint Sync 1/5 - fork/version detection and unmarshaling support ( #10380 )
...
* fork/version detection and unmarshaling support
* Update config/params/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update proto/detect/configfork.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* PR feedback
* move ssz initialization into the detect package
* clarify comment
* VersionForEpoch is much simpler/clearer in reverse
* simpler VersionForEpoch; build AllConfigs in init
* use fieldparams for Version
* Update proto/detect/configfork_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* remove custom ForkName type, use runtime/version
* pr cleanup
* random fix from bad gh ui suggestion; privatize
* privatize fieldSpec methods; + unit tests
* Update proto/detect/configfork.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
* fix bad github ui suggestion
* ensure unique versions for simpler config match
* fmt & adding unit test for ByState()
* table-driven unit test for ByState
* TestUnmarshalState
* OrderedSchedule -> network/forks per PR feedback
* goimports
* lint fixes
* move proto/detect -> ssz/encoding/detect
* use typeUndefined in String
* backport config tests from e2e PR
* fix config parity test; make debugging it easier
* lint
* fix fork schedule initialization
* cleanup
* fix build
* fix big ole derp
* anything for you, deep source
* goimportsss
* InitializeForkSchedule in LoadChainConfigFile
* PR feedback
Co-authored-by: kasey <kasey@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-03-21 19:43:41 +00:00
Potuz
94f80bd208
Call FCU on update head after process attestation ( #10394 )
...
* Call FCU on update head after process attestation
* add test
* fix test
* terence review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-21 01:50:08 +00:00
terence tsao
c6bfefa0bc
Add notifyNewPayload to onBlockBatch ( #10392 )
2022-03-18 09:36:46 -07:00
Radosław Kapka
3446eaa5f2
Add missing tests to state retrieval ( #10390 )
2022-03-17 18:40:07 +00:00
terence tsao
193866c731
Add fcu to batch blk processing ( #10371 )
2022-03-17 07:35:50 -07:00
terence tsao
8449d24ed0
Fix BaseFeePerGas
endianess ( #10376 )
...
* Fix base fee endianess and add more test entropys
* Update json_marshal_unmarshal_test.go
* Update setters_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-16 22:12:08 +00:00
Radosław Kapka
b92b01f379
API middleware support for bellatrix in produceBlockV2
( #10374 )
2022-03-16 21:44:15 +00:00
terence tsao
bcd180ee4d
Remove deprecated set_optimistic_to_valid
calls ( #10370 )
2022-03-16 21:14:13 +00:00
Raul Jordan
5f10e51a49
Add API Middleware Support for Fee Recipients Endpoint ( #10377 )
...
* add in success log
* add in info log
* uint64 for schema
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-16 20:02:26 +00:00
terence tsao
c4f03868ce
Update default fee warning ( #10378 )
...
* Add fcu to batch blk processing
* Log error only if is burned
* Revert some changes
* Burn address
2022-03-16 19:26:51 +00:00
james-prysm
d55c0d74dd
PrepareBeaconProposer API ( #10367 )
...
* intial commit implementing prepare beacon proposal
* removing files accidently checked in by goland
* removing files accidently checked in by goland
* Delete BUILD 2
* Delete armeabi_cc_toolchain_config 2.bzl
* Delete builtin_include_directory_paths 2
* Delete cc_toolchain_config 2.bzl
* Delete BUILD 2.bazel
* Delete cc_wrapper 2.sh
* Delete module 2.modulemap
* Delete BUILD 2
* Delete BUILD 2
* Delete WORKSPACE 2
* Delete cc_toolchain_config_linux_arm64 2.bzl
* Delete cc_toolchain_config_osx 2.bzl
* Delete cc_toolchain_config_windows 2.bzl
* Delete 0258716f94e00f9df0da869fd97f9e0d0c6ac83eb528677d918f0ac9be5f4b8d 2
* Delete test-unmarshal-bad 2.json
* Delete test-unmarshal-good 2.json
* adding simple unit tests
* removing duplicate imports
* adding bazel changes
* adding validation and switched to table driven tests
* updating based on comments
* adding to test retrieve from db
* fixing bazel
2022-03-16 11:17:41 -04:00
Potuz
807b71244b
Add database methods for optimistic sync ( #10357 )
...
* Add database methods for optimistic sync
* Add epoch comparison
* add extra epoch comparison
* Summary instead of block
* fix tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-15 20:52:59 +00:00
Potuz
2744eba391
Update optimisticCandidateBlock to specs version ( #10355 )
...
* Update optimisticCandidateBlock to specs version
* fix double import
* Change error message
2022-03-15 19:12:52 +00:00
Leo Lara
5507558678
Some improvements for the state package testing ( #10316 )
...
* Refactor to unify state getters block tests
* Add reference tests to Altair and Bellatrix versions ofthe state
* Fix function naming convetion
* Add state-native/v2/references_test.go and state-native/v3/references_test.go
* Gazelle run
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-03-15 18:32:09 +00:00
terence tsao
8cecd4e8bf
Log bellatrix fields ( #10365 )
...
* Log bellatrix fields
* Update log.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-15 14:02:39 +00:00
terence tsao
69a9388515
Spec test v1.1.10 ( #10298 )
...
* spectest
* uncomment shas
* Fc spec test service shouldn't not spawn attestation routine
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-03-15 13:17:51 +00:00
terence tsao
bd308b6d73
Update default fee recipient
error log ( #10366 )
2022-03-14 20:35:56 -07:00
Radosław Kapka
9abea200a5
Add Bellatrix version to ProduceBlock
API ( #10361 )
...
* Add Bellatrix version to `ProduceBlock` API
* fix errors
* fix test
* Revert "Auxiliary commit to revert individual files from 8cc6fc9ca3b6ddb67aeafeaddc2a2e1ca6610ded"
This reverts commit 6358ee92d899e8ee6587ad5503cebb40ac92add4.
# Conflicts:
# beacon-chain/blockchain/optimistic_sync_test.go
# beacon-chain/blockchain/pow_block_test.go
# beacon-chain/blockchain/testing/mock_engine.go
* use proper mock
* bzl
* fix build file
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-14 23:08:01 +00:00
terence tsao
730678bf21
Handle pre state Altair with valid payload ( #10364 )
...
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
2022-03-14 22:40:08 +00:00
kasey
0b1a777d62
ran gofmt @ v1.17, these are the resulting changes ( #10362 )
...
* ran gofmt @ v1.17, these are the resulting changes
* fix some flaky tests that are tripping up this PR
* gofmt
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-03-14 15:58:13 -05:00
terence tsao
5461c5b84f
Insert stored fee recipient for ForkchoiceUpdated
call ( #10349 )
...
* Add default
* Add and use fee recipient in db
* Update BUILD.bazel
* Feedback
* Add basic addr check
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-14 18:44:40 +00:00
Potuz
6cc88e6454
enable optimistic sync ( #10358 )
...
* enable optimistic sync
* revert computation of HTR in notifyNewPayload
* fix tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-14 17:25:40 +00:00
terence tsao
65cea17268
Return early if ttd is not reached ( #10359 )
2022-03-14 16:38:05 +00:00
Radosław Kapka
75bb25d515
Bellatrix publish block - API Middleware fixes ( #10348 )
...
* Bellatrix publish block - API Middleware fixes
* update field name
* correct docs
2022-03-14 13:36:46 +00:00
terence tsao
1e845bc276
Fix sync committee assignment for Bellatrix ( #10356 )
...
* Fix AltairCompatible to account for future state version
* Tests
* gaz
* More tests
* Update comments
* Rename to HigherThanAltairVersionAndEpoch
* HigherEqualThanAltairVersionAndEpoch
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-03-14 01:00:33 +00:00
Potuz
3f1e3cf82f
remove optimistic control flag ( #10340 )
...
* remove optimistic control flag
* Rename
* More
* More
* redundant return
* fix conflict
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-12 17:32:04 +00:00
terence tsao
60003c481b
Add unlock to IsOptimistic
returns ( #10341 )
...
* Add unlock to returns
* add regression test
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-11 10:36:47 +00:00
Preston Van Loon
c1197d7881
Add static analysis for unsafe uint casting ( #10318 )
...
* Add static analysis for unsafe uint casting
* Fix violations of uintcast
* go mod tidy
* Add exclusion to nogo for darwin build
* Add test for math.Int
* Move some things to const so they are assured not to exceed int64
* Self review
* lint
* fix tests
* fix test
* Add init check for non 64 bit OS
* Move new deps from WORKSPACE to deps.bzl
* fix bazel build for go analysis runs
* Update BUILD.bazel
Remove TODO
* add math.AddInt method
* Add new test casts
* Add case where builtin functions and declared functions are covered
* Fix new findings
* cleanup
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-03-11 09:34:30 +00:00
Nishant Das
693cc79cc9
Minor Cleanup from #10255 ( #10337 )
...
* minor cleanup
* kasey's review
* kasey's review
2022-03-11 07:34:15 +00:00
terence tsao
12080727ea
Save and retrieve fee recipients for db ( #10336 )
...
* Can save fee recipients in db
* Update BUILD.bazel
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-03-10 15:05:10 +00:00
Potuz
a731b8c0bc
Boost proposer later ( #10338 )
...
* Boost Proposer after inserting block
* add regression test
2022-03-10 13:13:06 +00:00
Raul Jordan
f6eed74500
PrepareBeaconProposer Protobuf Schema ( #10332 )
...
* prepare v1 protos
* add in protos
* prepare beacon proposer
* stubs
* builds
* gaz
* build
* rem
* ssz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-09 21:40:26 +00:00
terence tsao
7ce712bb5e
Kiln run time changes ( #10321 )
...
* First take
* Update proposer_execution_payload.go
* Update optimistic_sync_test.go
* Add tests
* Update proposer_execution_payload.go
* Fix tests
* Add deprecation
* Fix bad merge
* New test
* Update beacon-chain/core/blocks/payload.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Proposer test can get and compare payload
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-03-09 20:26:23 +00:00
kasey
17a43c1158
Retrieving state by slot to always apply canonical block at slot, when available ( #10255 )
...
* new stategen.StateReplayer/ReplayerBuilder to give more fine-grained
control of replaying state+block history
* all rpc/api methods updated to use the new interface, return post-state
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-09 13:33:18 -06:00
Radosław Kapka
77b8b13eff
Bellatrix API support for block endpoints ( #10324 )
...
* refactor GetBlockV2
* Add bellatrix to GetBlockSSZV2
* Add bellatrix to ListBlockAttestations
* Add bellatrix to SubmitBlock
* gzl
* return error from SubmitBlock
* return nil
* Better code flow when getting blocks
* remove tautology
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-09 17:18:52 +00:00
Potuz
b59484b285
Export SetOptimisticToInvalid ( #10330 )
...
* temp
* export remove invalid blocks
2022-03-09 13:50:57 -03:00
kmax.eth
1619d880d4
fix TestSyncHandlers_WaitTillSynced ( #10328 )
...
* fix TestLockUnlock_CleansUnused
* fix TestSyncHandlers_WaitTillSynced
The test is failing silently (while go test showing 'PASS') due to panic caused by feed type mismatch. As a result, intended testing logic is not exercised at all. There are a couuple fixes here:
1. fix the feed event type to be pointer
2. add seendCache to avoid nil pointer panic
3. fill block in beaconDB so validateBeaconBlockPubSub gets short cut
4. replace time.Sleep() with deterministic channel waiting
* handle cancel func
2022-03-09 05:42:03 +00:00
Potuz
57a323f083
Forkchoice featureflag ( #10299 )
...
* Compiling main beacon-chain binary
* Add feature flag
* passing protoarray tests
* passing nodetree tests
* passing blockchain package tests
* passing rpc tests
* go fmt
* re-export forkchoice store from blockchain package
* remove duplicated import
* remove unused var
* add nodetree rpc method
* remove slot from IsOptimisticForRoot
* release lock in IsOptimistic
* change package name
* Revert "change package name"
This reverts commit 679112f9ef795922c631e7823dbdfb3746838f3c.
* rename package
* Update doc
* Fix span names
* Terence + Raul review
* remove go:build flags
* add errors dep
* spec tests
* fix call to IsOptimisticForRoot
* fix test
* Fix conflict
* change name of function
* remove ctx from store.head
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-03-09 03:05:51 +00:00
terence tsao
cde58f6924
Rest of kiln changes ( #10319 )
...
* Update configs
* gazelle
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-07 19:47:08 +00:00
Preston Van Loon
78fe712e53
Validator: deduplicate fork logic for block proposals ( #10297 )
...
* Deduplicate block proposals
* fix tests, more dedup of tests
* Add godoc to BuildSignedBeaconBlock.
* Rename SignRequest_Object => SignRequestObject
* Fix error messages
* Add tests for new methods
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-07 19:18:54 +00:00
terence tsao
40e5a5d796
RPC: add prepare execution payload ( #10311 )
...
* Add prepare execution payload
* Add prepare execution payload
* Add prepare execution payload
* Update client.go
* Update proposer_execution_payload.go
* Update proposer_execution_payload_test.go
* Handle post bellatrix finalied blk
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_execution_payload.go
* Use BeaconBlockIsNil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-03-07 18:43:20 +00:00
Radosław Kapka
87507cbfe2
Support Bellatrix state in getStateV2
standard API ( #10314 )
2022-03-07 17:56:54 +01:00
Mohamed Zahoor
b516cfd998
cherry picked PR of #10233 ( #10301 )
...
* fix merge conflicts
* fix more merge conflicts
* fix fmt
* remove unnecessary cfg
* setting bad block if the bellatrix validation fails
* added an edge condition
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-07 13:19:07 +00:00
Mohamed Zahoor
a103dd91c0
cherry picked PR for #10274 ( #10300 )
...
* ignore topic messages (except block topic) during optimistic sync
* address review comments
* nit pick fix
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-03-06 08:09:12 +00:00
terence tsao
74fe2cc8d0
Spawn attestation routine at a better place ( #10303 )
...
* Spawn attestation routine at a better place
* Revert
* Update service.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-04 22:25:04 +00:00
Nishant Das
a4bbaac262
Add Better Error Logs for Context Deadlines ( #10310 )
...
* better log here too
* remove period
* Update beacon-chain/p2p/pubsub.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-03-04 16:21:19 +00:00
Nishant Das
1af11885ee
Remove Support for 2d-list Hashers ( #10290 )
...
* add changes
* fix logic bug
* fix
* potuz's review
* Update beacon-chain/state/stateutil/eth1_root.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-03-04 15:19:07 +00:00
Nishant Das
0b559afe30
Better Error Log In Context Deadlines ( #10309 )
...
* add better error log
* radek's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-04 09:54:06 +00:00
terence tsao
69618d157a
Bellatrix validator terminal block helpers ( #10305 )
...
* Add get transition block
* Update proposer_execution_payload.go
2022-03-03 15:00:11 -05:00
Nishant Das
fa750650ed
Disable Vectorized HTR from Our Dev Flag ( #10304 )
2022-03-03 03:49:26 +00:00
terence tsao
7303985232
Validator RPC: add optimistic status check ( #10291 )
...
* Add optimistic status check
* Simplify a bit more
* Update status_test.go
* Add non opt tests
* Update aggregator_test.go
* More tests
* Preston's feedback
2022-03-03 00:16:34 +00:00
Raul Jordan
958dd9d783
Check Engine API Transition Configuration in Background ( #10250 )
...
* transition proto
* gen pb
* builds
* impl transition config
* begin tests
* transition config messed up
* amend proto
* use str
* passing
* gaz
* config
* client test
* pb
* set to 0
* rem log
* gaz
* check transition config
* check config differences
* check transition config in background
* gaz
* pass
* redundant
* fix up error handling and healthz
* simplify status
* gazelle
* build
* err config check
* test
* gaz
* Fix run time
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-01 21:38:51 +00:00
terence tsao
d64f6cb7a8
Add engine methods to block processing ( #10285 )
...
* Add notify newPayload and forkchoiceUpdate
* Tests
* Raul's feedback
* Update optimistic_sync.go
* Simplify
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-01 16:43:06 +00:00
terence tsao
a9a75e0004
Release lock before return validatedTips
( #10289 )
...
* Release lock before return
* add test
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-03-01 15:36:47 +00:00
Nishant Das
339540274b
Integration of Vectorized Sha256 In Prysm ( #10166 )
...
* add changes
* fix for vectorize
* fix bug
* add new bench
* use new algorithms
* add latest updates
* save progress
* hack even more
* add more changes
* change library
* go mod
* fix deps
* fix dumb bug
* add flag and remove redundant code
* clean up better
* remove those ones
* clean up benches
* clean up benches
* cleanup
* gaz
* revert change
* potuz's review
* potuz's review
* potuz's review
* gaz
* potuz's review
* remove cyclical import
* revert ide changes
* potuz's review
* return
2022-02-28 21:56:12 +08:00
Raul Jordan
12ba8f3645
Renaming Random in ExecutionPayloads to PrevRandao ( #10283 )
...
* rename proto
* p header
* regen
* regen ssz
* fix randao
* random name changes
* bazel builds
* bt
* incorrect prev randao
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-26 03:47:16 +00:00
Raul Jordan
f3a7f399c0
Engine API Client Authentication for the Merge via HTTP ( #10236 )
...
* round tripper with claims
* auth
* edit auth
* test out jwt
* passing
* jwt flag
* comment
* passing
* commentary
* fix up jwt parsing
* gaz
* update jwt libs
* tidy
* gaz
* lint
* tidy up
* comment too long
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-02-25 19:08:43 +00:00
terence tsao
2fb4ddcbe7
Engine API: add payload status handling and tests ( #10282 )
...
* Add status handling and tests
* Update client.go
* Fmt
* Update mock_engine_test.go
* Update client_test.go
2022-02-24 19:35:01 +00:00
Radosław Kapka
1c2e463a30
--api-timeout
flag (#10260 )
...
* `--api-timeout` flag
* simplify code
* review feedback
* better error handling
* better docs
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-24 18:01:37 +00:00
terence tsao
02a088d93c
Add validate_merge_block
( #10273 )
...
* Add
* Update pow_block.go
* Update BUILD.bazel
* Update beacon-chain/blockchain/pow_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* feedbacks
* Feedbacks
* Fmt
* Update BUILD.bazel
* Update BUILD.bazel
* Update pow_block_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-23 22:41:11 +00:00
terence tsao
8cadb2ac6f
Update IsOptimistic
to always false ( #10276 )
...
* Update to always false
* Use epoch
* Update chain_info_test.go
* Update chain_info_test.go
2022-02-23 20:16:45 +00:00
terence tsao
7719356b69
Add opt sync bool to IsOptimistic
( #10270 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-22 16:46:42 +00:00
Raul Jordan
75b9bdba7c
Small Comment Fix in Exchanging Transition Config ( #10271 )
2022-02-22 16:16:02 +00:00
Nishant Das
525c818672
Remove SSZ Cache ( #10256 )
...
* remove ssz cache
* gaz
* lint
* analyze more
* fix
2022-02-22 17:27:51 +08:00
terence tsao
a55fdf8949
Use type string for total_difficulty
( #10265 )
...
* Use string for difficulty
* fix go
* fix test
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: Potuz <potuz@prysmaticlabs.com>
2022-02-21 14:03:12 +00:00
Preston Van Loon
c5189a6862
Deduplicate TestProposer_ProposeBlock_OK ( #10266 )
...
* Deduplicate tests for TestProposer_ProposeBlock
* remove erroneous save of block
* ensure block root is returned
2022-02-19 22:52:03 +00:00
Nishant Das
ced24892a5
Cleanup Powchain Service ( #10259 )
...
* add cleanup
* gaz
* Fix test build
2022-02-18 14:13:31 +00:00
Raul Jordan
0f58c9a925
Exchange Transition Configuration for Engine API ( #10248 )
...
* transition proto
* gen pb
* builds
* impl transition config
* begin tests
* transition config messed up
* amend proto
* use str
* passing
* gaz
* config
* client test
* pb
* set to 0
* rem log
* gaz
2022-02-16 00:56:23 +00:00
terence tsao
cc637bad4a
Fix ForkchoiceUpdatedResponse
json tag ( #10243 )
2022-02-15 15:49:36 +00:00
Potuz
f5719f8c8e
Fix updateCanonicalNodes ( #10241 )
...
* Fix updateCanonicalNodes
* fix logic
* terence's review
2022-02-14 21:30:26 +00:00
Radosław Kapka
c5c039fd6b
Unify GenesisValidator(s)Root
throughout the codebase ( #10230 )
...
* Unify `GenesisValidator(s)Root` throughout the codebase
* comments and literals
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-14 13:34:38 +00:00
Radosław Kapka
4d9947543f
Native state feature flag ( #10232 )
...
* add flag
* working version
* rename flag
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-14 12:33:02 +00:00
Michael Neuder
7370c42bae
Adding nil error check to connection status for ETH1 nodes ( #10186 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-14 10:21:45 +00:00
Radosław Kapka
3c76cc3af5
Return state interface from native state constructors ( #10208 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-14 17:51:22 +08:00
terence tsao
28af5bc601
Fix eth_getBlockByHash
call ( #10239 )
...
* Update client.go
* Update client_test.go
2022-02-13 16:33:11 +00:00
terence tsao
c9f299b50a
Clean up fork choice ( #10226 )
...
* Clean up fork choice
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/store_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/store_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update store.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-02-12 03:33:46 +00:00
terence tsao
9dfb385160
Pad fields to correct length ( #10237 )
...
* Pad fields to correct length
* Use constants
* builds
* Fix test
* Update BUILD.bazel
* tests
* passing
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-12 01:58:09 +00:00
Potuz
4b3a723166
Do not stop on error loading synced tips ( #10235 )
...
* Do not stop on error loading synced tips
* Terence's review
* Update beacon-chain/blockchain/optimistic_sync.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-11 21:46:53 +00:00
terence tsao
50f253619e
Fix engine client method names ( #10234 )
...
* Fix engine client method names
* Typo
2022-02-11 16:12:11 -05:00
Leo Lara
1835f54197
Refactor for DRY state getters_validator_test and getters_test ( #10117 )
...
* Refactor for DRY state getters_validator_test and getters_test
* Add BUILD.bazel to beacon-chain/state/testing
* Handle type assertion error in beacon-chain/state tests
* Fix with gazelle
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-02-11 14:48:29 +08:00
terence tsao
26a2311c82
Clean up outdated bellatrix code ( #10225 )
...
* Rm outdated merge code
* Update config_test.go
* Native
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-11 04:40:12 +00:00
Potuz
9f419bee7d
Remove unnecessary reassignement ( #10224 )
2022-02-10 23:51:20 -03:00
james-prysm
d04eaf8fa0
Better DB Logging ( #10215 )
...
* initial commit
* initial commit
* reverting change
* reverting change
* Update beacon-chain/node/node.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/db/kv/kv.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 23:15:01 +00:00
Potuz
82ceb51548
Load Synced Tips when starting from Finalized State ( #10196 )
...
* Load Synced Tips when starting from Finalized State
* Terence's review #1
* Fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 22:18:42 +00:00
Potuz
6a2ef13b87
add metrics for synced tips ( #10221 )
...
* add metrics for synced tips
* Update beacon-chain/forkchoice/protoarray/metrics.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 18:48:46 +00:00
Potuz
72a2dd004b
Fix integer overflow ( #10222 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-10 15:20:36 -03:00
Raul Jordan
1a0e16a48b
Initialize the Engine API Client in the Beacon Chain's Powchain Service ( #10217 )
...
* define engine caller
* gaz
* Update cmd/beacon-chain/flags/base.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 16:46:31 +00:00
Nishant Das
bff5c1e1a9
Handle Bellatrix Fork Epochs Correctly ( #10219 )
...
* handle it properly
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 16:15:55 +00:00
Nishant Das
3f5ce0cdca
Handle a ZeroHash as our Eth1 Genesis Block Root ( #10218 )
2022-02-10 11:28:57 +00:00
Raul Jordan
7b5a821c81
Implement Execution Engine Client ( #10185 )
...
* add in fixtures
* handle real fixtures
* marshaling issues
* ensure error handling works
* begin http client test
* custom type marshaling
* gaz
* custom type
* marshalers
* builds
* builds
* add to build file
* regen
* only root types
* bytes hash
* regen
* bytes hash
* regen
* regen
* alias magic
* revert proto
* more alias magic
* revert build files
* regen
* define marshal methods
* tests passing
* hexbytes
* rem
* rem
* comment
* gaz
* data
* fix conf
* http tests
* sync
* client tests passing
* deepsource
* gaz
* item
* exec block by hash
* begin tests
* http tests passing
* payload id bytes
* proper json encode decode for payload id
* gaz
* proper marshal
* merge engine client
* use big ints
* passes
* confirmed passing
* add in functional methods
* deepsource
* pb
* Update beacon-chain/powchain/engine-api-client/v1/client_test.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* latest
* tests passing again
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 20:54:56 +00:00
Mohamed Zahoor
f89265f2f7
Adding a new method in HeaderFetcher ( #10212 )
...
* Is optimisyic for root
* add the function in mock chainservice also
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 20:21:15 +00:00
terence tsao
a82fd7bf68
Fix merge transition configs ( #10206 )
...
* Add proper merge configs
* Switch to bytes
* Use string
* Update mainnet_config.go
* Rm unused
* Fix test
* Update config_test.go
* Update beacon-chain/blockchain/pow_block.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update pow_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>
2022-02-09 18:15:29 +00:00
Potuz
5f8b01ccda
Make UpdateSyncedTips safe for context cancellation ( #10174 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 14:54:27 +00:00
Potuz
18ef760ee5
Add DeleteBlock() ( #10203 )
...
* Add DeleteBlock()
* Raul review #1
* Update comments
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-08 23:26:26 +00:00
Radosław Kapka
8455656597
Use beacon state interfaces instead of concrete structs ( #10195 )
...
* return interface from testing/util
* remove usages of v1
* return interface from InitializeFromProto
* return interface from InitializeFromProto
* fix test
* fix interface visibility
* more fixes
* use InitializeFromProtoUnsafe in testing/util
* return early error from mock
* v2
* fix tests
* remove unnecessary assertion
* use struct in nil state test
* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"
This reverts commit 7d70238a301209f6dbfc8ff1d81b16e33b0bd67d.
* use struct in sync committee test
* v3
* use InitializeFromProtoUnsafe in mock
* use version information
* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"
This reverts commit 5d5e6f2884d21caec7530c16ad2a0d0d27c44aa1.
* revert changes to ClearPreGenesisData
* fix build error
* remove error from PreGenesisState
* bzl
2022-02-08 09:30:06 +00:00
terence tsao
c538a6c068
Add propose bellatrix block ( #10189 )
...
* Add propose bellatrix block
* Update BUILD.bazel
2022-02-08 01:29:11 +00:00
Potuz
4906a0e6de
add isOptimisticCandidateBlock and IsExecutionBlock ( #10191 )
...
* add isOptimisticCandidateBlock and IsExecutionBlock
* remove check
* fix tests
* Align with spec, reuse helper `ExecutionBlock`
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-07 01:26:20 +00:00
terence tsao
168e06e607
Save sync tips to DB ( #10171 )
...
* Save sync tips to DB
* Fix build
* Update process_block_test.go
* Copy map
* Revert back to nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-06 18:00:47 +00:00
Potuz
cf18d5dd42
Add SafeSlotsToImportOptimistically beacon configuration flag ( #10190 )
...
* Add SafeSlotsToImportOptimistically beacon configuration flag
* fix e2e
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-06 03:14:56 +00:00
Potuz
aeb6940935
Prune synced tips ( #10143 )
...
* Prune synced tips
* Terence's minor cleanups
* Update optimistic_sync.go
* go fmt
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-05 20:24:02 +00:00
Potuz
4020a603b6
Invalid synced tips ( #10154 )
...
* add synced_tips structure
* create optimisticStore type
* Add UpdateSyncedTips
* use context
* update comment
* use better context cancellation
* reinsert removed error from different PR
* Minor clean ups
* remove invalid nodes from forkchoice
* Update beacon-chain/forkchoice/protoarray/optimistic_sync.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Add check for tip status
* Terence's minor cleanups
* Potus' feedbacks
* Update optimistic_sync.go
* Add erorr
* Synced
* update weights
* Add context error check
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-03 22:57:15 +00:00
terence tsao
3a5cfab5f2
Add IsOptimistic
chain info getter ( #10184 )
...
* Add chain info getter
* Interface
* Test
* Update mock.go
* Go fmt
* Update beacon-chain/blockchain/testing/mock.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-02-03 21:30:07 +00:00
terence tsao
c8748260fd
Implement is_valid_terminal_pow_block
( #10172 )
...
* add validator terminal block difficulties
* Fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-03 05:28:23 +00:00
Raul Jordan
55ce1ccc33
Engine API Client Skeleton and Configuration ( #10177 )
2022-02-02 19:46:27 -08:00
Nishant Das
2b0f74904e
Multiclient E2E With Lighthouse ( #10020 )
...
* save work
* current progress
* fix it more
* save progress
* fixes so far
* add signature test
* fix up changes so far
* change to latest
* update lighthouse version
* fix build
* fix again
* do one
* clean up
* fix build
* fix it
* fix test
* change tag
* remove e2e
* Update config/params/testnet_e2e_config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* update
* Update sha
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2022-02-02 19:13:52 +00:00
Nishant Das
5cf976e492
Merge State Cleanup ( #10011 )
...
* state related cleanup
* remove unused imports
* radek's review
* fix for native state
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-02 17:51:24 +00:00
terence tsao
fb92d518f9
Remove merge setting cli flags ( #10162 )
...
* Rm merge client setting
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-02 15:33:48 +00:00
Nishant Das
1774188a17
Fix Certain Edge Cases With the Analyzer ( #10164 )
...
* fix analyzer
* fix other deadlock
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-02-02 14:11:31 +00:00
Radosław Kapka
ea31f096b5
Native beacon state: fieldtrie
package ( #10146 )
...
* Native beacon state: `fieldtrie` package
* reuse ProofFromMerkleLayers
* more reuse + fixes
* more reuse + fixes
* move validateIndices to helpers
* remove TestAppendBeyondIndicesLimit
* do not duplicate package
* correct errors
* handle32ByteArrays function
* type switch
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-02-02 12:18:06 +00:00
Nishant Das
ea1698c1b3
Make Next Slot Cache Default ( #10110 )
...
* deprecate all of it
* handle empty slice
* fix bad bug
* fix it
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-02 11:40:46 +00:00
Raul Jordan
4322185d80
Use Execution Payload Defined in Engine V1 Namespace ( #10170 )
...
* payload use
* incl
* cloners
* regen pb
* gen ssz
* use proper payload
* broken imports
* build
* state
* builds
* proper engine
* builds
* fmt
* baz
* ssz
* baz
* fmt
* regen ssz
* receipts root
* regen pb
* ssz
* receipts root
* ci lint
* proto
* test pkg
* bazel
2022-02-02 03:30:35 +00:00
Mohamed Zahoor
b27d535ade
Storing synced tips in DB ( #10136 )
...
* DB support for storing synced tips
* gazel fix
* changed the synced_tips to map
* import formatting
* added function docs
* fix potuz comments
* fix prestons comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-02-01 16:17:28 +00:00
Nishant Das
e83c9d5862
Revert "Replace a Few IntFlags with Uint64Flags ( #9959 )" ( #10163 )
...
* Revert "Replace a Few IntFlags with Uint64Flags (#9959 )"
This reverts commit 790bf03123
.
* fix
* fix
2022-02-01 08:51:17 +00:00
Radosław Kapka
6406afc6cf
Native beacon state: v3 ( #10139 )
...
* Native beacon state: v3
* nogo_config
* remove duplicated bazel rule
* gzl
* fix unnecessary assignment
* review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-02-01 08:32:39 +08:00
terence tsao
8a01d412f5
Implement fork choice spec tests ( #10159 )
...
* starting
* Reimplement store
* begin on proposer boost
* implement fork choice proposer boost algorithm
* boosting
* gaz
* add mutexes and previous root
* comment on compute proposer boost
* safe
* rem todo
* reset and add tests
* unit test for proposer boost score
* boost works
* Can process block
* Basic test case passing
* ex ante
* test
* propoer test
* More progresses
* More fixes
* rm unused pieces
* Refactor, add phase 0
* locks
* vanilla ex-ante attack
* test similar to spec test
* works works works
* boost test working for num votes > proposer boost weight
* commentary fixes
* rem unused
* comments
* Proposer boost use store time
* Reset proposer root
* debugging
* passing
* Rm unused visibility imports
* Move update head to better place
* Fix deepsrc complains
* Fix more complains
* Raul's feedback
* Use correct byte lengths
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-01-31 19:03:48 +00:00
james-prysm
aed6e13498
Web3Signer: CLI implementation ( #10056 )
...
* initial commit for cli integration of web3signer
* resolving conflicts and execution
* remove aggregation slot from proto
* rem aggregation slot
* define a sync message block root struct
* fix sync message name
* sync message block root struct
* amend where sync committee block root is used
* altered switch statement to return correct json request by type
* fixing fork data import, types, and unit tests
* reverting unwanted changes
* reverting more unwanted changes
* fixing deepsource issues
* fixing formatting
* more fixes for deepsource and code clean up
* only want to fetch once for fetch validating public keys
* adding more comments
* new unit tests for requests and fixing a mapper issue
* Update validator/client/validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/accounts/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* adjusting comment
* adjusting comment
* fixing import organization
* including more unit tests
* adding new cli edit
* adding in checks for wallet initialize
* adding web3signer flags to main.go
* some how resolved files did not save correctly
* adding in check to make sure web flag only works with types imported and derived
* Update validator/client/sync_committee.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/client/aggregate.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/accounts/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/validator/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/validator/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/validator/main.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/validator/flags/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/validator/flags/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/validator/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/validator/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* reverting changes that accidently got checked in
* reverting
* reverting
* continuing to revert unintenteded changes
* reverting
* removing more unneeded changes
* addressing review comment
* initial refactor
* adding in more clarifying comments
* fixing mock
* resolving desource issues
* addressing gosec scan for helper go file
* addressing gosec
* trying to fix bazel build
* removal of interface to fix build
* fixing maligned struct
* addressing deepsource
* fixing deepsource
* addressing efficiency of type checking
* fixing bazel test failure
* fixing go linter errors
* gaz
* web changes
* add w3signer
* new kind
* proper use
* align
* adding prysm validator flags to help flags list
* addressing root comment
* ci lint
* fixing standardapi tests
* fixing accounts_test after removal of keymanager from rpc server
* fixing more unit tests
* Update cmd/validator/flags/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update cmd/validator/flags/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/client/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/client/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* addressing missed err checks
* fixing mock tests
* fixing gofmt
* unskipping minimal e2e test and removing related TODOs
* Update testing/endtoend/components/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update testing/endtoend/components/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* adding some error wrapers to clarify failure point
* fixing bazel build with new error checks
* taking preston's advice to make test fail faster to understand what's going on with the test
* checking if genesis validators root is not zero hash
* adding check for genesis validators root giving zero hash
* fixing missing dependency
* adding check for wallet
* log all
* fixing errors for http responses
* switching marshal to pretty print
* adding pretty sign request test
* fixing base url setting
* adding in check for web3signer and temporary wallet instead of having to open the wallet
* refactoring web3signer to not require wallet
* bazel build fix
* fixing gazelle build
* adding content type of request
* fixing more bazel
* removing unused code
* removing unused comments
* adding skip test back in
* addressing a validation and error message
* fix parse
* body
* fixing logic for datadir
* improving error handling
* show resp
* fix
* sign resp as str
* point of pointer remove
* sign resp
* unmarshal sig resp
* read body as str
* adding more verbose logging
* removing unused result
* fixing unit test
* reconfiguring files to properly nest code and mocks
* fix build issue
* using context when using client function calls
* fixing based on suggestion
* addressing comments
* gaz
* removing defined max timeout
* reverting json print pretty
* Update validator/accounts/wallet_edit.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* removing unneeded code restrictions
* should not introduce new code that may impact existing key manager types
* adjusting comments
* adding in json validation
* running go mod tidy
* some logging
* more logs
* fixing typo
* remove logs
* testing without byte trim
* fixing order or properties
* gaz
* tidy
* reverting some logs
* removing the confusing comments
* Update validator/client/aggregate.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/client/aggregate.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* addressing pr comments
* editing bytes test
* Run gazelle update-repos
* run gazelle
* improving unit test coverage
* fixing text
* fixing a potential escaped error
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-01-31 10:44:17 -06:00
Potuz
26ec352bdc
Update synced tips ( #10129 )
...
* add synced_tips structure
* create optimisticStore type
* Add UpdateSyncedTips
* use context
* update comment
* use better context cancellation
* reinsert removed error from different PR
* Minor clean ups
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-01-31 15:05:05 +00:00
Nishant Das
ce712a1a3e
Fix P2P Test ( #10157 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-31 12:23:25 +00:00
Raul Jordan
65ec437ce5
Fork Choice Proposer Boost Changes ( #10083 )
...
* begin on proposer boost
* implement fork choice proposer boost algorithm
* boosting
* gaz
* add mutexes and previous root
* comment on compute proposer boost
* safe
* rem todo
* reset and add tests
* unit test for proposer boost score
* boost works
* ex ante
* test
* propoer test
* vanilla ex-ante attack
* test similar to spec test
* works works works
* boost test working for num votes > proposer boost weight
* commentary fixes
* rem unused
* comments
* boost necessary to sandwich unit test
* sad path
* gaz
* Update beacon-chain/forkchoice/protoarray/proposer_boost.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/proposer_boost.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* gaz
* radek comments
* reset boosted root in on new slot
* pass
* broken tests
* cfg test
* modify e2e config
* Revert e2e changes
* Test
* Test again
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-01-29 16:32:01 +00:00
Preston Van Loon
58733a9f40
go 1.18 fuzz tests: initial testing ( #10063 )
...
* Add basic fuzz test
* Add a few tests for HTR utils
* gofmt
* Add requirement for fuzz gotag
* Run gaz and fix tags
* Update pubsub_fuzz_test.go
I'll fix this later
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-29 08:01:58 +00:00
terence tsao
762ea6dce1
State balance cache: handle input zeros ( #10144 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-28 17:14:13 +00:00
terence tsao
eef1730f9e
Bellatrix sync changes ( #10097 )
...
* Add bellatrix sync changes
* Fix tests
* Update validate_beacon_blocks.go
* check state and block versions
* Sync with develop
* Update rpc_chunked_response_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-28 16:26:52 +00:00
Potuz
de7f7d783e
Remove unused code ( #10142 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-01-28 14:52:30 +00:00
Potuz
cb0c382bf3
Fix Fork Choice prunning ( #10137 )
...
* Fix Fork Choice prunning
* Use copy node. Update comments and var names.
* rm unused err var
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-01-27 19:17:19 +00:00
Radosław Kapka
15485f50c3
Fix native state imports ( #10140 )
2022-01-27 11:02:16 +00:00
Radosław Kapka
9ee00f09a1
Native beacon state: v2 ( #10121 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-01-27 09:42:32 +01:00
Radosław Kapka
72817a6d0e
Unify validator status response in RPC ( #10128 )
2022-01-26 14:23:53 -05:00
Preston Van Loon
943dec525c
Refactor mock test helpers ( #10133 )
...
* Delete deploy contract tool. Move mock to its own package as testonly with some helper functions
* gofmt contracts/deposit/mock/mock.go
* move stategen mock.go to its on testonly pkg
* move password_reader_mock.go to mock testonly package
* move mock keymanager to its own testonly package
* move attestations mock
* move voluntaryexits mock
* Move slashings mock to mock pkg
* move the slasher mock
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-26 14:48:20 +00:00
Leo Lara
d9799e6b6c
#10036 Replace codename Merge with Bellatrix (2nd step) ( #10116 )
...
* Rename BeaconBlockBodyMerge to BeaconBlockBodyBellatrix
* Rename SignedBeaconBlockMerge to SignedBeaconBlockBellatrix
* Rename CopyBeaconBlockMerge to CopyBeaconBlockMerge
* Rename NewBeaconBlockMerge to NewBeaconBlockBellatrix
* Rename BeaconBlockMerge to BeaconBlockBellatrix
* Rename some comments and strings in pkg proto: Merge -> Bellatrix
* Rename PbMergeBlock to PbBellatrixBlock
* Many renames of merge -> bellatrix in proto package
* Rename some Merge -> Bellatrix in beacon chain package
* More names
* Fix formating in config/params/config.go
* Rename Merge -> Bellatrix in proto/prysm/storage
* Several renames and corrections Merge -> Bellatrix
Co-authored-by: Potuz <potuz@potuz.net>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@potuz.net>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-01-26 07:24:47 +00:00
Potuz
f0fd29d367
Is optimistic ( #10124 )
...
* add synced_tips structure
* create optimisticStore type
* Add ForkChoice.Optimistic()
Adds the logic implementing whether a synced block is optimistic or not.
* Terence's bug catch
* Reinforce warning
* Preston's review
* add comment on optimistic sync
2022-01-26 01:42:18 +00:00
terence tsao
22982e5221
Add on_tick
from spec ( #10130 )
...
* Add `on_tick` from spec
* Update BUILD.bazel
2022-01-25 22:07:57 +00:00
terence tsao
5a505509c3
Use store in blockchain service ( #10125 )
...
* Use store in blockchain service
* handle nil cases
2022-01-25 18:47:39 +00:00
Radosław Kapka
588658a649
Extract conditional slot processing to new function ( #10114 )
...
* Extract conditional slot processing to new function
* rename function
2022-01-25 14:52:18 +00:00
terence tsao
ae31eed013
Add blockchain store for checkpoints ( #10118 )
...
* Add store with tests
* Rm genesis time
* Previous finalized
* Go fmt
* Update beacon-chain/blockchain/store/type.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-01-24 19:53:05 +00:00
Radosław Kapka
5cc201288d
Native beacon state: v1 ( #10086 )
2022-01-24 11:24:38 +01:00
Nishant Das
b4fa626aff
Use Batch Decompression For Signatures ( #10105 )
...
* use batch decompress method
* terence's review
* gosimple
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2022-01-21 22:57:29 +00:00
Nishant Das
f563d00e79
Filter Duplicates Messages For Sync Contributions ( #10106 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-21 18:25:59 +00:00
terence tsao
8d610319bc
Remove commented code ( #10104 )
...
* Update service.go
* go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-20 18:15:05 +00:00
terence tsao
288b38be8e
Bellatrix p2p changes ( #10072 )
...
* Add `process_execution_payload` to `process_block`
* bring in bellatrix p2p changes
* lint
* fix testcase to use MaxChunkSize as config to change allowed size instead of config
* add left out config params
* Fix TestForkSchedule_CorrectNumberOfForks
* fixed Nishant's comments
* gofmt
* add switch case
Co-authored-by: Mohamed Zahoor <zahoor@zahoor.in>
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-01-20 22:12:15 +08:00
Nishant Das
af06bb9737
Do Not Copy State During Upgrade ( #10102 )
...
* no copy
* no copy
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-20 06:54:21 +00:00
Nishant Das
52f1190b17
Cleanup Up Resources Correctly ( #10103 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-20 06:21:06 +00:00
Preston Van Loon
7df01feb58
Remove libfuzzer / afl based builds in favor of go 1.18 fuzz testing ( #10065 )
...
* Remove libfuzzer / afl based builds in favor of go 1.18 fuzz testing
* rm beacon-fuzz archive
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-20 04:51:02 +00:00
Nishant Das
49c73e65a1
make it better ( #10101 )
2022-01-20 10:37:27 +08:00
terence tsao
06c3306ac2
Update stategen for Bellatrix ( #10089 )
...
* Update stategen to for Bellatrix
* Update BUILD.bazel
* Update replay.go
2022-01-19 22:18:11 +00:00
Radosław Kapka
68ef8ae99a
Remove CanonicalStateChan
( #10093 )
...
(cherry picked from commit 69a2ffd7c9f8ca1c67b4ea5aba71154ebc7713c2)
2022-01-18 14:24:47 +00:00
Leo Lara
64c02c405b
Move ErrNilValidatorsInState from one in each state version to a common one ( #10074 )
...
To increase DRY and enable DRY in tests and other users of the Beacon Chain state package,
an error that was duplicated unnecessarily in each version of the state is moved to the root
Beacon Chain state package.
2022-01-18 08:19:20 +00:00
terence tsao
33d1ae0792
Eth2api: GetBlockSSZ
supports bellatrix block ( #10077 )
...
* add rpc and tests
* rename
2022-01-17 02:30:09 +00:00
Preston Van Loon
182bd615ac
refactoring: Deduplicate code ( #10090 )
...
* Deduplicate sync committee indices from state
* Deduplicate code in listblocks RPC endpoints, which only differ in response object
* Deduplicate test code in config/fieldparams
* Delete stale benchmark target. This is already included in go_default_test
* deduplicate test cases in TestIsSlashableValidator_OK and fix blst
BUILD file
* Deduplicate TestStore_IsFinalizedChildBlock
* Revert crypto/bls/blst/BUILD.bazel
* Deduplicate TestStore_SaveBlock_NoDuplicates
* Use a generic wrapper for beacon blocks to streamline test
* Deduplicate TestStore_BlocksCRUD
* Deduplicate TestStore_BlocksHandleZeroCase
* Deduplicate TestStore_BlocksBatchDelete
* deduplicate TestStore_BlocksHandleInvalidEndSlot
* Deduplicate TestStore_BlocksCRUD_NoCache
* Deduplicate common block test setup. Make TestStore_Blocks_FiltersCorrectly support multiple forks in test
* Deduplicate the rest of these tests
* lint
* Deprecation warning
* Add test for WrappedSignedBeaconBlock
* Test error path
2022-01-16 18:44:42 +00:00
Michael Neuder
9166f40a04
Eth1 connections ( #10073 )
...
* Adding Eth1 connections data message to service definition
* PoC implementation for ETH1 connections RPC
* naming revisions
* cleanup
* register powchain info fetcher
* regenerate protos
* gazelle Bazel
* fixing comments
Co-authored-by: Michael Neuder <michaelneuder@Michaels-MacBook-Pro.local>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-01-14 11:13:04 -05:00
Preston Van Loon
98990ba280
p2p: Update libp2p and libp2p-pubsub ( #10082 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-14 14:06:20 +00:00
Radosław Kapka
9ace518539
Custom types for the native beacon state ( #10080 )
...
* custom-types package
* split types into distinct files
2022-01-14 13:25:41 +00:00
Radosław Kapka
963acefe12
Split state
package into state-proto
and state-native
( #10069 )
...
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: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
Co-authored-by: Dan Loewenherz <dloewenherz.adm@gmail.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
Co-authored-by: Fredrik Svantes <fredrik@ethereum.org>
Co-authored-by: Leo Lara <leolara@users.noreply.github.com>
2022-01-13 12:23:53 +01:00
Raul Jordan
53f7030871
Initialize Merkle Layers and Recompute Dirty Fields in BeaconState Proofs ( #10032 )
...
* handle trie recomputes
* recomp
* state trie
* args
* deep source
* amend test
* proofs test more fixes
* tests pass
2022-01-11 17:36:03 +08:00
terence tsao
84335b0084
Bellatrix spec tests ( #10014 )
...
* Add merge spectests
* fix build
* gazelle
* operation
* all tests should pass
* go fmt
* fix test
* fix dependency
* rm unused constants
* rename to bellatrix
* Gaz
* Rm unused files
* Use Bellatrix for test names
* Add more spec tests
* Gaz and fix test
* sync with dev
* Preston's feedback
* Go fmt
* sync with dev
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-10 18:27:08 +00:00
Leo Lara
b1c2454658
#10036 Replace codename Merge with Bellatrix (1st step) ( #10044 )
...
* Rename BeaconStateMerge to BeaconStateBellatrix
* Rename version.Merge to version.Bellatrix
* Rename ComputeFieldRootsWithHasherMerge to ComputeFieldRootsWithHasherBellatrix
* Rename test names to Bellatrix
* Rename comments and strings to Bellatrix
* Fix formatting in a few files
* Revert wrong renaming in test name
* Revert renaming to Bellatrix in mainnet_config.go
* Revert renaming of db key without migration
* Regenerate from proto changes
* Rename new use of already renamed symbols
* gofmt and goimports after regenerating protofiles
* revert weird imports
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2022-01-10 16:47:30 +00:00
Radosław Kapka
3bce9df382
Allow comma-separated event topics ( #10052 )
2022-01-07 17:17:29 +00:00
terence tsao
8ee3019954
Can upgrade to Bellatrix in process slots ( #10062 )
...
* Add `process_execution_payload` to `process_block`
* Add upgrade bellatrix to process slots
* Add upgrade bellatrix to process slots
* gazelle
2022-01-07 16:47:33 +00:00
terence tsao
ef1227b14c
Add process_execution_payload to process_block ( #10060 )
2022-01-06 19:36:39 +00:00
Preston Van Loon
80b7f691ae
p2p: no alloc extract of gossip digest ( #10055 )
...
* Extract gossip topic without a full copy via strings.Split
* Add basic benchmark
* gofmt
* Add empty topic test case
* Remove nl
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-01-06 18:17:51 +00:00
terence tsao
c69bce5d84
Use fieldparams for BLS public key ( #10042 )
...
* Use fieldparams for pubkey length
* Fix validator tests
* fix more tests
* fix mock validator
* Fix typo
* bunch of typos
* Update bytes.go
* Update BUILD.bazel
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-06 17:33:08 +00:00
terence tsao
a1a301ad5d
process payload ( #10054 )
2022-01-06 08:22:38 -08:00
james-prysm
d28ae62d02
Web3signer keymanager: key manager implementation ( #10016 )
...
* initial commit for work on web3signer-keymanager
* WIP key manager client
* adding in more valid unit tests
* refactoring some of my code to work better with current implementations
* adding comments, some error situations and fixing unit tests
* updating go.mod
* gaz
* addressing sandbox errors on test
* fixing more sand box debug items
* missed yet another error case on my test
* reverting go.mod
* addressing comments
* missed removal of unit test
* removing some deepsource issues
* adjusting based on review comments
* addressing comments
* adding the missed types
* changing public keys to only pull once
* fixing commented code format
* gaz
* Update validator/keymanager/remote-web3signer/keymanager.go
updating comments
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update validator/keymanager/remote-web3signer/client.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* fixing conflicts
* addressing comments
* fixing deepsource issues
* more deep source issue fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-01-05 14:32:46 -06:00
terence tsao
fade8aa7a9
Add validate payload helpers ( #10028 )
...
* Add merge complete helper
* Update BUILD.bazel
* minimal
* Add validate payload helpers
* gaz
* update tests
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-01-05 15:28:58 +00:00
terence tsao
8604832499
Use prysm require test lib ( #10039 )
...
* Use prysm require test lib
* Fix typo
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-05 07:06:51 +00:00
terence tsao
ceabee0198
Update Transactions
and ExtraData
non empty check ( #10049 )
2022-01-03 23:53:39 +01:00
terence tsao
9f27af43cb
Spectest 1.1.8 ( #10041 )
...
* Update spec test to v1.1.8
* Update names
* Update network repo
* Update WORKSPACE
* Better names
* Update beacon-chain/core/time/slot_epoch.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-12-26 23:18:28 +00:00
terence tsao
e3c8491177
Add is_execution_enabled helper ( #10027 )
2021-12-22 15:03:54 -08:00
terence tsao
bfc90e9abb
Add is_merge_block helper ( #10026 )
...
* Add merge complete helper
* Update BUILD.bazel
* minimal
* Add is_merge_block helper
* rename to `IsMergeBlock`
2021-12-22 15:52:50 +00:00
Raul Jordan
d173a6e695
Merkle Proof Support for BeaconState Finalized Root and Sync Committees ( #10029 )
2021-12-19 17:02:42 -08:00
Potuz
7f857ae23a
Fix sync commitee endpoint ( #10015 )
2021-12-18 17:04:30 +01:00
terence tsao
23e39d3d64
Fix state alias v3 ( #10022 )
2021-12-16 22:44:43 +00:00
terence tsao
ec65c442c4
Minor cleanups on monitor service ( #10013 )
...
* Minor cleanups on monitor service
* Update tests
* Update process_block_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-15 20:42:20 +00:00