package
0.5.0
Repository: https://github.com/bianjieai/tibc-go.git
Documentation: pkg.go.dev

# Functions

CalcBaseFee calculates the basefee of the header.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetConsensusState retrieves the consensus state from the client prefixed store.
No description provided by the author
GetHeightFromIterationKey takes an iteration key and returns the height that it references.
No description provided by the author
No description provided by the author
IterateConsensusStateAscending iterates through the consensus states in ascending order.
No description provided by the author
New creates a full sized ethash PoW scheme and starts a background thread for remote mining, also optionally notifying a batch of remote services of new work packages.
NewFaker creates a ethash consensus engine with a fake PoW scheme that accepts all blocks' seal as valid, though they still have to conform to the Ethereum consensus rules.
No description provided by the author
NewTester creates a small sized ethash PoW scheme useful only for testing purposes.
RegisterInterfaces registers the tendermint concrete client-related implementations and interfaces.
SeedHash is the seed to use for generating a verification cache and the mining dataset.
SetEthConsensusRoot sets the consensus metadata with the provided values.
No description provided by the author
VerifyEip1559Header verifies some header attributes which were changed in EIP-1559, - gas limit check - basefee check.
VerifyGaslimit verifies the header gas limit according increase/decrease in relation to the parent gas limit.

# Constants

Bounds the amount the base fee can change between blocks.
Bounds the maximum gas limit an EIP-1559 block may have.
Initial base fee for EIP-1559 blocks.
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

# Variables

No description provided by the author
ErrExtraLenth is returned if extra data is to long.
TIBC bsc client sentinel errors.
ErrHeader is returned if the header invalid.
ErrHeaderIsExist is returned if the header already in store.
No description provided by the author
ErrInvalidDifficulty is returned if the difficulty of a block is missing.
No description provided by the author
ErrInvalidGas is returned if gas data is invalid.
TIBC bsc client sentinel errors.
No description provided by the author
ErrInvalidMixDigest is returned if a block's mix digest is non-zero.
TIBC bsc client sentinel errors.
ErrMarshalInterface is returned if struct can not marshal.
No description provided by the author
TIBC bsc client sentinel errors.
ErrUnmarshalInterface is returned if interface can not unmarshal.
ErrWrongDifficulty is returned if the difficulty of a block doesn't match the turn of the signer.
No description provided by the author
No description provided by the author

# Structs

API exposes ethash related methods for the RPC interface.
ClientState from eth tracks the current validator set, latest height, and a possible frozen height.
Config are the configuration parameters of the ethash.
ConsensusState defines the consensus state from eth.
Ethash is a consensus engine based on proof-of-work implementing the ethash algorithm.
EthHeader represents a block header in the Ethereum blockchain.
Header defines the eth client consensus Header.
No description provided by the author
ProofAccount ...
No description provided by the author
No description provided by the author

# Type aliases

Mode defines the type and amount of PoW verification an ethash engine makes.