Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DLedger ¶
type DLedger struct { Node *hashgraph.Node MyAddress string PeerAddresses []string PeerAddressMap map[string]string }
DLedger : Struct for a member of the distributed ledger
func NewDLedger ¶
NewDLedger : Initialize a member in the distributed ledger. This is not adding a new member, but rather reading a member from a list and initializing it.
func NewDLedgerFromPeers ¶
func (*DLedger) PerformTransaction ¶
PerformTransaction : Adds a transaction to the member's buffer.
func (*DLedger) Start ¶
func (dl *DLedger) Start()
Start : Starts the gossip routine in a go routine.
func (*DLedger) WaitForPeers ¶
func (dl *DLedger) WaitForPeers()
WaitForPeers : Waits for all members in the member list to be online and responsive.
Click to show internal directories.
Click to hide internal directories.