Round

Handles the round information for the events in the Hashgraph

@safe
class Round {
enum uint total_limit;
enum int coin_round_limit;
protected
Round _previous;
protected
Round _next;
protected
BitMask _valid_witness;
immutable
int number;
protected
bool _decided;
}

Members

Functions

add
void add(Event event)

Adds the even to round

empty
bool empty()

Check of the round has no events

event
const(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

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

Range from this round and down

previous
Round previous()

Previous round from this round

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

_visit_node_mask
BitMask _visit_node_mask;

Mark if a node has been connected in this round