Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRejected represents a rejected error ErrRejected = fmt.Errorf("rejected") // ErrMiningWithEphemeralKey represent an error about // mining with an ephemeral node key ErrMiningWithEphemeralKey = fmt.Errorf("Cannot mine with an ephemeral key. Please Provide an " + "account using '--account' flag.") // ErrBranchParentNotInMainChain means a branch's // parent block is not on the main chain ErrBranchParentNotInMainChain = fmt.Errorf("parent block does not exist on the main chain") )
View Source
var ( // AllowedFutureBlockTime is the number of seconds // a block's timestamp can have beyond the current timestamp AllowedFutureBlockTime = 15 * time.Second // MaxBlockNonTxsSize is the maximum size // of the non-transactional data a block // can have (headers, signature, hash). MaxBlockNonTxsSize = int64(1024) // MaxBlockTxsSize is the maximum size of // transactions that can fit in a block MaxBlockTxsSize = int64(9998976) // MaximumExtraDataSize is the size of extra data a block can contain. MaximumExtraDataSize uint64 = 32 // DifficultyBoundDivisor is the bound divisor of the difficulty, // used in the update calculations. DifficultyBoundDivisor = big.NewInt(2048) // DurationLimit is the decision boundary on the blocktime duration used to // determine whether difficulty should go up or not. DurationLimit = big.NewInt(60) // GenesisDifficulty is the difficulty of the Genesis block. GenesisDifficulty = big.NewInt(50000000) // MinimumDifficulty is the minimum that the difficulty may ever be. MinimumDifficulty = big.NewInt(100000) // MinimumDurationIncrease is the minimum percent increase // a block's time can be when compared to its parent's MinimumDurationIncrease = big.NewFloat(2) )
Block parameters
View Source
var ( // FeePerByte is the amount to be paid // as fee for a single byte. FeePerByte = decimal.NewFromFloat(0.00001) // TxTTL is the number of days a transaction // can last for in the pool TxTTL = 7 )
View Source
var ( // Decimals is the number of coin decimal places Decimals = int32(18) )
Monetary parameters
View Source
var ( // MaxGetBlockHashes is the max number of block headers to request // from a remote peer per request. MaxGetBlockHashes = int64(5) )
Gossip parameters
View Source
var (
// MaxTxExecutionTime is the number of seconds within which a blockcode must execute a transaction
MaxTxExecutionTime = 15
)
View Source
var ( // PoolCapacity is the max. number of transaction // that can be added to the transaction pool at // any given time. PoolCapacity = int64(10000) )
Transaction parameters
View Source
var ( // QueueProcessorInterval is the duration between each // attempt to process a job from the queues managed by // the block manager QueueProcessorInterval = 1 * time.Second )
Engine parameters
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.