Skip to content

Commit

Permalink
Merge pull request #108 from Alien-Worlds/DEMZNE-1238_Add-a-pending-c…
Browse files Browse the repository at this point in the history
…ustodians-airgap-between-elections

Demzne 1238 add a pending custodians airgap between elections
  • Loading branch information
angelol authored Feb 28, 2023
2 parents 2b0f7f7 + e3f133a commit 470e555
Show file tree
Hide file tree
Showing 5 changed files with 289 additions and 195 deletions.
7 changes: 6 additions & 1 deletion contract-shared-headers/daccustodian_shared.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ namespace eosdac {
eosio::indexed_by<"bydecayed"_n, eosio::const_mem_fun<custodian, uint64_t, &custodian::by_decayed_votes>>,
eosio::indexed_by<"byreqpay"_n, eosio::const_mem_fun<custodian, uint64_t, &custodian::by_requested_pay>>>;

using pending_custodians_table = eosio::multi_index<"pendingcusts"_n, custodian,
eosio::indexed_by<"byvotesrank"_n, eosio::const_mem_fun<custodian, uint64_t, &custodian::by_votes_rank>>,
eosio::indexed_by<"bydecayed"_n, eosio::const_mem_fun<custodian, uint64_t, &custodian::by_decayed_votes>>,
eosio::indexed_by<"byreqpay"_n, eosio::const_mem_fun<custodian, uint64_t, &custodian::by_requested_pay>>>;

struct [[eosio::table("candidates"), eosio::contract("daccustodian")]] candidate {
eosio::name candidate_name;
eosio::asset requestedpay;
Expand Down Expand Up @@ -420,7 +425,7 @@ namespace eosdac {
void removeCustodian(name cust, name internal_dac_id);
void disableCandidate(name cust, name internal_dac_id);
void removeCandidate(name cust, name internal_dac_id);
void allocateCustodians(bool early_election, name internal_dac_id);
void allocateCustodians(name internal_dac_id);
bool permissionExists(name account, name permission);
bool _check_transaction_authorization(const char *trx_data, uint32_t trx_size, const char *pubkeys_data,
uint32_t pubkeys_size, const char *perms_data, uint32_t perms_size);
Expand Down
Loading

0 comments on commit 470e555

Please sign in to comment.