* update workspace
* change to new version
* gaz
* set keys
* try more things
* finally fixed all tests
* fix bootnode
* Update beacon-chain/p2p/discovery.go
Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>
* preston's and raul's review
* add http server
* add tool
* add image
* change comment
* add multiaddr comment
* lint
* cosmetic changes
* fix docker
* remove dep
* preston's requested changes
* new flags
* add support for separate tcp port
* fix refs
* change tcp port
* coldstart flags for validator
* WIP beacon node flags
* wip beacon chain, flag fix in validator, arg fix in validator
* checkpoint
* Added interop service
* working on mock chainstart
* save the state lol
* fix tests
* Save genesis validators
* gaz
* fix validator help flags
* WaitForChainStart actually waits for genesis time
* cold start fixes
* cache
* change back
* allow for genesis state too
* remove logs
* increase mmap size
* dont process if head doesn't exist
* add 10ms tolerance
* enable libp2p debug at debug, fix pubsub
* works with checkpt
* initialize justified and finalized in db
* Removed preloadStatePath from blockchain service
* Clean up
* Write to disk for now post state
* revert b466dd536f8eadbdae2264a545a755370223d917
* Builds
* Only RPC test fails now
* use minimal config, no demo config
* clean up branch
* Lint
* resolve lint
* more lint fixes
* lint
* fix viz
* Fixing RPC test
* skip before epoch 2
* RPC time out
* Fixed ordering
* rename
* remove some dbg statements
* ensure index is correct
* fix some panics
* getting closer
* fix tests
* Fix private key
* Fixed RPC test
* Fixed beacon chain build for docker
* Add interop.go to validator go_image
* Fixed docker build
* handle errors
* skip test, skip disconnecting peers
* Fixed docker build
* tolerance for attestation processing
* revert copy
* clearer err message parse
* fix launching from dep contract
* add main.go
* interop readme
* proper visibility
* standardize and abstract into simpler funcs
* formatting
* no os pkg
* add test
* no panics anywhere, properly and nicely handle errors
* proper comments
* fix broken test
* readme
* comment
* recommend ssz
* install
* tool now works
* README
* build
* readme
* 64 validators
* rem print
* register the no powchain flag
* work on mock eth1 start
* common interface
* getting closer with the interface defs
* only two uses of powchain
* remove powchain dependency
* remove powchain dependency
* common powchain interface
* proper comment in case of flag
* proper args into rpc services
* rename fields
* pass in mock flag into RPC
* conforms to iface
* use client instead of block fetcher iface
* broken tests
* block fetcher
* finalized
* resolved broken build
* fix build
* comment
* fix tests
* tests pass
* resolved confs
* took them out
* rename into smaller interfaces
* resolve some confs
* ensure tests pass
* properly utilize mock instead of localized mock
* res lint
* lint
* finish test for mock eth1data
* run gazelle
* include flag again
* fix broken build
* disable powchain
* dont dial eth1 nodes
* reenable pow
* use smaller interfaces, standardize naming
* abstract mock into its own package
* faulty mock lint
* fix stutter in lint
* rpc tests all passing
* use mocks for operations
* no more mocks in the entire rpc package
* no mock
* viz
* testonly
* Added the 'enable-upnp' flag to the list of supported command line arguments.
If the user specifies this feature flag (adds --enable-upnp as an argument) - the Beacon-chain and Validator services, when started, will initialize libp2p with the UPNP options.
* Added the new arg to usage.go due to test failure
* Update shared/p2p/service.go
Changed the logging according to Preston's recommendation.
Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>
* Code review changes:
1. File formatting.
2. Command line arg more detailed description.
* bls spec tests
* add more bls tests
* use ioutil instead of bazel runfiles
* dont read bytes
* skip tests that overflow uint64
* manually fix input data
* add tests
* lint and gaz
* add all new changes
* some refactoring, cleanup, remove new API methods that only exist for tests
* gaz
* Remove yamls, skip test
* 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
* 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>
* 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
* Create a feature flagging system
* Refactor how featureflags works and improve docs
* Gazelle and final touches
* Refactor, new flags in the package
* Remove old flags since they have been moved
* Fix bazel
* Update to comments
* Full coverage
* Fix formatting
* Align code with numbers
* Run bazel and fix docs
* Fix test for flag
* Implemented the flag grouping logic
* Added a usage file to the validator binary and fixed style issues
* Ran gazelle fix to fix the CI tests that failed
* Add version linking to binaries via --workspace_status_command=./scripts/workspace_status.sh
* dont export some things
* lint and better date
* even better date
* WIP: Dummy db clean service
* [WIP. NOT READY FOR REVIEW] Add DB cleanup routine that cleans block vote cache
* Add missing bazel config
* Put DB clean behind a CLI flag
* Address review comments
* Fix error handling
* Preliminary support for relay nodes
* lint
* Add comment, remove TODO
* work on relay address factory
* dial relay node, if available
* forgot new files
* fix service registry breakage
* added logging
* Added a peer count with prometheus
* always start mDNS
* fix lint
* Added prometheus client and p2p metrics
* Avoid run the adapter if the metrics are disabled
* fix visibility issue
* Fix invalid p2p.Message sent to Adapters
The middlewares (adapters) must receive the complete message to avoid
problems and the main Handler must get the values from middlewares
Also, added tests and comments for metrics package
* Added logrus hook collector
This collector is used to collect counters of log messages.
The main purpose of these metric is to know how many warnings and errors
the system are getting.
* Add hook when register the prometheus service
* update bazel builds
* fix emit tests and remove unused imports
* gazelle --fix
* remove unused logger
* move prometheus package to shared directory
* better metric names and fix metric paths
* improve metric tests and start to use promauto
* added prometheus initial documentation
* fix tests
* fix type differences with go get and bazel
* Fix service test
* start sequence for node to connect to bootstrap nodes
* lint
* maybe warning is more appropiate?
* fix gazelle
* preston's feedback
* add go-ipfs-addr to workspace
* move flag to shared
* removed routed host