prysm-pulse/scripts
shayzluf 0732012459 Validator-multiple key (#2069)
* first version - broken

* working proto changes

* resolve review remarks

* fix goimport issues

* fix service issues

* first logic version-broken

* first running version - no new tests

* fix validator client test

* add wait group to goroutines

* remove unused var in function call

* fix review remarks and tests

* merge master changes and fix conflicts

* gazzele fix

* fix prestonvanloon requested changes

* merge and some of terenc3t remarks addressed

* _,pk bug fix in log

* fix account file name suffix and filter not active validator out

* merge with master and fix missing parameters

* run over all public keys in hasvalidators

* add test for error when no all the validators has index in the db and hasvalidators is called

* fix runner tests fail due to timing issues

* goimports

* smaller sleep time in proposer tests

* fix UpdateAssignments loging

* fix goimports

* added && false commented TestUpdateAssignments_DoesNothingWhenNotEpochStartAndAlreadyExistingAssignments

* hasvalidators without missing publickeys list

* fix some of prestone review remarks

* fixes for prestone comments

* review changes applied

* expect context call in TestWaitForActivation_ValidatorOriginallyExists

* changed hasvalidators to return true if one validator exists

* fix init problem to getkeys

* hasvalidators requiers all validators to be in db

* validator attest assignments update

* fix ap var name

* Change name to hasallvalidators

* fix tests

* update script, fix any vs all validator calls

* fix wait for activation

* filter validator

* reuse the reply block

* fix imports

* Remove dup

* better lookup of active validators

* better filter active vlaidators, still need to fix committee assignment tests

* lint

* use activated keys

* fix for postchainstart

* fix logging

* move state transitions

* hasanyvalidator and hasallvalidators

* fix tests with updatechainhead missing

* add tests

* fix TestCommitteeAssignment_OK

* fix test

* fix validator tests

* fix TestCommitteeAssignment_multipleKeys_OK and TestWaitForActivation_ValidatorOriginallyExists

* fix goimports

* removed unused param from assignment

* change string(pk) to hex.EncodeString(pk) fix change requests

* add inactive validator status to assignments

* fix logging mess due to multi validator setup

* set no assignment to debug level

* log assignments every epoch

* logging fixes

* fixed runtime by using the right assignments

* correct activation request

* fix the validator panic

* correct assignment

* fix test fail and waitforactivation

* performance log issue fix

* fix goimports

* add log message with truncated pk for attest

* add truncated pk to attest and propose logs

* Add comment to script, change 9 to 8

* Update assignment log

* Add comment, report number of assignments

* Use WithError, add validator as field, merge block proposal log

* Update validator_propose.go

* fix

* use entry.String()

* fix fmt
2019-04-18 12:23:38 -05:00
..
apply-all-eth2-k8.sh Create bash scripts for initializing beacon chain and 8 validators (#1996) 2019-03-15 10:42:57 -04:00
check_gazelle.sh Use --batch for gazelle to help with timeouts on buildkite (#843) 2018-11-21 07:35:47 -05:00
check_visibility.sh Use --batch for gazelle to help with timeouts on buildkite (#843) 2018-11-21 07:35:47 -05:00
check-todo.sh Clean Up Todos and Add in Issue Checker (#640) 2018-10-11 13:52:09 -05:00
coverage.sh Update Documentation + Create a Subproject for Important Markdown Docs (#451) 2018-09-01 21:25:06 -05:00
deploy-deposit-contract.sh Fix bash scripts for initializing beacon-chain (#2080) 2019-04-02 15:45:40 -05:00
README.md Create bash scripts for initializing beacon chain and 8 validators (#1996) 2019-03-15 10:42:57 -04:00
setup-8-validators.sh Validator-multiple key (#2069) 2019-04-18 12:23:38 -05:00
start-beacon-chain.sh Fix bash scripts for initializing beacon-chain (#2080) 2019-04-02 15:45:40 -05:00
start-single-validator.sh Add deposit index to beacon state (#2232) 2019-04-14 18:17:39 +10:00
update-go-pbs.sh Manually run goimports in update-go-pbs.sh (#2014) 2019-03-17 16:19:38 -04:00
update-mockgen.sh Validator: performing for multiple keys - update rpc proto (#2040) 2019-03-23 19:46:25 -05:00
workspace_status.sh Add simple version to binaries via golink (#1286) 2019-01-09 23:19:33 -05:00

Bash Scripts

This subproject contains useful bash scripts for working with our repository. We have a simple tool that outputs coverage, a simple tool to check for gazelle requirements, and visibility rules tools for Bazel packages.

Instructions to run a single beacon chain node and 8 validators locally using the scripts.

  1. Ensure your private key path is correct in all the files below.

  2. Run ./deploy-deposit-contract.sh

  3. Put the resulting contract address in start-beacon-chain.sh and setup-8-validators.sh.

  4. Run ./start-beacon-chain.sh

  5. Run ./setup-8-validators.sh

  6. You can use tail -f /tmp/data/validator#.log with # as a number from 1 - 8 to view the output of the validators.