package
1.0.0
Repository: https://github.com/fractalplatform/fractal.git
Documentation: pkg.go.dev

# Functions

DefaultGenesis returns the ft net genesis block.
DefaultGenesisAccounts returns the ft net genesis accounts.
DefaultGenesisAssets returns the ft net genesis assets.
DefaultGenesisCandidates returns the ft net genesis candidates.
NewBlockChain returns a fully initialised block chain using information available in the database.
NewDownloader create a new downloader.
NewForkController return a new fork controller.
SetupGenesisBlock The returned chain configuration is never nil.

# Constants

BlockChainVersion ensures that an incompatible database forces a resync from scratch.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProtocolMaxMsgSize Maximum cap on the size of a protocol message.

# Variables

ErrBlacklistedHash is returned if a block to import is on the blacklist.
ErrNoGenesis genesis block not found in chain db.

# Structs

BlockChain represents the canonical chain given a database with a genesis block.
Downloader for blockchain sync block.
Error represent error by downloader.
ForkConfig fork config.
ForkInfo store in state db.
Genesis specifies the header fields, state of a genesis block.
GenesisAccount is an account in the state of the genesis block.
GenesisAsset is an asset in the state of the genesis block.
GenesisCandidate is an candidate in the state of the genesis block.
GenesisMismatchError is raised when trying to overwrite an existing genesis block with an incompatible one.
NewBlockHashesData is the network packet for the block announcements.
NewMinedBlockEvent is posted when a block has been imported.
No description provided by the author

# Interfaces

TxSenderCacher ecovers the senders from a batch of blocks and caches them back into the same data structures.