Event

HashGraph Event

Constructors

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

Builds an event from an eventpackage

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

check
alias check = Check!EventConsensusException
Undocumented in source.

Classes

Witness
class Witness

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

Functions

altitude
immutable(int) altitude()

Get the altitude of the event

attach_round
void attach_round(HashGraph hashgraph)

Attach the mother round to this event

calc_vote
void calc_vote(HashGraph hashgraph, size_t vote_node_id)
Undocumented in source. Be warned that the author may not have intended to support it.
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

containPayload
bool containPayload()
Undocumented in source. Be warned that the author may not have intended to support it.
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

eventbody
const(EventBody) eventbody()
Undocumented in source. Be warned that the author may not have intended to support it.
father
const(Event) father()

Mother event

fingerprint
immutable(Buffer) fingerprint()
Undocumented in source. Be warned that the author may not have intended to support it.
hasRound
bool hasRound()

Check if an evnet has around

initializeOrder
void initializeOrder()
Undocumented in source. Be warned that the author may not have intended to support it.
isEva
bool isEva()
Undocumented in source.
isFamous
bool isFamous()
Undocumented in source. Be warned that the author may not have intended to support it.
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

isGrounded
bool isGrounded()
Undocumented in source. Be warned that the author may not have intended to support it.
isWitness
bool isWitness()
Undocumented in source. Be warned that the author may not have intended to support it.
mother
const(Event) mother()

Mother event

nodeOwner
bool nodeOwner()

Is this event owner but this node

opSlice
Range!true opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
Range!false opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
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 recived round for this event

round_received_mask
const(BitMask) round_received_mask()

Get the mask of the received rounds

round_seen_mask
const(BitMask) round_seen_mask()

The rounds see forward from this event

sees
bool sees(Event b)
Undocumented in source. Be warned that the author may not have intended to support it.
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(ulong node_size)

Makes the event a witness

Static functions

count
uint count()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_count
uint _count;
Undocumented in source.
callbacks
EventMonitorCallbacks callbacks;
Undocumented in source.
scrapping
bool scrapping;
Undocumented in source.

Structs

Range
struct Range(bool CONST = true)
Undocumented in source.

Variables

_daughter
Event _daughter;
Undocumented in source.
_father
Event _father;
Undocumented in source.
_mother
Event _mother;
Undocumented in source.
_order
int _order;
Undocumented in source.
_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

_round_received_mask
BitMask _round_received_mask;

Voting mask for the received rounds

_round_seen_mask
BitMask _round_seen_mask;
Undocumented in source.
_son
Event _son;
Undocumented in source.
_witness
Witness _witness;
Undocumented in source.
_youngest_son_ancestors
Event[] _youngest_son_ancestors;
Undocumented in source.
error
bool error;
Undocumented in source.
event_package
immutable(EventPackage*) event_package;
Undocumented in source.
id
uint id;
Undocumented in source.
node_id
size_t node_id;

Node number of the event

pseudo_time_counter
int pseudo_time_counter;
Undocumented in source.
topic
Topic topic;
Undocumented in source.

Meta