Commit Graph

2170 Commits

Author SHA1 Message Date
Dan
71b5d5beec Adding the BlockTreeBySlots function for getting the Block tree filte… (#2720) 2019-06-01 22:41:17 -07:00
Preston Van Loon
55bedd0745 Move go-ssz to external repo under MIT license (#2722) 2019-05-29 18:04:25 -07:00
Antoine Toulme
932e68571b expose p2p private key for static peering (#2719)
* expose p2p private key for static peering

* Review revisions

* Use testutil.TempDir()

* Use testing.T to report fatal errors
2019-05-29 15:43:23 -04:00
Antoine Toulme
fcc54317a3 Fix static peering (#2725)
* Fix static peering

* Fix import and use a slice to assemble peers to watch for

* Add a check for zero-length

* Fix duplicate import
2019-05-29 15:30:26 -04:00
Nishant Das
3871be006c Update Renovate (#2711) 2019-05-28 06:13:35 -07:00
Preston Van Loon
9ce5de3d95 Add flag to whitelist certain connections (#2716) 2019-05-28 05:54:49 -07:00
Hsien-Tang Kao
0aeaed866e Fix attester server test data race (#2708) 2019-05-27 06:22:51 -07:00
Preston Van Loon
e71e91c9aa
update BLS (#2692) 2019-05-25 11:26:03 -04:00
Preston Van Loon
2d7dcfae61
fix joonix log after https://github.com/joonix/log/pull/13 (#2691) 2019-05-24 16:54:03 -04:00
skillful-alex
305fea5bdb fix panic if activeValidatorIndices is zero (#2621)
* fix panic if activeValidatorIndices is zero

* add unit test
2019-05-24 16:34:33 -04:00
LamboshiNakaghini
4fd8ddf8ca update README.md (#2684)
* Update README.md

Added more complete instructions for running testnet on Linux.

* Update README.md
2019-05-24 16:23:20 -04:00
Hsien-Tang Kao
3bf46ff6e8 Update CONTRIBUTING.md (#2679) 2019-05-23 06:30:00 -07:00
shayzluf
5e3931dc44 change rebase into pull (#2669) 2019-05-22 14:53:46 -07:00
Dan
b040ac909e Persistent logs (#2660)
* added file log feature

* moved the logic to one central location (shared/logutil/logutil.go), removed new line chars from file logs

* removed a resdundant temp file refrences that went into beachon-chain/BUILD.bazel by mistake

* Update shared/cmd/flags.go

Co-Authored-By: shayzluf <thezluf@gmail.com>

* Update shared/cmd/flags.go

Co-Authored-By: shayzluf <thezluf@gmail.com>

* manually added loguitl dep to the go image target

* Manaully added the logutil dep to the go image target

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update validator/main.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update validator/main.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: terence tsao <terence@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: terence tsao <terence@prysmaticlabs.com>

* syntax and styling changes required by code reviewers

* Update beacon-chain/main.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update beacon-chain/main.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* changed the return type of 'ConfigurePersistentLogging' from bool, error to error based on recommendation from code review

* ran goimports in beacon-chain/main.go after tests have failed

* Update beacon-chain/main.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update beacon-chain/main.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update beacon-chain/main.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update validator/main.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Update validator/main.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Changes requested by code reviewer

* Added a mandatory comment (linter required)  to the 'Fire' event

* Changed the beacon-chain and validator to support only same format stdout and file logging due to complications in the outputs when using different formats.

* Had to run gazelle --fix due to check failure
2019-05-22 09:22:11 -04:00
Preston Van Loon
2617f5c3ac Eth1 bal monitoring followup (#2651)
* Add eth1 balance monitoring

* lint

* lint

* priority

* lint

* use value in alerts

* fix beacon-chain service

* working on stability

* more yaml

* add more alerts to the finality alerts

* add nother header to ignore

* extend requirement time for low balance

* remove old flag

* remove extra flag

* feedback to use consistent flag

* PR feedback

* fix image build
2019-05-20 14:05:04 -04:00
Preston Van Loon
3f205e462f
add security file (#2662) 2019-05-20 12:55:38 -04:00
Preston Van Loon
46f215b673 Renovate updates (#2661) 2019-05-20 11:10:43 -04:00
Preston Van Loon
40588021d4 Add eth1 balance monitoring alert (#2575)
* Add eth1 balance monitoring

* lint

* lint

* priority

* lint

* use value in alerts

* fix beacon-chain service

* working on stability

* more yaml

* add more alerts to the finality alerts

* add nother header to ignore

* extend requirement time for low balance

* remove old flag

* remove extra flag

* feedback to use consistent flag
2019-05-19 10:52:17 -04:00
Raul Jordan
632f6797cd Reverts #2638 #2637 #2630 (#2640)
* Revert "fix nil block (#2638)"

This reverts commit d43ea74244.

* Revert "add to topic mapping (#2637)"

This reverts commit 85ef099360.

* Revert "Reorg to an Announced Finalized Block if On a Different Chain (#2630)"

This reverts commit 08288f0958.
2019-05-17 22:27:44 -04:00
terence tsao
3bad541f3c
Revert "remove canonical attestation filtering (#2635)" (#2639) 2019-05-17 22:16:45 -04:00
Raul Jordan
d43ea74244
fix nil block (#2638) 2019-05-17 21:31:28 -04:00
Raul Jordan
85ef099360
add to topic mapping (#2637) 2019-05-17 20:48:28 -04:00
Raul Jordan
50063912a8 Remove Expensive Participation Rate Prometheus Gauge (#2636)
* rem expensive prom gauge

* rem prom
2019-05-17 19:57:13 -04:00
terence tsao
becd06553b
remove canonical attestation filtering (#2635) 2019-05-17 19:47:16 -04:00
Preston Van Loon
bdf4590b86 Fix config value, yaml fixes (#2634)
* minor fixes

* go back to 8
2019-05-17 19:27:13 -04:00
Preston Van Loon
208c5dfea6 Revert "Disable libp2p TLS security protocols for now (#2622)" (#2633) 2019-05-17 18:59:01 -04:00
Nishant Das
25ce3a3676 Add Excess Deposit Flag to allow Validator Balances more than 32 ETH (#2625)
* add flags and code

* adding tests

* gaz

* Update shared/featureconfig/config.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>
2019-05-17 17:10:34 -04:00
Raul Jordan
08288f0958
Reorg to an Announced Finalized Block if On a Different Chain (#2630)
* proto changes

* spacings

* rem root

* finalized root

* regen

* handle finalized state announcement

* handle finalized announcement

* fixed broken tests

* finalized state switch

* tests passing

* sync service imports

* check interface impl
2019-05-17 16:58:04 -04:00
Preston Van Loon
72d1fa2899 Change a few params in k8s (#2628) 2019-05-17 16:28:53 -04:00
terence tsao
3349fb4cba increase slots per epoch to 16 (#2627) 2019-05-17 14:41:49 -04:00
Preston Van Loon
15cac0c0b1
Disable libp2p TLS security protocols for now (#2622)
* Disable security protocols for now

* Enabling security for test only. See https://github.com/libp2p/go-libp2p-swarm/issues/124

* Fix spacing
2019-05-17 13:29:25 -04:00
terence tsao
b9fe8b172c Filter Canonical Attestation by Default (#2626)
* exclusive of finalized block

* filter canonical attestations by default
2019-05-17 13:17:29 -04:00
Preston Van Loon
dd734f23c3 Handle unmarshal failures (#2624) 2019-05-17 11:12:17 -04:00
Raul Jordan
40fb4b01fa Override Finalized State Announcement Proto (#2623) 2019-05-17 10:59:00 -04:00
Preston Van Loon
d20c3d6cf7 Add better, incremental reputation (#2618)
* add better, incremental reputation

* remove space

* Lint
2019-05-17 22:04:38 +08:00
Raul Jordan
15a48dbd75 New Finalized State Announcement Protobuf (#2619) 2019-05-16 22:06:40 -04:00
Nishant Das
fc4fd7834b fix panic (#2613) 2019-05-16 11:17:26 -04:00
terence tsao
5e4b9c0909
Add Total Vote Count for Block Tree (#2576) 2019-05-16 11:05:27 -04:00
Preston Van Loon
4837629091 Add timestamp metadata to p2p messages (#2611) 2019-05-15 21:28:02 -07:00
Nishant Das
64ce41f9fc Add Check for Goroutines Count (#2608)
* changes

* revert ide

* goimports

* Update shared/cmd/flags.go
2019-05-15 10:38:27 -04:00
Nishant Das
56130404fc
Change Logging of Failed Attestations (#2599)
* change logging

* review comments

* gazelle
2019-05-15 09:09:39 +08:00
Andrew
d672a06026 Updated README Deploying with Docker in Windows (#2598)
Updated instructutions for running Beacon Node in Docker on Windows. The process requires a few additional steps to make a local volume available to mount the data dir. If this doesn't happen, the /tmp/prysm-data dir won't be created at run, and the chaindata will not be stored locally, nor will the account creation process store the key files appropriately for reference when running the validator.
2019-05-14 10:40:52 -04:00
terence tsao
c10c45c4b1 Renovate Renovate Updates (#2587)
* exclusive of finalized block

* Update com_github_atlassian_bazel_tools commit hash to 20cbdb1

* Update io_bazel_rules_k8s commit hash to 7475ba2

* Update dependency build_bazel_rules_nodejs to v0.29.0

* Update dependency com_github_jbenet_goprocess to v0.1.3

* Update dependency com_github_prometheus_common to v0.4.0

* Update dependency io_bazel_rules_go to v0.18.4

* Update dependency org_golang_google_api to v0.5.0

* Update libp2p

* Update prysm_testnet_site commit hash to 0438607

* renovate updates

* fixed duplication
2019-05-14 01:37:12 -04:00
Preston Van Loon
fd4c7ffc07
Add new log formats and set fluentd as default for cluster (#2594)
* Add new log formats and set fluentd as default for cluster

* fix image build
2019-05-13 20:43:04 -04:00
Preston Van Loon
23880351f8
Handle race condition in progress (#2589)
* Handle in progress condition

* Handle in progress condition

* add test too

* space
2019-05-13 14:42:57 -04:00
Nishant Das
e33a6d8aa5 Fix Bitfield Errors (#2588) 2019-05-13 06:43:02 -07:00
Nishant Das
eef35996de Blacklist Keys in Cluster PK Manager (#2536)
* initialize rpc client

* add struct

* gaz

* add keymap

* update proto and add rpc methods

* update proto

* add method

* make changes

* add routine

* gaz

* mockgen

* error fix

* prom metric

* Some improvements

* fixes

* fix and working cluster pk manager

* fix and working cluster pk manager

* fix and working cluster pk manager

* fix and working cluster pk manager

* regen mocks and pb.go

* k8s
2019-05-12 16:38:37 -04:00
Jim McDonald
215e6fc494 Do not panic when the beacon node is shut down. (#2571) 2019-05-12 11:58:07 -04:00
Antoine Toulme
c9ce8b5246 Allow discovery to be removed, and add peers explicitly to peer store (#2557)
* Allow discovery to be removed, and add peers explicitly to peer store

* Changes after code review

* Update shared/cmd/flags.go

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>
2019-05-11 18:02:58 -04:00
Preston Van Loon
9f7f7d6cff
Tracing improvements (#2570)
* some improvements

* fix

* gazelle

* disable lostcancel
2019-05-11 17:43:55 -04:00