Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Sep 5, 2022
1 parent 668bfb7 commit 8a73f84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions nano/node/hinted_scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ class active_transactions;
class vote_cache;
class online_reps;

/*
* Monitors inactive vote cache and schedules elections with the highest observed vote tally.
*/
class hinted_scheduler final
{
public: // Config
Expand All @@ -34,6 +37,9 @@ class hinted_scheduler final

void start ();
void stop ();
/*
* Notify about changes in AEC vacancy
*/
void notify ();

private:
Expand Down
5 changes: 4 additions & 1 deletion nano/test_common/testutil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
} \
EXPECT_NO_ERROR (ec);

/** Asserts that the condition becomes true within the deadline */
/*
* Asserts that the `val1 == val2` condition becomes true within the deadline
* Checked expressions should not modify any state
*/
#define ASSERT_TIMELY_EQ(time, val1, val2) \
system.deadline_set (time); \
while (!((val1) == (val2)) && !system.poll ()) \
Expand Down

0 comments on commit 8a73f84

Please sign in to comment.