Round.Rounder

The rounder takes care of cleaning up old round and keeps track of if an round has been decided or can be decided

Constructors

this
this()
Undocumented in source.
this
this(HashGraph hashgraph)
Undocumented in source.

Members

Functions

cached_decided_count
uint cached_decided_count()

Number of decided round in cached in memory

check_decide_round
void check_decide_round()
Undocumented in source. Be warned that the author may not have intended to support it.
check_decided_round_limit
bool check_decided_round_limit()

Check the coin round limit

coin_round_distance
long coin_round_distance()

Calculates the number of rounds since the last decided round

collect_received_round
void collect_received_round(Round r, HashGraph hashgraph)

Call to collect and order the epoch

decided
bool decided(Round test_round)

Check of a round has been decided

dustman
void dustman()
Undocumented in source. Be warned that the author may not have intended to support it.
erase
void erase()
Undocumented in source. Be warned that the author may not have intended to support it.
isEventInLastDecidedRound
bool isEventInLastDecidedRound(const(Event) event)
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()

* Number of round epoch in the rounder queue * Returns: size of the queue

next_round
void next_round(Event e)

Sets the round for an event and creates an new round if needed

node_size
uint node_size()

Number of the same as hashgraph

opSlice
Range!false opSlice()
Range!true opSlice()

Range from this round and down

vote
void vote(HashGraph hashgraph, size_t vote_node_id)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Range
struct Range(bool CONST = true)

Range of rounds

Variables

hashgraph
HashGraph hashgraph;
Undocumented in source.
last_decided_round
Round last_decided_round;
Undocumented in source.
last_round
Round last_round;
Undocumented in source.
voting_round_per_node
Round[] voting_round_per_node;
Undocumented in source.

Meta