* 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
* prune atts > one epoch old
* use VerifyAttestation instead
* added test to prune invalid att
* space
* added ctx
* fixed existing tests
* gaz
* gazelle
* include bad deposits in the db
* fmt
* Update beacon-chain/powchain/log_processing.go
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
* lint
* comment
* 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>
* 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
* 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>
* 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
* 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
* 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
* 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