Victor Farazdagi
9bf80219c9
Applies assertion funcs to slasher/* tests ( #6998 )
...
* slasher/beaconclient tests
* slasher/db/kv tests
* Merge branch 'master' into apply-testutils-assertions-to-slasher
* fix build
* slasher/detection tests
* rest of the tests
* misc tests
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Update slasher/db/kv/spanner_test.go
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* Update slasher/node/node_test.go
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
* Update slasher/db/kv/spanner_test.go
* Merge refs/heads/master into apply-testutils-assertions-to-slasher
2020-08-18 12:41:25 +00:00
Shay Zluf
8ddfde41e3
Historical detection fix ( #6455 )
...
* Historical detection before realtime detection
* comment fixes
* remove logs
* remove logs
* remove logs
* gaz
* handle underflow
* add regressiion test
* update test name
* gaz
* gofmt
* fix comment
Co-authored-by: Ivan Martinez <ivanthegreatdev@gmail.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-07-07 05:57:40 +03:00
Ivan Martinez
ecea979b60
Change StreamIndexedAttestations to use target root for state regen ( #5971 )
2020-05-26 09:21:17 -07:00
Ivan Martinez
b810243f41
Reverse historical detection flag for slasher ( #5958 )
...
* Reverse historical detection flag
* Merge branch 'master' of github.com:prysmaticlabs/prysm into reverse-historical-flag
* Merge branch 'master' of github.com:prysmaticlabs/prysm into reverse-historical-flag
* Fix build
* Merge refs/heads/master into reverse-historical-flag
* Fix test
* Merge branch 'reverse-historical-flag' of github.com:prysmaticlabs/prysm into reverse-historical-flag
* Merge refs/heads/master into reverse-historical-flag
2020-05-23 06:40:15 +00:00
terence tsao
a90ffaba49
Archived point retrieval and recovery ( #5075 )
2020-03-11 17:38:30 -07:00
Ivan Martinez
8334aac111
Batch saving of attestations from stream for slasher ( #5041 )
...
* Batch saving of attestations from stream for slasher
* Progress on test
* Fixes
* Fix test
* Rename
* Modify logs and timing
* Change
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-03-09 12:49:40 -05:00
Raul Jordan
14b3181e67
Plug-In Attester Slashing Detection Into Slasher Runtime ( #4937 )
...
* more spanner additions
* implement iface
* begin implement
* wrapped up spanner functions
* rem interface
* added in necessary comments
* comments on enums
* begin adding tests
* plug in surround vote detection
* saved indexed db implementation
* finally plugin slashing for historical data
* Small fixes
* add in all gazelle
* save incoming new functions
* resolve todo
* fix broken test channel item
* tests passing when fixing certain arguments and setups
* Add comment and change unimplemented
* find surround
* added in gazelle
* gazz
* feedback from shay
* fixed up naming
* Update
* Add tests for detectSurroundVotes
* Remove logs
* Fix slasher test
* formatting
* Remove unneeded condition
* Test indices better
* fixing broken build
* pass tests
* skip tests
* imports
* Update slasher/detection/attestations/attestations_test.go
* Update slasher/beaconclient/historical_data_retrieval_test.go
* Address comments
* Rename function
* Add comment for future optimization
* Fix comment
Co-authored-by: Ivan Martinez <ivanthegreatdev@gmail.com>
2020-02-27 12:22:39 -05:00
Raul Jordan
d143187b7e
Request All Indexed Attestations Since Genesis in Slasher on Startup ( #4894 )
...
* include fixes
* rev
* logrus
* tests for query sync status and chain head
* begin tests for indexed atts
* test passing for requesting historical atts
* Update slasher/beaconclient/chain_data_test.go
* Update slasher/beaconclient/historical_data_retrieval.go
* lint
* fixed up wanted vs receied
* fix mock
* gazelle
* fix broken build
* tests pass
* dep
* gaz
* add dep
* tests pass
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-02-19 16:26:14 -06:00
Raul Jordan
868c8f5dd4
Detection Service Creation ( #4867 )
...
* visibility added
* register in node
* fixed up imports
* include detection listeners for feed
* subscribe to blocks and todos
* tests passing
* todos
* pkg comment
2020-02-14 13:03:25 -06:00
terence tsao
16fef1c658
Better attesting summary reporting ( #4845 )
2020-02-12 13:38:19 -08:00
Raul Jordan
a7325315a8
Include Beacon Client Package in Slasher ( #4835 )
...
* begin beacon client
* adding in the proper receivers
* include all parts of the beacon client
* all comments included
* visibility and package comment
2020-02-11 15:35:31 -06:00