prysm-pulse/validator/db/kv
Shay Zluf 0cf9800b75
Fix locks and fallback to db read if attestation history map is missing a pub key data (#7937)
* minimal change to handle nil attesterHistoryByPubKey

* Revert "Always Update Attesting History If Not Slashable (#7935)"

This reverts commit 3cc2ebc5d5.

* remove unused functions

* move save before propose

* wait before go func

* move wait into the go routine

* handling map mutation

* remove map handling in this case

* log in case it is still not found

* fix log

* fix locks

* Update validator/client/attest_protect.go

* remove code duplication

* remove method extraction

* move metrics to their appropriate place

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-11-24 11:24:23 -06: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 Fix locks and fallback to db read if attestation history map is missing a pub key data (#7937) 2020-11-24 11:24:23 -06:00
attestation_history.go New attestation store for local protection (#7248) 2020-10-06 19:59:36 +00:00
BUILD.bazel Save GenesisValidatorsRoot from WaitForChainStart (#7855) 2020-11-20 18:06:12 +00:00
db_test.go Use t.TempDir() in tests (#7769) 2020-11-10 22:45:17 +00:00
db.go Save GenesisValidatorsRoot from WaitForChainStart (#7855) 2020-11-20 18:06:12 +00:00
genesis_test.go Save GenesisValidatorsRoot from WaitForChainStart (#7855) 2020-11-20 18:06:12 +00:00
genesis.go Save GenesisValidatorsRoot from WaitForChainStart (#7855) 2020-11-20 18:06:12 +00:00
manage_test.go Use t.TempDir() in tests (#7769) 2020-11-10 22:45:17 +00:00
manage.go Save GenesisValidatorsRoot from WaitForChainStart (#7855) 2020-11-20 18:06:12 +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 Save GenesisValidatorsRoot from WaitForChainStart (#7855) 2020-11-20 18:06:12 +00:00