Event

HashGraph Event

Constructors

this
this(immutable(EventPackage)* epack, HashGraph hashgraph, uint check_graphtype)

Builds an event from an eventpackage

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Classes

Witness
class Witness

The witness event will point to the witness object This object contains information about the voting etc. for the witness event

Functions

altitude
immutable(int) altitude()

Get the altitude of the event

channel
immutable(Pubkey) channel()

Channel from which this event has received

connect
void connect(HashGraph hashgraph)

Connect the event to the hashgraph

connected
bool connected()

Checks if the event is connected in the graph

daughter
const(Event) daughter()

Gets the daughter event

disconnect
void disconnect(HashGraph hashgraph)

Disconnect this event from hashgraph Used to remove events which are no longer needed

event_body
const(EventBody) event_body()

The event-body from this event

father
const(Event) father()

Mother event

hasRound
bool hasRound()

Check if an event has around

isFatherLess
bool isFatherLess()

A father less event is an event where the ancestor event is connect to an Eva event without an father event An Eva is is also defined as han father less event This also means that the event has not valid order and must not be included in the epoch order.

isFront
bool isFront()

Checks if this event is the last one on this node

mother
const(Event) mother()

Mother event

nodeOwner
bool nodeOwner()

Is this event owner but this node

order
int order()

Gets the event order number

payload
const(Document) payload()

Get

round
const(Round) round()

Round of this event

round_received
const(Round) round_received()

The received round for this event

son
const(Event) son()

Gets the son of this event

witness
const(Witness) witness()

Gets the witness infomatioin of the event

witness_event
void witness_event()

Makes the event a witness

Variables

_daughter
Event _daughter;

Points to the direct self-ancestor

_father
Event _father;

Points to other-parent

_intermediate_event
bool _intermediate_event;

Marks when an additional witness seen is connected

_intermediate_seen_mask
BitMask _intermediate_seen_mask;

Intermediate seen from this event

_mother
Event _mother;

Points to the self-parent

_order
int _order;

Event order higher value means after

_round
Round _round;

The where the event has been created

_round_received
Round _round_received;

The round in which the event has been voted to be received

_son
Event _son;

Points to the direct other-ancestor

_witness
Witness _witness;

Contains information for the witness events

_witness_seen_mask
BitMask _witness_seen_mask;

Witness seen in previous round from this event

collector
bool collector;

Epoch collector event

event_package
immutable(EventPackage*) event_package;

Then exchanged event information

id
uint id;

Event id

node_id
uint node_id;

Node number of the event