Skip to content

Commit

Permalink
adding test for deferred transactions back in
Browse files Browse the repository at this point in the history
for testnet deployment
  • Loading branch information
n13 committed Jan 30, 2024
1 parent 3cafe5f commit f0db0df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
File renamed without changes.
6 changes: 2 additions & 4 deletions include/dao.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace pricing {
eosio::indexed_by<"bytime"_n, eosio::const_mem_fun<deferred_actions_table, uint64_t, &deferred_actions_table::by_execute_time>>
> deferred_actions_tables;

/*

// deferred actions test - remove
TABLE testdtrx_table {
uint64_t id;
Expand All @@ -147,7 +147,7 @@ namespace pricing {
uint64_t primary_key() const { return id; }
};
typedef multi_index<"testdtrx"_n, testdtrx_table> testdtrx_tables;
*/


ACTION assigntokdao(asset token, uint64_t dao_id, bool force);

Expand Down Expand Up @@ -235,11 +235,9 @@ namespace pricing {

ACTION executenext(); // execute stored deferred actions

/*
// Actions for testing deferred transactions - only for unit tests
ACTION addtest(eosio::time_point_sec execute_time, uint64_t number, std::string text);
ACTION testdtrx(uint64_t number, std::string text);
*/

#ifdef DEVELOP_BUILD_HELPERS

Expand Down
4 changes: 2 additions & 2 deletions src/dao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3561,7 +3561,7 @@ void dao::schedule_deferred_action(eosio::time_point_sec execute_time, eosio::ac
});
}

/*

// Test methods for deferred transactions - delete
void dao::addtest(eosio::time_point_sec execute_time, uint64_t number, std::string text) {
require_auth(get_self());
Expand Down Expand Up @@ -3591,7 +3591,7 @@ void dao::testdtrx(uint64_t number, std::string text) {
row.text = text;
});
}
*/



} // namespace hypha

0 comments on commit f0db0df

Please sign in to comment.