Commit Graph

2255 Commits

Author SHA1 Message Date
Preston Van Loon
578e7bd867
Activation estimation proto (#2461)
* support activation status information

* second attempt

* format protos with prototool

* use inner status message

* add one more field

* regen pb.go

* Add position in activation queue
2019-05-01 16:39:20 -04:00
Preston Van Loon
50c0772c2a format protos with prototool (#2462) 2019-05-01 12:14:21 -07: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
Preston Van Loon
f70e648b60 add nginx proxy caching in front of SSR (#2456) 2019-05-01 07:08:18 -07:00
Preston Van Loon
957402595d
Add simple funded too recently error (#2414) 2019-04-30 19:02:08 -04: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
669ad3ee71
raise ejection bal to 3.15 (#2451) 2019-04-30 10:17:23 -07:00
terence tsao
7a7b4e55c9
prevent validator exit reentrance (#2443) 2019-04-29 16:25:31 -07:00
Preston Van Loon
3f742d79c0
Use new port for testnet site, redirect prylabs.net to alpha.prylabs.net for now (#2441) 2019-04-29 18:21:54 -04: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
terence tsao
4a3b2f6d15 Renovates Major Updates (#2434)
* Update io_bazel_rules_k8s commit hash to c1daa04

* Update dependency build_bazel_rules_nodejs to v0.28.0

* Update dependency com_github_rjeczalik_notify to v0.9.2

* Update dependency io_opencensus_go to v0.21.0

* Update dependency org_golang_google_api to v0.4.0

* Update libp2p

* Update dependency com_github_deckarep_golang_set to v1

* Update dependency com_github_edsrzf_mmap_go to v1

* Update dependency com_github_go_stack_stack to v1

* Update dependency com_github_karlseguin_ccache to v2

* Update dependency com_github_rs_cors to v1

* Update dependency in_gopkg_urfave_cli_v1 to v1

* Update prysm_testnet_site commit hash to 3848e91

* extra bracket

* fix build
2019-04-29 14:56:36 +08:00
Preston Van Loon
a9d2003623 Add SSL support for prylabs.net, support opengraph on alpha.prylabs.net (#2419) 2019-04-28 21:09:31 -07: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
Preston Van Loon
5249134704 set cluster manager to deposit 3.2 eth (#2416) 2019-04-28 17:23:03 -05: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
terence tsao
85daf6e807
update to 3.2ETH (#2415) 2019-04-28 14:39:05 -07:00
Raul Jordan
63378793b4
do not run assign every slot (#2412) 2019-04-28 09:44:45 -05:00
Preston Van Loon
80d47468e4 Add a temporary commenting for issue #2408 (#2409) 2019-04-27 21:56:28 -05:00
Preston Van Loon
5167fadbd7 Serve pprof http (#2406)
* serve pprof http

* add comment for linter
2019-04-27 13:41:46 -07:00
Preston Van Loon
769fcb50ab
use Network, not Peerstore (#2404) 2019-04-27 16:05:19 -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
frederickalcantara
6ddb5fa81a Added flag to disable rewards/penatlty logging (#2319)
* Added flag to disable rewards/penatlty logging

* Added flag disable log info validator function

* Added flag to disable rewards/penatlty logging

* Changed value to not have it log when it is on and have it logged when it's off

* Added flag to disable rewards/penatlty logging

* Built for cli & types

* fixing flag issue

* Added ctxCli to the validator struct

* Accepted change

* Fixing conditionals and merge conflicts

* Added bracket

* fixed the return statement to its proper place

* Added validator conditional for logging penalties & rewards

* Added conditional for logging penality/reward info

* Making conditional command line log refactorable

* also part of the last commit

* Changed value variable to lowercase

* Fixed if conditional for penalty reward validation

* Synced with master

* Fixed bazel build

* Syncing with master

* Sync with master

* Added true values to logValidator Balances

* Changed values from true to false

* FIX WIP

* Added variables to the validators

* Added negation for logValidatorBalances variable

The name of the flag is DisablePenaltyRewardLogFlag. Since the name of the var is logValidatorBalances. We are assuming that the variable will have a positive. It makes more sense to negate the disable flag as a value rather than keep it positive.

Co-Authored-By: frederickalcantara <frederickaalcantara@gmail.com>

* fixed password

* Remove prevBalance line
2019-04-27 11:56:11 +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
Raul Jordan
706aa9b82f
Update Jaeger Export Tracing (#2382)
* added exporter

* fixed jaeger export

* lint

* imports
2019-04-25 10:59:18 -05:00
terence tsao
a84fd21cd7 Minor Cosmetic Updates to Validator Logging (#2377)
* update validator logs

* ops, revert mid point

* do it before the wait

* delta
2019-04-25 11:10:58 -04: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
Preston Van Loon
8abd2e51bd
Update flags.go (#2376) 2019-04-25 07:59:12 -04:00
Preston Van Loon
66f3964c1b allow CORS from anywhere (#2375) 2019-04-24 15:57:06 -05: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