new Cluster()
Every user starts with its own copy of blockchain wich must be synchronized between other peers in network - using my own implementation of gossip protocol
Peers known about each other through signaling server and are automatically connected to a pool.
Cluster communicates with every other component in blockchain
- Source:
Methods
(async) fetchList() → {Promise.<void>}
This function fetching list of active peers in network
- Source:
Returns:
- Type
- Promise.<void>
gossip()
This function is responsible for data exchange between random peers
- Source:
gossipWithInterval()
- Source:
- See:
-
- gossip Gossiping with given interval
mine()
Mine current transactions and reward miner
- Source:
mineWithInterval()
- Source:
- See:
-
- mine Mining with given interval
stop()
This function stops mining and gossiping intervals if active
- Source: