prysm-pulse/validator/db/kv
Shay Zluf acb47f2920
Implement Standard Slashing Protection JSON With Importing Logic (#7675)
* Use new attestation protection

* tests fixes

* fix tests

* fix comment

* fix TestSetTargetData

* fix tests

* empty history handling

* fix another test

* mock domain request

* fix empty handling

* use far future epoch

* use far future epoch

* migrate data

* copy byte array to resolve sigbus error

* init validator protection on pre validation

* Import interchange json

* Import interchange json

* reduce visibility

* use return value

* raul feedback

* rename fixes

* import test

* checkout att v2 changes

* define import method for interchange format in its own package

* rename and made operations atomic

* eip comment

* begin amending test file

* finish happy path for import tests

* attempt the interchange import tests

* fixed tests

* happy and sad paths tested

* good error messages

* fix up comment with proper eip link

* tests for helpers

* helpers

* all tests pass

* proper test comment

* terence feedback

* validate metadata func

* versioning check

* begin handling duplicatesz

* handle duplicate public keys with potentially different data, first pass

* better handling of duplicate data

* ensure duplicates are taken care of

* comprehensive tests for deduplication of signed blocks

* tests for deduplication

* Update validator/slashing-protection/local/standard-protection-format/helpers_test.go

Co-authored-by: Shay Zluf <thezluf@gmail.com>

* Update validator/slashing-protection/local/standard-protection-format/helpers_test.go

Co-authored-by: Shay Zluf <thezluf@gmail.com>

* tests for maxuint64 and package level comment

* tests passing

* edge cases pass

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-11-17 22:37:43 +00:00
..
attestation_history_test.go Apply testutils assertions: final cleanup (#7003) 2020-08-25 15:23:06 +00:00
attestation_history_v2_test.go Immediate Slashing Protection Data Storage (#7789) 2020-11-12 22:07:32 +00:00
attestation_history_v2.go Immediate Slashing Protection Data Storage (#7789) 2020-11-12 22:07:32 +00:00
attestation_history.go New attestation store for local protection (#7248) 2020-10-06 19:59:36 +00:00
BUILD.bazel Use t.TempDir() in tests (#7769) 2020-11-10 22:45:17 +00:00
db_test.go Use t.TempDir() in tests (#7769) 2020-11-10 22:45:17 +00:00
db.go Prevent Usage of Stdlib File/Dir Writing With Static Analysis (#7685) 2020-11-09 14:27:03 -06:00
manage_test.go Use t.TempDir() in tests (#7769) 2020-11-10 22:45:17 +00:00
manage.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00
proposal_history_test.go Applies assertion funcs to validator tests (#6694) 2020-07-23 01:13:52 +00:00
proposal_history_v2_test.go Use new attestation protection (#7605) 2020-11-10 14:14:11 +00:00
proposal_history_v2.go Implement Standard Slashing Protection JSON With Importing Logic (#7675) 2020-11-17 22:37:43 +00:00
proposal_history.go Implement Standard Slashing Protection JSON With Importing Logic (#7675) 2020-11-17 22:37:43 +00:00
schema.go Use new proposal protection format (#7518) 2020-10-15 19:35:31 +00:00