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
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
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
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
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
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
Raul Jordan
94a1aca640
standardize slot numbers ( #2475 )
2019-05-03 13:28:09 +08: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
terence tsao
b1334c6120
Revert "Reverts RPC Disabling ( #2435 )" ( #2468 )
...
This reverts commit e16f1e1533
.
2019-05-02 09:17:45 -04:00
terence tsao
38da4a5cd4
Add Forkchoice Tie Breaker ( #2459 )
2019-05-01 10:18:56 -07:00
Raul Jordan
05336e16e0
Querier Polls Forever Until 1st Response ( #2458 )
...
* revert changes to protos
* typo
2019-05-01 12:10:39 -05:00
terence tsao
de6ea81790
Recent Block Roots RPC API ( #2455 )
...
* add metrics for corret participation rate
* gaz
* add recent canonical roots API
* gaz
* all tests passed
* comments
* fmt
2019-05-01 10:14:46 -05:00
Raul Jordan
aa74b1dca3
Various Logging Improvements ( #2454 )
2019-04-30 14:55:59 -07:00
Raul Jordan
acf2d0699c
Fixed HasAnyValidators to Fallback to Looking Into the BeaconState ( #2453 )
2019-04-30 14:18:16 -07:00
terence tsao
a015056332
Add metric for correctly attested rate ( #2452 )
...
* add metrics for corret participation rate
* gaz
2019-04-30 16:06:31 -05:00
terence tsao
d453b0f199
fixed typos ( #2444 )
2019-04-30 14:55:14 -05:00
terence tsao
7a7b4e55c9
prevent validator exit reentrance ( #2443 )
2019-04-29 16:25:31 -07:00
terence tsao
22fa595665
Prune Atts One Epoch Older ( #2442 )
...
* prune atts > one epoch old
* use VerifyAttestation instead
* added test to prune invalid att
* space
* added ctx
* fixed existing tests
* gaz
* gazelle
* update filter for pruning atts
* gaz
2019-04-29 15:45:04 -05:00
terence tsao
bff774de32
Operation service prunes invalid attestation ( #2439 )
...
* prune atts > one epoch old
* use VerifyAttestation instead
* added test to prune invalid att
* space
* added ctx
* fixed existing tests
* gaz
* gazelle
2019-04-29 15:03:28 -05:00
Raul Jordan
aa80c308ce
Save Deposit to DB Even If Fails to Deserialize ( #2440 )
...
* include bad deposits in the db
* fmt
* Update beacon-chain/powchain/log_processing.go
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
* lint
* comment
2019-04-29 14:50:18 -05:00
terence tsao
63998b92aa
Add and Use Truncate Hash Library ( #2417 )
...
* add truncate lib
* use trunc
* spaces
2019-04-29 13:11:51 -05:00
Nishant Das
c288af5e9b
Continue Processing Invalid Deposits ( #2437 )
...
* fix for pending deposits
* add regression tests
2019-04-29 09:54:55 -05:00
terence tsao
4a90f82bcc
Fix Validator Ejection for Testnet ( #2438 )
...
* set ejection threshold and add gauge
* spaces
* gaz
2019-04-29 09:39:31 -05:00
Nishant Das
e16f1e1533
Reverts RPC Disabling ( #2435 )
...
* make changes
* more changes
2019-04-29 08:23:24 -05:00
Raul Jordan
63633a3bee
Enable Historical State Pruning By Default ( #2433 )
...
* disable historical state pruning
* imports
* lint
2019-04-29 10:53:03 +08:00
Nishant Das
52250c9e7a
Fix Fork Choice Reorg Conditions ( #2413 )
...
* make fixes
* change condition
* comment
* fixed up a few var names for clarity
* added test for isDescendant
* chain split reorg test
* interface for atts service
* comprehensive reorg regression test added
* space
* all tests pass
* target handler
* ci lint
* Update beacon-chain/sync/receive_block.go
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
2019-04-28 17:53:51 -04:00
Raul Jordan
dcc2250e82
Use HTTP for On Demand Block Requests ( #2405 )
...
* use http instead of websocket for on demand block fetching
* use http
2019-04-27 14:45:13 -05:00
Nishant Das
cd302e88c2
Fix Block Processing And UpdateChainHead ( #2399 )
...
* fix block processing
* add in defer
* do not update chainhead
* save historical states from all blocks, so that fork choice can retrieve it
* revert changes
* make new changes
* remove forkchoice at the end
2019-04-27 14:36:53 -05:00
Preston Van Loon
210edfc940
P2P handshake handling ( #2306 )
...
* proto: illegal wireType 7 :(
* set addr to todo for now so somethign gets sent
* push latest progress
* Add feedback from @raulk. Stream never connects
* working handshake handler
* add exclusions for relay/bootstrap node
* fix tests, still need to add new ones
* remove race, fails coverage
* Add test for negotiation
* gazelle
* regen pb
* Update shared/p2p/handshake_handler.go
Co-Authored-By: prestonvanloon <preston@prysmaticlabs.com>
2019-04-27 14:08:27 -05:00
terence tsao
7a04af7621
Use Withfields for Forked Block ( #2394 )
...
* use with fields for forked block
* spacing
2019-04-27 12:08:15 +08:00
Raul Jordan
81c8b130c6
Only Sync With the Peer With the Highest Observed Slot ( #2280 )
...
* only accept the highest finalized slot from peers
* use best peer for state requests
* peer id
* rem old tests
* req peers tests pass
* warn level support for peer not having the same protocol
* pretty
* best peer
* comments
* req peers done
* tests passing
* fully functional
* enforce receiving from the best peer
* comments
* lint fixes
2019-04-26 10:18:43 -05:00
frederickalcantara
a170c69653
upgrading linter from gometalinter to golangci-lint ( #2100 )
...
* upgrading linter from gometalinter to golangci-lint
* fixed golangci-lint linting
* removed linting before_script command
* removed disable-all command
* Fixed golang config file
* fixed golang config file v2
* removed gosec issue rule
* formatting
* fixed travis build to run golangci-lint
* Add install golangci-lint command
* fixing golangci-lint script
* removed https://
* Added golangci-lint cmd script
* added go get for local lint install
* created a before_script
* add install before script
* Added get script
* added go mod download
* removed go mod downloads
* changed
* removed before script
* Added before script go get lint
* added exit zero to see what went wrong
* removed golang run script
* removed before script
* change lint command
* verbose output
* removed verbose
* change linter enable and disable configuration
* Update .golangci.yml
Removed gotype as a linter
* Update .golangci.yml
Added typecheck linter
* Update .golangci.yml
Added fixed lint version
* Update .golangci.yml
Added gotype
* Update .golangci.yml
Added typecheck
* removed env:lint
* Added env lint
* fixing lint upgrade
* Changing travis configuration
* FIxed spelling errors
* disabled typecheck
* Enabled typecheck
* remove binary
* Deleting lib binary
* adding more linters
* fixed constants
* fix spelling
* fixed all lint issues
* Revert "Changing travis configuration"
This reverts commit 334afe9d05e96261b01f275aa3ada20e7f36aac4.
* Merge branch 'master' of https://github.com/prysmaticlabs/prysm into update-linter
* Changed from Infof to Info
* Fixing commits
* fixing commits with linter config
* added install
* Fixing
* fix log statement
2019-04-26 14:24:01 +08:00
Nishant Das
09083b072c
add log ( #2390 )
2019-04-26 13:15:53 +08:00
Nishant Das
89600e8978
Remove Duplicated Functions in the Slice Package ( #2389 )
...
* remove duplicated funcs
* lint
* remove duplicated tests
2019-04-26 12:31:27 +08:00
Raul Jordan
2318a53fa5
Lock Down the ReceiveBlock Function ( #2387 )
...
* lock down receive block
* imports
2019-04-25 23:06:16 -05:00
terence tsao
82d0bbba2e
RPC Validator Index Lookup Failover ( #2386 )
...
* implemented valIdxLookup and tests
* comments
* comments
* look up in db
* uncomment
2019-04-25 17:57:54 -05:00
Raul Jordan
5bf1032b7d
Prevent Reading Head State on Every Received Attestation ( #2383 )
...
* no more calls
* fix lint unused
* Update beacon-chain/attestation/service.go
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
* fix tests
* fixed broken tests
* using ctx
* fixed single state req
* tests pass
* fix one of last major bottlenecks
* fix test
* lint
2019-04-25 12:21:45 -05:00
Raul Jordan
538d7ec07c
Prevent Fetching Head State Many Times in Requesting Latest Attestation ( #2374 )
2019-04-25 09:44:35 -07:00
Nishant Das
75be7be646
Handle Panics In Attestation and Disable Logging ( #2380 )
...
* Revert "Use State Instead of Cached Registry (#2372 )"
This reverts commit 941810ee7b
.
* handle panic
* fix logging
* add test
* gazelle
2019-04-25 21:11:07 +08:00
terence tsao
b81eeec374
Optimize block fetch with attestation target fetch ( #2373 )
...
* 1st attemp to optimize blk fetch w/ att tgt fetch
* test test test test
2019-04-24 12:21:00 -05:00
Nishant Das
941810ee7b
Use State Instead of Cached Registry ( #2372 )
...
* fix state reads
* add method to retrieve validator from state
* lint
* batch update attestation
* handle nil case
* add test
* lint
* batch update attestation
* use state instead
* fix test
2019-04-24 10:46:06 -05:00