Discover Packages
github.com/csunny/argo
src
pos
package
Version:
v0.0.0-...-2eef10d
Opens a new window with list of versions in this module.
Published: Feb 7, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Node need todo
Allow it to enter a token balance
Receive a broadcast of the latest blockchain
Receive a broadcast of which validator in the network won the latest block
Add itself to the overall list of validators
Enter block data BPM --remember, this is each validator's pulse rate
Propose a new block
Test
Use Linux nc command
nc localhost 9090
Enter Balance you want to set.
BPM use to generate a new block
Reference
Expand ▾
Collapse ▴
Documentation
¶
Blockchain is a series of validated Blocks
pickWinner creates a lottery pool of validators and chooses the validator who gets to forge a block
to the blockchain
by random selecting from the pool, weighted by amount of tokens staked
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.