EpochChainBlock

\class EpochChainBlock Class represents epoch block from recorder chain

Members

Functions

getHash
Fingerprint getHash()
Undocumented in source. Be warned that the author may not have intended to support it.
getPrevious
Fingerprint getPrevious()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin JSONString
Undocumented in source.
__anonymous
mixin HiBONRecord!(q{ private this( Document transactions, Fingerprint previous, Fingerprint bullseye, const(HashNet) net) { this.transactions_list = transactions; this.previous = previous; this.bullseye = bullseye; this.fingerprint = net.calcHash(toDoc); } private this( const(Document) doc, const(HashNet) net) { this(doc); this.fingerprint = net.calcHash(toDoc); } })

Ctor creates block from recorder, previous hash and bullseye. @param transactions - Document with list of transactions @param previous - fingerprint of the previous block @param bullseye - bullseye of database @param net - hash net

Variables

bullseye
Fingerprint bullseye;

Bullseye of DART database

fingerprint
Fingerprint fingerprint;

Fingerprint of this block

previous
Fingerprint previous;

Fingerprint of the previous block

transactions_list
Document transactions_list;

List of the transactions

Mixed In Members

From mixin JSONString

toString
void toString(void delegate(scope const(char)[]) @(safe) sink, FormatSpec!char fmt)
Undocumented in source. Be warned that the author may not have intended to support it.

From mixin HiBONRecord!(q{ private this( Document transactions, Fingerprint previous, Fingerprint bullseye, const(HashNet) net) { this.transactions_list = transactions; this.previous = previous; this.bullseye = bullseye; this.fingerprint = net.calcHash(toDoc); } private this( const(Document) doc, const(HashNet) net) { this(doc); this.fingerprint = net.calcHash(toDoc); } })

check
alias check = Check!(HiBONRecordException)
Undocumented in source.
__anonymous
mixin JSONString
Undocumented in source.
__anonymous
mixin HiBONRecordType
Undocumented in source.
isRecord
alias isRecord = HiBONRecord.isRecord!ThisType
Undocumented in source.
HAS_TYPE
enum HAS_TYPE;
Undocumented in source.
less_than
bool less_than(Key a, Key b)
Undocumented in source. Be warned that the author may not have intended to support it.
toHiBON
inout(HiBON) toHiBON()
Undocumented in source. Be warned that the author may not have intended to support it.
NO_DEFAULT_CTOR
enum NO_DEFAULT_CTOR;
Undocumented in source.
GetKeyName
template GetKeyName(uint i)
Undocumented in source.
_keys
string[] _keys()
keys
enum keys;
Undocumented in source.
this
this(HiBON hibon)
Undocumented in source.
this
this(Document doc)
Undocumented in source.
serialize
immutable(ubyte[]) serialize()
Undocumented in source. Be warned that the author may not have intended to support it.
toDoc
const(Document) toDoc()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From HashChainBlock

getHash
Fingerprint getHash()

Returns hash of block \return hash

getPrevious
Fingerprint getPrevious()

Returns fingerprint of previous block in chain \return fingerprint of previous block

toHiBON
inout(HiBON) toHiBON()

Converts structure to HiBON \return HiBON copy of this structure

isRoot
bool isRoot()

Function that says whether this block has no predecessors \return true if this block is root block

Meta