RecorderChainBlock

\class RecorderChainBlock Class represents 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 recorder_doc, Fingerprint previous, Fingerprint bullseye, long epoch_number, const(HashNet) net) { this.recorder_doc = recorder_doc; this.previous = previous; this.bullseye = bullseye; this.epoch_number = epoch_number; 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 recorder_doc - Document with recorder for block @param previous - fingerprint of the previous block @param bullseye - bullseye of database @param net - hash net

Variables

bullseye
Fingerprint bullseye;

Bullseye of DART database

epoch_number
long epoch_number;

Epoch number

fingerprint
Fingerprint fingerprint;

Fingerprint of this block

previous
Fingerprint previous;

Fingerprint of the previous block

recorder_doc
Document recorder_doc;

Recorder with database changes of this block

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 recorder_doc, Fingerprint previous, Fingerprint bullseye, long epoch_number, const(HashNet) net) { this.recorder_doc = recorder_doc; this.previous = previous; this.bullseye = bullseye; this.epoch_number = epoch_number; 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