package
3.0.3+incompatible
Repository: https://github.com/truechain/truechain-engineering-code.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BytesToBloom converts a byte slice to a bloom filter.
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
CopyHeader creates a deep copy of a fast block header to prevent side effects from modifying a header variable.
No description provided by the author
CopySnailHeader creates a deep copy of a snail block header to prevent side effects from modifying a header variable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EncodeNonce converts the given integer to a block nonce.
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
No description provided by the author
No description provided by the author
MakeSigner returns a Signer based on the given chain config and block number.
No description provided by the author
No description provided by the author
NewBlock creates a new fast block.
NewBlockWithHeader creates a fast block with the given header data.
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
NewReceipt creates a barebone transaction receipt, copying the init fields.
NewSnailBlock creates a new block.
NewSnailBlockWithHeader creates a block with the given header data.
No description provided by the author
No description provided by the author
No description provided by the author
NewTransactionsByPriceAndNonce creates a transaction set that can retrieve price sorted transactions in a nonce-honouring way.
No description provided by the author
PSender returns the address derived from the signature (PV, PR, PS) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
No description provided by the author
Sender returns the address derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.
No description provided by the author
SignTx signs the transaction using the given signer and private key.
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
TxDifference returns a new set t which is the difference between a to b.
No description provided by the author

# Constants

BloomBitLength represents the number of bits used in a header log bloom.
BloomByteLength represents the number of bytes used in a header log bloom.
CommitteeOver notify current pbft committee end fastBlock.
CommitteeStart start pbft consensus.
CommitteeStop stop pbft consensus.
CommitteeSwitchover switch pbft committee.
CommitteeUpdate update committee members and backups.
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
No description provided by the author
ReceiptStatusFailed is the status code of a transaction if execution failed.
ReceiptStatusSuccessful is the status code of a transaction if execution succeeded.
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
StateRedeem can be redeem real time (after MaxRedeemHeight block).
StateRedeemed flag the asset which is staking in the height is redeemed.
No description provided by the author
StateStakingAuto can be election in every epoch.
No description provided by the author
StateStakingOnce can be election only once.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
health enter type.
No description provided by the author
VoteAgree vote sign with agree.
VoteAgreeAgainst vote sign with against.

# Variables

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
ErrHeightNotYet When the height of the committee is higher than the local height, it is issued.
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
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
ErrSnailBlockNotOnTheCain Snail block not on the cain.
ErrSnailBlockTooSlow Snail block too slow.
ErrSnailHeightNotYet Snail height not yet.
No description provided by the author
No description provided by the author
No description provided by the author
StakingAddress is defined as Address('truestaking') i.e.

# Structs

AccessListTx is the data of EIP-2930 access list transactions.
AccessTuple is the element type of an access list.
No description provided by the author
No description provided by the author
Block represents an entire block in the truechain blockchain.
No description provided by the author
BlockReward.
Body is a simple (mutable, non-safe) data container for storing and moving a block's data contents (transactions and uncles) together.
No description provided by the author
No description provided by the author
No description provided by the author
CommitteeNode contains main info of committee node.
No description provided by the author
ElectionCommittee defines election members result.
No description provided by the author
EncryptNodeMessage all information of the committee.
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
FruitEvent for fruit event,seems not used.
GenesisAccount is an account in the state of the genesis block.
GenesisMismatchError is raised when trying to overwrite an existing genesis block with an incompatible one.
Header represents a block header in the true blockchain.
No description provided by the author
No description provided by the author
LockedValue,the key of Value is epochid.
Log represents a contract log event.
Message is a fully derived transaction and implements core.Message NOTE: In a future PR this will be removed.
NewFastBlocksEvent is posted when a block has been imported.
NewFruitsEvent is posted when a fruit has been imported.
NewMinedBlockEvent is posted when a block has been imported.
NewMinedFruitEvent is posted when a block has been Mined.
NewTxsEvent is posted when a batch of transactions enter the transaction pool.
NodeInfoEvent is posted when nodeInfo send.
go:generate gencodec -type PbftSign -field-override pbftSignMarshaling -out gen_pbftSign_json.go.
No description provided by the author
PendingLogsEvent is posted pre mining and notifies of pending logs.
PendingStateEvent is posted pre mining and notifies of pending state changes.
No description provided by the author
Receipt represents the results of a transaction.
RemovedLogsEvent is posted when a reorg happens.
No description provided by the author
No description provided by the author
SnailBlock represents an entire snail block in the TrueChain snail chain.
No description provided by the author
No description provided by the author
No description provided by the author
SnailChainSideEvent is posted when a block in SideStatTy.
SnailHeader represents a block header in the truechain truechain.
No description provided by the author
the key is epochid if StakingValue as a locked asset,otherwise key is block height if StakingValue as a staking asset.
No description provided by the author
SwitchEnter is the enter inserted in block when committee member changed.
SwitchInfos is the infos inserted in block when committee member changed.
No description provided by the author
No description provided by the author
No description provided by the author
TransactionsByPriceAndNonce represents a set of transactions that can return transactions in a profit-maximizing sorted order, while supporting removing entire batches of transactions for non-executable accounts.
.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
Signer encapsulates transaction signature handling.

# Type aliases

AccessList is an EIP-2930 access list.
No description provided by the author
A BlockNonce is a 64-bit hash which proves (combined with the mix-hash) that a sufficient amount of computation has been carried out on a block.
No description provided by the author
Bloom represents a 2048 bit bloom filter.
CommitteeMembers committee members.
EncryptCommitteeNode represent a committee member encrypt info which encrypt committeeNode with member Publickey.
Fruits is a wrapper around a fruit array to implement DerivableList.
Headers is a wrapper around a fruit header array to implement DerivableList.
No description provided by the author
LogForStorage is a wrapper around a Log that flattens and parses the entire content of a log including non-consensus fields.
No description provided by the author
ReceiptForStorage is a wrapper around a Receipt that flattens and parses the entire content of a receipt, as opposed to only the consensus fields originally.
Receipts is a wrapper around a Receipt array to implement DerivableList.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Transactions is a Transaction slice type for basic sorting.
TxByNonce implements the sort interface to allow sorting a list of transactions by their nonces.
TxByPrice implements both the sort and the heap interface, making it useful for all at once sorting as well as individually adding and removing elements.