package
0.0.0-20200107211526-8e17a2142328
Repository: https://github.com/genesiskernel/go-genesis.git
Documentation: pkg.go.dev
# Functions
GetBlockchainURL is retrieving blockchain url.
GetCommissionWallet is returns commission wallet.
GetCountOfActiveNodes is count of nodes with stopped = false.
GetFirstBlockData gets data of first block from global variable.
GetFuelRate is returning fuel rate.
GetGapsBetweenBlocks is returns gaps between blocks.
No description provided by the author
No description provided by the author
GetMaxBlockFuel is returns max block fuel.
GetMaxBlockGenerationTime is returns max block generation time (in ms).
GetMaxBlockSize is returns max block size.
GetMaxBlockUserTx is returns max tx block user.
GetMaxColumns is returns max columns.
No description provided by the author
GetMaxTxTextSize is returns max tx text size.
GetMaxIndexes is returns max indexes.
GetMaxTxCount is returns max tx count.
GetMaxTxFuel is returns max tx fuel.
GetMaxTxSize is returns max tx size.
GetNode is retrieving node by wallet.
No description provided by the author
No description provided by the author
GetNodeByPosition is retrieving node by position.
GetNodeHostByPosition is retrieving node host by position.
GetNodePositionByKeyID is returning node position by key id.
GetNodePublicKeyByPosition is retrieving node public key by position.
No description provided by the author
GetNumberOfNodes is count number of nodes.
No description provided by the author
GetRbBlocks1 is returns RbBlocks1.
GetRemoteHosts returns array of hostnames excluding myself.
GetSizeFuel is returns fuel size.
HasSys returns boolean whether this system parameter exists.
IsPrivateBlockchain returns the value of private_blockchain system parameter or true.
No description provided by the author
SetFirstBlockData sets data of first block to global variable.
SysInt is converting sys string to int.
SysInt64 is converting sys string to int64.
SysString returns string value of the system parameter.
SysUpdate reloads/updates values of system parameters.
# Constants
BlockchainURL is the address of the blockchain file.
BlockReward value of reward, which is chrged on block generation.
CommissionSize is the value of the commission.
CommissionWallet is the address for commissions.
CostDefault is the default maximum cost of F.
FuelRate is the rate.
FullNodes is the list of nodes.
GapsBetweenBlocks is the time between blocks.
IncorrectBlocksPerDay is value of incorrect blocks per day before global ban.
LocalNodeBanTime is value of local ban time for bad nodes (in ms).
MaxBlockFuel is the maximum fuel of the block.
MaxBlockGenerationTime is the time limit for block generation (in ms).
MaxBlockSize is the maximum size of the block.
MaxBlockUserTx is the maximum number of user's transactions in one block.
MaxColumns is the maximum columns in tables.
MaxForsignSize is the maximum size of the forsign of transaction.
MaxIndexes is the maximum indexes in tables.
MaxTxCount is the maximum count of the transactions.
MaxTxFuel is the maximum fuel of the transaction.
MaxTxSize is the maximum size of the transaction.
NodeBanTime is value of ban time for bad nodes (in ms).
NumberNodes is the number of nodes.
PrivateBlockchain is value defining blockchain mode.
RbBlocks1 rollback from queue_bocks.
SizeFuel is the fuel cost of 1024 bytes of the transaction data.
Test equals true or 1 if we have a test blockchain.