package
0.0.0-20190617050638-84d53aaf3fbf
Repository: https://github.com/medibloc/go-medibloc.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
CheckGenesisConfig checks if block and genesis configuration match.
InjectTxMapper injects TxMapper dependencies.
LoadGenesisConf loads genesis conf file.
NewBlockChain return new BlockChain instance.
NewBlockManager returns BlockManager.
NewBlockPool returns BlockPool.
NewBlockState creates new block state.
NewFutureTransactionPool returns FutureTransactionPool.
NewGenesisBlock generates genesis block TODO config verification, tx.verifyIntegrity, height, timestamp, chainid, ...
NewPendingTransactionPool creates PendingTransactionPool.
NewTransactionManager create a new TransactionManager.
NewTransactionState returns transaction state.
NewTransactionTemplate creates a partially filled transaction template.
NewTxContext returns TxContext.
NewTxContextWithBroadcast set broadcast flag and returns TxContext.
TxConv returns executable tx.
# Constants
1000 TPS (block interval: 3 sec, transfer tx: 1000 ).
1e10.
MaxPendingByAccount is the max number of pending transactions per account.
Block's message types.
Transaction's message types.
Block's message types.
Block's message types.
3MB.
7 * 86400 / 3 (time window: 7days, block interval: 3 sec).
Points Price related defaults.
Points Price related defaults.
# Variables
Parameters for transaction manager.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
TODO move error code.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
Error types of core package.
GenesisCoinbase coinbase address of genesis block.
GenesisHeight is height of genesis block.
GenesisParentHash is hash of genesis block's parent hash.
GenesisTimestamp is timestamp of genesis block.
4.64e-09.
Points Price related defaults.
Points Price related defaults.
Points Price related defaults.
# Structs
AccountFrom manages account's pending transactions.
AccountPayer manages payers bandwidth.
AccountPoint manages point of accounts.
Block represents block with actual state tries.
BlockChain manages blockchain structure.
BlockData represents a block.
BlockHeader is block header.
BlockManager handles all logic related to BlockChain and BlockPool.
BlockPool is a pool of all received blocks from network.
BlockState is block state.
BlockTestWrap wraps Block and exports setters.
FutureTransactionPool is a pool of all future transactions.
PendingTransactionPool struct manages pending transactions by account.
Receipt struct represents transaction receipt.
Transaction struct represents transaction.
TransactionManager manages transactions' pool and network service.
TransactionState is a structure for save transaction.
TransactionTemplateParam represents parameters for creating transaction template.
TransactionTestWrap wraps Transaction and exports setters.
TxContext struct represents a transaction with it's context.
# Interfaces
Canonical is an interface of tail block in canonical chain.
Consensus is an interface of consensus model.
ExecutableTx interface for execute transaction on state.
HashableBlock is an interface that can get its own or parent's hash.
SyncService interface for sync.
# Type aliases
TxMapper is a map for transaction to executable tx.