package
0.2.0
Repository: https://github.com/coderink/gttc.git
Documentation: pkg.go.dev

# Functions

New creates a Alien delegated-proof-of-stake consensus engine with the initial signers set to the ones provided by the user.

# Variables

ErrInvalidTimestamp is returned if the timestamp of a block is lower than the previous block's timestamp + the minimum block period.
SCCurrentBlockReward is base on scMaxCountPerPeriod = 6.

# Structs

Alien is the delegated-proof-of-stake consensus engine.
API is a user facing RPC API to allow controlling the signer and voting mechanisms of the delegated-proof-of-stake scheme.
CCNotice (cross chain notice) contain the information main chain need to notify given side chain .
Confirmation : confirmation come from custom tx which data like "ufo:1:event:confirm:123" 123 is the block number be confirmed Sender of tx is Signer only if the signer in the SignerQueue for block number 123.
Declare : declare come from custom tx which data like "ufo:1:event:declare:hash:yes" proposal only come from the current candidates hash is the hash of proposal tx.
No description provided by the author
HeaderExtra is the struct of info in header.Extra[extraVanity:len(header.extra)-extraSeal] HeaderExtra is the current struct.
No description provided by the author
Proposal : proposal come from custom tx which data like "ufo:1:event:proposal:candidate:add:address" or "ufo:1:event:proposal:percentage:60" proposal only come from the current candidates not only candidate add/remove , current signer can proposal for params modify like percentage of reward distribution ...
RefundPair :.
Score to calculate at one main chain block, for calculate the side chain reward.
SCConfirmation is the confirmed tx send by side chain super node.
SCRecord is the state record for side chain.
No description provided by the author
Record for one side chain.
SCSetCoinbase is the tx send by main chain super node which can set coinbase for side chain.
No description provided by the author
Snapshot is the state of the authorization voting at a given point in time.
No description provided by the author
Vote : vote come from custom tx which data like "ufo:1:event:vote" Sender of tx is Voter, the tx.to is Candidate Stake is the balance of Voter when create this vote.

# Type aliases

RefundGas : refund gas to tx sender.
RefundHash :.
SignerFn is a signer callback function to request a hash to be signed by a backing account.
No description provided by the author
SignTxFn is a signTx.
No description provided by the author