terence tsao
6a5589f99e
Skip proposer indices cache update if exists ( #8096 )
...
* Check if cache is empty before update
* Add tests
* Fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-15 00:09:30 +00:00
terence tsao
70c0bb106b
Beacon node code health improvements ( #8109 )
...
* Apply code health fixes after code inspect
* Remove attestationRoot
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-14 23:41:24 +00:00
Victor Farazdagi
0f18867f08
Remove duplicate package imports ( #8104 )
...
* remove duplicate imports
* remove unused lookupLimit
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-14 22:22:55 +00:00
Steven Allen
2428880058
Update go-libp2p to 0.12.0 ( #8015 )
...
* Update go-libp2p to 0.12.0
go-libp2p 0.12.0 made some significant changes to the stream interfaces around
stream closing:
* Close now closes in both directions and frees the stream. However, unlike
FullClose did, it doesn't _wait_ for the remote peer to respond with an EOF.
* To close for writing, call CloseWrite (like one would on a TCP connection, etc.).
This patch:
* Replaces calls to FullClose with Close where appropriate.
* Replaces calls to Close with CloseWrite where appropriate.
* Removes redundant Close calls.
* Calls Reset to where appropriate to indicate that the request/response was
aborted. Unlike Close, this will not flush and will not cause the remote peer
to read an EOF. Instead, the remote peer will read an ErrReset error.
* Ensures we always either close or reset streams. Send wasn't closing the
stream on some error paths.
* Now that stream closing is async, we explicitly wait for a response when
"hanging up" on a peer (so we don't hang up before they receive our
response/goodbye message).
* update bazel
* Gazelle
* revert unintentional bazel workspace change
* appease an overzealous linter
* update to latest
* Refactor encoder
* gazelle
* Gazelle
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-14 17:22:25 +00:00
Potuz
4d1f01aacc
Change block_arrival_latency buckets to exponential format ( #8065 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2020-12-14 16:00:07 +00:00
Victor Farazdagi
b9848dc94f
Remove unused vars in tests ( #8103 )
...
* update process_block_test
* service_attester_test
* update service and rpc_status tests
* go fmt
2020-12-13 05:23:13 +00:00
Nishant Das
11bbf06d03
Add Inbound Peer Limit ( #7942 )
...
* add changes
* fix up
* fix
* add test
* fix test
* fix again
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-12-12 03:46:55 +00:00
Nishant Das
29804fa572
Refactor Subnet Search ( #8048 )
...
* checkpoint progress
* checkpoint
* clean up
* do better
* fix test
* fix
* fix
* preston's review
* fix
* fix
* fix
* add iterator
* go doc
* make it a config parameter
* Apply suggestions from code review
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-12-11 18:40:56 -08:00
Nishant Das
99b3835f19
Add Fallback Option for Eth1 Nodes ( #8062 )
...
* fix
* fix tests and change back
* gaz
* change
* ready again
* Update beacon-chain/flags/base.go
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* radek's review
* Update shared/cmd/helpers.go
* Update shared/cmd/helpers_test.go
* Update shared/cmd/helpers_test.go
* Endpoint/endpoint
Co-authored-by: Shay Zluf <thezluf@gmail.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2020-12-11 19:15:04 +08:00
Victor Farazdagi
46d99fdc00
Attestation aggregation: remove proper set duplicates ( #8063 )
...
* fix proper-set issue
* move test into dedicated test file
* move functionality from maxcover -> proposer
* adds dedup to proposer
* fix tests
* update tests
* remove redundant proper subset test
* fix bug with identical expression
2020-12-11 11:13:14 +03:00
terence tsao
00dacbd00d
Remove custom block body root and block root methods ( #8069 )
...
* Remove custom block body root and block root methods
* Add nil checks and fix tests
* Fmt
* Typo
2020-12-09 12:11:42 -06:00
terence tsao
ade3b2f2df
Add state field count to config ( #8068 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-07 21:49:28 -06:00
Radosław Kapka
9d7052796b
Restore database CLI command ( #8061 )
...
* restore beacon node db
* revert image name
* move restore out of the kv folder
* remove files from kv folder
* go mod tidy
* Remove usage of prometheus testutil
* add yes/no to prompt text
* restore slasher db
* organize imports
* go mod tidy
* restore validator db
* close slasher db
* defer close backup db in tests
* simplify function literal
2020-12-07 21:36:43 +01:00
Shay Zluf
fbbdd94fea
Resolve panic on shutdown with offline eth1 node ( #8033 )
...
* Resolve panic on shutdown with offline eth1 node
* Move fix tne right place nishant feedback
* fix log message
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2020-12-07 10:16:23 +00:00
Victor Farazdagi
b51aec6981
Init sync: minor fixes ( #8060 )
...
* fixes typo
* simplify code
2020-12-07 09:33:06 +00:00
Victor Farazdagi
be078d6a16
Update TestMain(): do not call os.Exit() explicitly ( #8046 )
...
* update workspace
* update testmain
2020-12-04 16:10:07 +00:00
Victor Farazdagi
afbfaedea4
Unskip fixed init-sync service test ( #8042 )
2020-12-04 11:57:46 +00:00
Raul Jordan
14e1f08208
Add Backup Webhooks to All Prysm Services With DBs ( #8025 )
...
* integrate backup webhooks
* pass slasher tests
* fix node
* cmd
* gaz
* read test passes
* radek feedback
* added comment
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2020-12-03 22:28:57 +00:00
Victor Farazdagi
647b4cf108
Round robin: half open interval in syncToFinalizedEpoch ( #8039 )
2020-12-03 21:55:42 +00:00
terence tsao
c090c6a1c5
Revert "Logging with PadLevelText
to true" ( #8036 )
...
This reverts commit c51754fa8a
.
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-03 20:38:00 +00:00
Victor Farazdagi
7dd0c24fea
Skip bogus init-sync test ( #8038 )
2020-12-03 20:20:04 +00:00
Victor Farazdagi
3092f75ec2
Init sync: conditional syncing to finalized slot ( #7999 )
...
* extract sync methods
* add unit test
* gazelle
* Update beacon-chain/sync/initial-sync/round_robin.go
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* better set back step
Co-authored-by: Shay Zluf <thezluf@gmail.com>
2020-12-03 14:10:51 +00:00
Victor Farazdagi
5417e8cf31
Init-sync: enable peer scorer by default ( #7974 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-03 00:45:20 +00:00
terence tsao
c51754fa8a
Logging with PadLevelText
to true ( #8003 )
...
* Use logrus formatter with pad
* Validator
* Fmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-02 23:49:13 +00:00
terence tsao
2153a2d7c3
Remove logging deposit inclusion slot ( #8023 )
...
* Remove logging deposit inclusion slot
* Remove old tests
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-02 21:17:47 +00:00
Nishant Das
20514cd97f
Fix Interop Mode ( #7978 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-12-02 20:29:36 +00:00
Victor Farazdagi
32f6bfd0a5
update deprecated multiaddr package ( #8022 )
2020-12-02 11:21:43 -08:00
Victor Farazdagi
c7f7a29d7e
remove redundant start slot ( #7991 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-02 20:47:39 +03:00
Nishant Das
387f7b28c1
Add Buffer For Inbound Peers ( #8018 )
...
* allow inbound peers
* comment
* gaz
* gaz
* Update deps.bzl
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* add test
* re-arrange imports
* fix up
* fix tests
* gaz
* Update beacon-chain/p2p/service_test.go
* fmt
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: Shay Zluf <thezluf@gmail.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-12-02 10:45:28 -06:00
Shay Zluf
f9c696ed54
Pending block queue lock fixes ( #8002 )
...
* Unlock in case of error
* fix comment
* fix comment
* revert one defer
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2020-12-02 11:50:37 +02:00
Potuz
9a1423d62d
Log with field error instead of err ( #7998 )
2020-12-01 05:38:42 -08:00
Nishant Das
a13de7da11
Remove Exclusion List ( #7992 )
...
* remove
* gaz
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-01 02:17:29 +00:00
Raul Jordan
01bf97293f
Fix Miscellaneous Deep Source Issues ( #8007 )
...
* deep source fixes
* sh fixes
* fix import
* test err
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2020-11-30 19:55:30 -06:00
terence tsao
645931802f
Improve genesis event log and load blocks to fork choice log ( #7946 )
...
* Update a few logs
* Go fmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-12-01 00:06:16 +00:00
terence tsao
3af7809964
Save cached state summaries on Stop() ( #7988 )
...
* Save cached state summaries on Stop()
* Fixed test and added one more test
2020-11-30 17:08:23 -06:00
terence tsao
b150acffca
Recover state summary for sync validation ( #7994 )
...
* Recover state summary
* Add test
* Fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-11-29 20:42:45 -06:00
Victor Farazdagi
54a42ce4a8
more robust processing of invalid head slot ( #7990 )
2020-11-29 15:03:25 -06:00
Raul Jordan
04615cb97b
Add Validator RPC Endpoint to Retrieve Beacon + Validator Logs Websocket Endpoints ( #7981 )
...
* add logs endpoint
* commands to retrieve logs endpoints
* ensure works at runtime
* add auth
2020-11-27 18:28:45 +00:00
pinglamb
654ef1afe5
Added flag for specifying header request limit ( #7896 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-11-26 18:38:52 +00:00
terence tsao
622ab94465
Move Verified and saved pending attestations to pool
to debug ( #7928 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-25 22:52:57 +00:00
Preston Van Loon
29c6a0c42c
Fix zero genesis check, make processAttestation routine wait for genesis time to be set ( #7947 )
...
* Fix zero genesis check, make processAttestation routine wait for genesis time to be set
* Update beacon-chain/blockchain/receive_attestation.go
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-25 18:52:59 +00:00
Nishant Das
aefa3e191a
Check Sync Status First ( #7895 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-25 18:27:27 +00:00
dv8silencer
3ae4b793e6
Improve error log for when database network conflicts with runtime network ( #7945 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-25 05:15:30 +00:00
terence tsao
a051e684ae
Update log levels ( #7931 )
2020-11-23 13:16:08 -08:00
Nishant Das
6f766ed583
Exit Pending Queue Properly ( #7927 )
...
* exit properly
* terence's review
* Update beacon-chain/sync/pending_blocks_queue.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/sync/pending_blocks_queue.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-23 19:34:40 +00:00
Raul Jordan
b0dfc46603
Fix Up READMEs for Mainnet ( #7910 )
...
* fix up readmes
* Update README.md
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-23 18:47:55 +00:00
Nishant Das
8c3faaa4c7
Add Back Error/Debug Logs ( #7922 )
...
* add back logs
* add back string
* Reformat loggings
Co-authored-by: Terence Tsao <terence@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-23 18:29:27 +00:00
Preston Van Loon
57fe012bc2
P2P: Increase outbound message queue size to 256 ( #7916 )
2020-11-22 23:54:58 +00:00
Raul Jordan
d62420b940
More Default CORS Rules ( #7915 )
...
* even more cors
* terence feedback
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-22 23:10:21 +00:00
Preston Van Loon
11bbea2562
Use params network config as default bootstrap nodes and deposit contract ( #7904 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-22 21:22:44 +00:00