Round

Handles the round information for the events in the Hashgraph

Members

Functions

add
void add(Event event)

Adds the even to round

decided
bool decided()

Check if the round has been decided

empty
bool empty()

Check of the round has no events

event
inout(Event) event(size_t node_id)

Get the event a the node_id

event_count
size_t event_count()

Counts the number of events which has been set in this round

events
const(Event[]) events()

All the events in the first ooccurrences of this round

lessOrEqual
bool lessOrEqual(Round rhs)

Compare the round number

next
const(Round) next()
Undocumented in source. Be warned that the author may not have intended to support it.
node_size
const(uint) node_size()

Number of events in a round should be the same as the number of nodes in the hashgraph

opSlice
Rounder.Range!false opSlice()
Rounder.Range!true opSlice()

Range from this round and down

previous
Round previous()

Previous round from this round

previous
const(Round) previous()
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(const(Event) event)

Remove the event from the round

Structs

Rounder
struct Rounder

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

Variables

_decided
bool _decided;
Undocumented in source.
_events
Event[] _events;
Undocumented in source.
_next
Round _next;
Undocumented in source.
_previous
Round _previous;
Undocumented in source.
coin_round_limit
enum int coin_round_limit;
Undocumented in source.
famous_mask
BitMask famous_mask;
Undocumented in source.
number
long number;
Undocumented in source.
total_limit
enum uint total_limit;
Undocumented in source.

Meta