prysm-pulse/slasher/beaconclient
rkapka 1f21e196b6
Fix multiple anti-patterns from DeepSource analysis (#6951)
* Merge variable declaration and assignment
* Use result of type assertion to simplify cases
* Replace call to bytes.Compare with bytes.Equal
* Drop unnecessary use of the blank identifier
* Replace x.Sub(time.Now()) with time.Until(x)
* Function literal can be simplified
* Use a single append to concatenate two slices
* Replace time.Now().Sub(x) with time.Since(x)
* Omit comparison with boolean constant
* Omit redundant nil check on slices
* Nested if can be replaced with else-if
* Function call can be replaced with helper function
* Omit redundant control flow
* Use plain channel send or receive
* Simplify returning boolean expression
* Merge branch 'origin-master' into fix-antipatterns
* Merge branch 'master' into fix-antipatterns
2020-08-10 16:16:45 +00:00
..
BUILD.bazel Slasher redial (#6889) 2020-08-05 21:17:00 +00:00
chain_data_test.go Is slashable block rpc endpoint implementation (#5765) 2020-05-08 08:51:56 +03:00
chain_data.go Change ListIndexedAttestations to be more slasher friendly (#5930) 2020-05-20 19:52:18 +00:00
historical_data_retrieval_test.go Assert no side effects occur on test (#5714) 2020-05-05 08:39:38 +00:00
historical_data_retrieval.go Move MaxRPCPageSize flag from beacon node to shared/cmd (#6297) 2020-06-29 09:17:24 -05:00
metrics.go Add in Slasher Metrics (#5060) 2020-03-10 19:41:55 +00:00
receivers_test.go Historical detection fix (#6455) 2020-07-07 05:57:40 +03:00
receivers.go Fix multiple anti-patterns from DeepSource analysis (#6951) 2020-08-10 16:16:45 +00:00
service_test.go Request All Indexed Attestations Since Genesis in Slasher on Startup (#4894) 2020-02-19 16:26:14 -06:00
service.go Slasher redial (#6889) 2020-08-05 21:17:00 +00:00
submit_test.go Only log attester slashing found for valid slashings (#5954) 2020-05-22 10:19:10 -05:00
submit.go Add flat spans to slasher runtime (#6287) 2020-06-22 09:55:52 -05:00
validator_retrieval_test.go slasher retrieve and cache validator public key (#5220) 2020-04-02 06:08:23 +03:00
validator_retrieval.go slasher retrieve and cache validator public key (#5220) 2020-04-02 06:08:23 +03:00