Preston Van Loon
991ee7e81b
"Super sync" and naive p2p reputation ( #2550 )
...
* checkpoint on super sync with reputation
* ensure handling only expected peers msg
* exclusive of finalized block
* skip block saved already
* clean up struct
* remove 2 more fields
* _
* everything builds, but doesnt test yet
* lint
* fix p2p tests
* space
* space
* space
* fmt
* fmt
2019-05-09 16:02:24 -05:00
Raul Jordan
ecef1093eb
Fetch Block Tree from Justified Block to Highest Observed Slot via RPC ( #2549 )
...
* test block tree req
* tree improvement
* use the right data
* block tree blocked by children func
* rem file
* imports
* add ctx
* imports
* mock
* check expired context
* added block root
* gazelle
* sace
2019-05-09 12:38:05 -05:00
Raul Jordan
c1dfa2677e
Prevent Reorgs if Chain Head Does Not Change ( #2548 )
...
* revent reorgs if head does not change
* lint
* spacing
2019-05-09 11:42:24 -05:00
Nishant Das
5fc6f2d728
PreChainStart Activation Fix ( #2544 )
...
* fix activation
* remove logs
* remove logs
* revert change
* fix test
2019-05-09 11:20:44 -05:00
terence tsao
729c45df67
exclusive of finalized block ( #2547 )
2019-05-09 08:51:33 -07:00
Raul Jordan
a4128f691b
Refactor DB Package to Enable Multiple Blocks/States at Slots ( #2540 )
...
* prefixed blocks blocked
* db refactor
* new historical state saving
* builds but tests fail
* more tests pass
* fix tests
* fix tests
* delete buf
* Update beacon-chain/db/block.go
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
* Update beacon-chain/db/block.go
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
* rem unused
2019-05-09 10:42:12 -05:00
Preston Van Loon
7c47db0015
add attestation data req cache ( #2542 )
...
* add attestation data req cache
* add tests
* godocs
* fix cache size gauge
* lint
* fix tests
* gazelle
* add more comments
2019-05-08 19:27:29 -05:00
terence tsao
b05f64ff91
enhance forkchoice log ( #2537 )
2019-05-08 19:00:30 -05:00
Preston Van Loon
8a4f322e2c
Check context has not expired before expensive operations ( #2541 )
...
* use ctx.Err for potentially expensive RPC methods, use batch for saving attestations
* more
* in sync too
* Update BUILD.bazel
* fix spacing
2019-05-08 18:51:00 -05:00
terence tsao
104966b63d
Sync Responds With Canonical Block Lists ( #2539 )
...
* first attempt at canonical blk list
* lint
* condition 1
* ctx w/ time out
* added canonical block list tests
* revert
* add to BeaconChainFlags
* dont use map, use proto
* attempt to use proto, take 1
* add run
* like canonical better than head
* removed unused
* Update proto/beacon/p2p/v1/messages.proto
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
* protos
2019-05-08 18:23:06 -05:00
terence tsao
fe3fd57600
removed unused doesParentExist ( #2538 )
2019-05-08 11:37:00 -05:00
Raul Jordan
0bab9f492d
Do Not Run Fork Choice on Block Proposals ( #2526 )
2019-05-07 23:02:52 -07:00
Preston Van Loon
57495bc8fe
Revert "Canonical Blocks for Batch Block Request ( #2511 )" ( #2532 )
...
This reverts commit a818564b8d
.
2019-05-08 00:52:34 -05:00
Preston Van Loon
e5cb1db5bc
Sort list before processing batched blocks ( #2531 )
2019-05-08 12:27:00 +08:00
Raul Jordan
76881fd1ae
Do Not Subscribe to Blocks in Initial Sync ( #2524 )
...
* only sub to block batches
* batch sub remove
* tests
* fix lint
* gazelle
* delete old im mem blocks code
2019-05-07 21:12:36 -05:00
terence tsao
7642f950d8
delete failed pending atts ( #2528 )
2019-05-07 18:46:16 -07:00
terence tsao
eb626e5834
fixed atts verification ( #2527 )
2019-05-07 15:51:41 -07:00
terence tsao
0f0510096e
Update Attestation Target for AttestHead ( #2525 )
...
* update attestation target for AttestHead
* fixed test
2019-05-07 17:31:06 -05:00
Nishant Das
1be950f90c
fix validator flags ( #2518 )
2019-05-06 21:49:03 -05:00
Raul Jordan
e3684e61f8
Revert "Renovate Updates in Batch ( #2505 )" ( #2515 )
...
This reverts commit 0e8ef07587
.
2019-05-06 17:04:01 -04:00
Raul Jordan
cd0002a6af
Do Not Broadcast Attestations in Operations Service ( #2509 )
...
* no att broadcast
* broadcast in rpc but not operations
* fix space
* tests
2019-05-06 15:30:29 -05:00
Raul Jordan
4954ed0221
Use Single Code Path for Receiving Blocks and Fork Choice ( #2514 )
...
* insert canonical
* one path
* single entry
* travis
* lint
2019-05-06 15:06:41 -05:00
terence tsao
a818564b8d
Canonical Blocks for Batch Block Request ( #2511 )
...
* only reply canonical block for reg sync
* CanonicalBlock test
* lint
2019-05-06 11:02:04 -07:00
Preston Van Loon
e5a00fdca9
Add GCP test configuration and p2p-host-ip flag ( #2510 )
...
* Add GCP startup script
* add flag for external IP
* specify that it must be for linux
* /deploy/create
* gofmt
2019-05-06 13:33:19 -04:00
Preston Van Loon
9a4612918c
add path for prylabs.net/ssz ( #2508 )
2019-05-05 21:24:47 -07:00
terence tsao
0e8ef07587
Renovate Updates in Batch ( #2505 )
...
* Update com_github_atlassian_bazel_tools commit hash to 20cbdb1
* Update io_bazel_rules_k8s commit hash to 94e92d1
* Update prysm_testnet_site commit hash to b6c4983
* Update dependency com_github_jbenet_goprocess to v0.1.0
* Update dependency com_github_pkg_errors to v0.8.1
* Update dependency com_google_cloud_go to v0.38.0
* Update libp2p
* fixed
2019-05-06 10:17:13 +08:00
Raul Jordan
d68111e051
Fix Status Update Progression in RPC Server ( #2495 )
...
* fix status updates
* standardize logs in validator
* tests
* fix conditional
2019-05-05 17:39:12 -05:00
Raul Jordan
f60f3dfd2d
Lookup Validator Index in State in Status Check ( #2494 )
...
* state lookup
* refactor duplicate code
* refactor with mapping
* fix broken tests
* finish refactor
2019-05-05 16:09:02 -04:00
Preston Van Loon
06a3a0de14
add production config for testnet release ( #2493 )
2019-05-05 14:04:28 -05:00
Nishant Das
409111e374
Estimate the Time Till Follow Distance Is Completed ( #2486 )
...
* use estimation instead
* fix test
* fixing another test
* fix tests and preston's comments
* remove unused var
* fix condition
* Revert "fix condition"
This reverts commit dee0e3112c01f68f30a2e50cd4eb35f29f672e1d.
* dont return error
2019-05-05 13:18:57 -04:00
Raul Jordan
406fb40883
Fix Validator Status Field in RPC Server ( #2492 )
...
* fix status of key
* status test fix
* fmt
2019-05-05 12:05:21 -05:00
Raul Jordan
d5c0a99578
Display Only Active Validator Data ( #2490 )
2019-05-05 09:40:21 -07:00
Raul Jordan
679493c786
issue warn log on disconnecting peer instead of error ( #2491 )
2019-05-05 11:22:04 -05:00
Ivan Martinez
d721d7fe8c
Add drain script ( #2418 )
...
* Add drain script
* Fix script to drain contracts from newest to oldest
* Add README
* remove comments
* Only after block 400k, look up by deposit event
2019-05-05 11:34:07 -04:00
Nishant Das
88df0f6498
shift ticker to after activation ( #2489 )
2019-05-05 10:24:41 -05:00
Nishant Das
2442b1a4d6
fix chainstart waiting on rpc server ( #2488 )
2019-05-04 20:04:12 +08:00
Nishant Das
16b42f4ac6
change logging ( #2487 )
2019-05-04 12:11:34 +08:00
terence tsao
71b702a3ab
Only Log Active Balances ( #2485 )
...
* only log active balance
* dont need ()
2019-05-04 11:31:26 +08:00
Raul Jordan
939382ac86
Better Error Message if Failing to Exit Initial Sync ( #2483 )
...
* no err throw
* nil errors
* better error on init sync
2019-05-04 10:13:33 +08:00
terence tsao
7f4eafb7b4
3.175 ( #2482 )
2019-05-03 16:57:37 -07:00
Raul Jordan
329d467008
Fix Status Nil Pointer Error ( #2480 )
...
* no err throw
* nil errors
2019-05-03 16:55:56 -05:00
Raul Jordan
f612d9ff5b
no err throw ( #2479 )
2019-05-03 15:28:11 -05:00
Raul Jordan
3f5eea6077
Update Prysm README ( #2477 )
...
* README updated
* readme updates
2019-05-03 12:55:15 -05:00
Nishant Das
7d88e1e15e
Allow Client to Retrieve Multiple Validator Statuses ( #2474 )
...
* multiple validator statuses
* gazelle
* context
* fixing bugs
* remove old way of checking
* fix logging
* make activation queue more accurate
* fix rpc test
* add test
* fix remaining tests
* lint
* comment
* review comments
2019-05-03 12:13:34 -05:00
Preston Van Loon
a152ba9528
Add CORS for ssz api ( #2476 )
...
* first pass ssz server for decoding deposit input data
* fix decoding
* revert viz change on helper
* add image target
* use /api prefix, add deployment for cluster
* fix lint
* needed CORS
2019-05-03 14:46:39 +08:00
Raul Jordan
94a1aca640
standardize slot numbers ( #2475 )
2019-05-03 13:28:09 +08:00
Preston Van Loon
9fb5bbd662
SSZ web api for decoding input data ( #2473 )
...
* first pass ssz server for decoding deposit input data
* fix decoding
* revert viz change on helper
* add image target
* use /api prefix, add deployment for cluster
* fix lint
2019-05-03 00:11:54 -05:00
Raul Jordan
7007a9e8fa
Fix Estimation of Deposit Inclusion Slot in ValidatorActivationStatus ( #2472 )
...
* fix spacing
* fix time estimates
* correct slot estimation
* naming
* Update beacon-chain/rpc/validator_server.go
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
2019-05-02 19:13:51 -04:00
Raul Jordan
629b76cf44
Only Perform Initial Sync With a Single Peer ( #2471 )
...
* fix spacing
* use send instead of broadcast in initial sync
2019-05-02 15:36:23 -04:00
Raul Jordan
f876df42d7
ValidatorStatus Estimating Activation RPC Server ( #2469 )
...
* fix spacing
* working on position in queue
* fmt
* spacing
* feedback
* tests
* rename
2019-05-02 14:14:25 -05:00