From c6a51d3979949c785774a7f4d7f35d5247597c5a Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sun, 15 Nov 2020 07:41:57 -0500 Subject: [PATCH] Delete some dead staked notary code --- src/notaries_staked.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/notaries_staked.cpp b/src/notaries_staked.cpp index 6bc458078..049c34a65 100644 --- a/src/notaries_staked.cpp +++ b/src/notaries_staked.cpp @@ -9,8 +9,7 @@ extern pthread_mutex_t staked_mutex; int8_t is_STAKED(const char *chain_name) { - static int8_t STAKED=0; - return(STAKED); + return 0; }; int32_t STAKED_era(int timestamp) @@ -23,16 +22,8 @@ int8_t StakedNotaryID(std::string ¬aryname, char *Raddress) { } int8_t numStakedNotaries(uint8_t pubkeys[64][33],int8_t era) { - int i; int8_t retval = 0; - return(retval); + return 0; } void UpdateNotaryAddrs(uint8_t pubkeys[64][33],int8_t numNotaries) { } - -CrosschainAuthority Choose_auth_STAKED(int32_t chosen_era) { - CrosschainAuthority auth; - auth.requiredSigs = (num_notaries_STAKED[chosen_era-1] / 5); - auth.size = num_notaries_STAKED[chosen_era-1]; - return auth; -};