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

class Round
struct Rounder {
Round last_round;
Round last_decided_round;
Round round_to_be_decided;
HashGraph hashgraph;
Event[] last_witness_events;
enum rounds_beyond_limit;
}

Members

Functions

cached_decided_count
uint cached_decided_count()

Number of decided round in cached in memory

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

length
size_t length()

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

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

Range from this round and down

set_round
void set_round(Event e)

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

Structs

Range
struct Range(bool CONST = true)

Range of rounds