package
1.0.0
Repository: https://github.com/youchainhq/go-youchain.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
InitNetworkId initialize the networkId for once.
No description provided by the author
No description provided by the author
MinStakeLookBack returns a minimal stakeLookBack value, It can be used for concurrency control when batch handling headers or blocks.
NetworkId return the current networkId.
No description provided by the author
No description provided by the author
No description provided by the author
只返回大类.
No description provided by the author

# Constants

No description provided by the author
ACoCHTFrequency is the block frequency for creating CHTs and BloomTries, and also the number of blocks a single bloom bit section vector contains.
No description provided by the author
The cost of a BALANCE operation.
Gas needed for an elliptic curve addition.
Base price for an elliptic curve pairing check.
Per-point price for an elliptic curve pairing check.
Gas needed for an elliptic curve scalar multiplication.
Maximum depth of call/create stack.
Once per CALL operation & message call transaction.
Paid for CALL when the destination address didn't exist prior.
Free gas given at beginning of call.
Paid for CALL when the value transfer is non-zero.
CommissionRateBase is the denominator of commission rate.
.
create, new inserted, new added.
Once per CREATE2 operation.
CreateBySelfdestructGas is used when the refunded account is one that does not exist.
.
Once per CREATE operation & contract-creation transaction.
Default host interface for the HTTP RPC server.
No description provided by the author
No description provided by the author
Default port for the P2P Discover transport.
Default port for the P2P RUDP transport.
port for PProf metrics.
port for PProf metrics.
Default host interface for the websocket RPC server.
No description provided by the author
No description provided by the author
Elliptic curve sender recovery gas price.
No description provided by the author
EXP has a dynamic portion depending on the size of the exponent.
Once per EXP instruction.
Extcodecopy has a dynamic AND a static cost.
Cost of EXTCODEHASH (introduced in Constantinople).
Cost of EXTCODESIZE.
No description provided by the author
The bound divisor of the gas limit, used in update calculations.
Gas limit of the Genesis block.
These are the multipliers for ether denominations.
Base price for a data copy operation.
Per-work price for a data copy operation.
Refunded gas, once per SSTORE operation if the zeroness changes to zero.
全体议员(全体议长+全体议员).
众议节点.
No description provided by the author
No description provided by the author
No description provided by the author
全体验证人集合的统计.
No description provided by the author
Per byte in a LOG* operation's data.
Per LOG* operation.
Multiplied by the * of the LOG*, per LOG transaction.
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
These are the multipliers for ether denominations.
No description provided by the author
Maximum bytecode to permit for a contract.
Maximum size extra data may be after Genesis.
No description provided by the author
Times the address of the (highest referenced byte in memory + 1).
Minimum the gas limit may ever be.
Divisor for the quadratic particle of the big int modular exponentiation.
NetworkIdForTestCase is used for test case so to use a different suite of parameters.
No description provided by the author
No description provided by the author
Divisor for the quadratic particle of the memory cost equation.
Base price for a RIPEMD160 operation.
Per-word price for a RIPEMD160 operation.
议长.
众议.
No description provided by the author
No description provided by the author
No description provided by the author
议员.
Cost of SELFDESTRUCT.
Base price for a SHA256 operation.
Per-word price for a SHA256 operation.
Once per SHA3 operation.
Once per word of the SHA3 operation's data.
Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added.
Once per SSTORE operation from clean non-zero to something else.
Once per SSTORE operation for resetting to the original non-zero value.
Once per SSTORE operation if the zeroness doesn't change.
Once per SSTORE operation for clearing an originally existing storage slot.
Once per SSTORE operation if a dirty value is changed.
Once per SSTORE operation from clean zero to non-zero.
Once per SSTORE operation for resetting to the original zero value.
Once per SSTORE operation if the value doesn't change.
Once per SSTORE operation if the zeroness changes to zero.
Once per SSTORE operation if the zeroness changes from zero.
Minimum gas required to be present for an SSTORE call, not consumed.
Once per SLOAD operation.
Maximum size of VM stack allowed.
Refunded following a suicide operation.
No description provided by the author
Per byte of data attached to a transaction that is not equal to zero.
Per byte of data attached to a transaction that equals zero.
Per transaction not creating a contract.
Per transaction that creates a contract.
more gas for creates validator.
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
Major version component of the current release.
Version metadata to append to the version string.
Minor version component of the current release.
Patch version component of the current release.
These are the multipliers for ether denominations.
YouCurrentVersion is the latest version and should be used when a specific version is not provided.
YouV1 is a baseline version of the YOUChain consensus protocol.
YouV2 adds the parameter `AllowedFutureBlockTime`.
YouV3 adjust `SubsidyThreshold` and `UpgradeThreshold`, and tune txs-broadcast strategy.
YouV4 fixes a bug on gas used for a failed staking-transaction.
YouV5 is the first permission-less version for validators of Chamber.

# Variables

1GLu.
No description provided by the author
StakeUint = new(big.Int).Mul(big.NewInt(1000), big.NewInt(YOU)).
0x00000056616C696461746f72734D616E61676572.
The artificial target.
No description provided by the author
Versions contains all YOUChain protocol version and it's parameters.

# Structs

CaravelParams contains parameters of the Caravel consensus.
StakingParams contains parameters of the staking module.
YouParams contains YOUChain protocol related parameters.

# Type aliases

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
YouVersion is an integer that identifies a version of the consensus protocol.