package
0.0.0-20231025030425-6ec8c495a25d
Repository: https://github.com/hpb-project/go-hpb.git
Documentation: pkg.go.dev

# Functions

DefaultDataDir is the default data directory to use for the databases and other persistence requirements.
DefaultHTTPEndpoint returns the HTTP endpoint used by default.
DefaultIPCEndpoint returns the IPC path used by default.
No description provided by the author
DefaultWSEndpoint returns the websocket endpoint used by default.
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
No description provided by the author
The cost of a BALANCE operation after Tangerine.
The cost of a BALANCE operation after EIP 1884 (part of Istanbul).
The cost of a BALANCE operation.
Bounds the amount the base fee can change between blocks.
Per transaction not creating a contract.
BloomBitsBlocks is the number of blocks a single bloom bit section vector contains.
Price for BLS12-381 elliptic curve G1 point addition.
Price for BLS12-381 elliptic curve G1 point scalar multiplication.
Price for BLS12-381 elliptic curve G2 point addition.
Price for BLS12-381 elliptic curve G2 point scalar multiplication.
Gas price for BLS12-381 mapping field element to G1 operation.
Gas price for BLS12-381 mapping field element to G2 operation.
Base gas price for BLS12-381 elliptic curve pairing check.
Per-point pair gas price for BLS12-381 elliptic curve pairing check.
Byzantium gas needed for an elliptic curve addition.
Gas needed for an elliptic curve addition.
Byzantium base price for an elliptic curve pairing check.
Base price for an elliptic curve pairing check.
Byzantium per-point price for an elliptic curve pairing check.
Per-point price for an elliptic curve pairing check.
Byzantium gas needed for an elliptic curve scalar multiplication.
Gas needed for an elliptic curve scalar multiplication.
Maximum depth of call/create stack.
Once per CALL operation & message call transaction.
Static portion of gas for CALL-derivates after EIP 150 (Tangerine).
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.
COLD_ACCOUNT_ACCESS_COST.
COLD_SLOAD_COST.
.
Once per CREATE2 operation.
CreateBySelfdestructGas is used when the refunded account is one that does not exist.
.
Once per CREATE operation & contract-creation transaction.
use a version to seperate network.
use a version to seperate network.
use a version to seperate network.
Path within the datadir to the keystore.
Path within the datadir to store the node infos.
Path within the datadir to the node's private key.
Path within the datadir to the static node list.
Path within the datadir to the trusted node list.
Default host interface for the HTTP RPC server.
Default TCP port for the HTTP RPC server.
Default host interface for the websocket RPC server.
Default TCP port for the websocket RPC server.
No description provided by the author
Elliptic curve sender recovery gas price.
No description provided by the author
Bounds the maximum gas limit an EIP-1559 block may have.
Duration between proof-of-work epochs.
was raised to 50 during Eip158 (Spurious Dragon).
was set to 10 in Frontier.
Times ceil(log256(exponent)) for the EXP instruction.
Once per EXP instruction.
No description provided by the author
Extcodecopy has a dynamic AND a static cost.
Cost of EXTCODEHASH (introduced in Constantinople).
Cost of EXTCODEHASH after EIP 1884 (part in Istanbul).
Cost of EXTCODESIZE after EIP 150 (Tangerine).
Cost of EXTCODESIZE before EIP 150 (Tangerine).
Quickly download the headers, full sync only at the chain head.
No description provided by the author
Synchronise the entire blockchain history from full blocks.
prepare for handshake not check hid.
current handshake proto version.
No description provided by the author
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.
Once per KECCAK256 operation.
Once per word of the KECCAK256 operation's data.
Download only the headers and terminate afterwards.
Per byte in a LOG* operation's data.
Per LOG* operation.
Multiplied by the * of the LOG*, per LOG transaction.
Maximum bytecode to permit for a contract.
Maximum the gas limit (2^63-1).
Maximum size extra data may be after Genesis.
Times the address of the (highest referenced byte in memory + 1).
Divisor for the quadratic particle of the big int modular exponentiation.
Once per SSTORE operation from clean non-zero.
Once per SSTORE operation for clearing an originally existing storage slot.
Once per SSTORE operation from dirty.
Once per SSTORE operation from clean zero.
Once per SSTORE operation if the value doesn't change.
Once per SSTORE operation for resetting to the original zero value.
Once per SSTORE operation for resetting to the original non-zero value.
match up protocol versions and messages versions.
Divisor for the quadratic particle of the memory cost equation.
The Refund Quotient is the cap on how much of the used gas can be refunded.
No description provided by the author
Base price for a RIPEMD160 operation.
Per-word price for a RIPEMD160 operation.
Cost of SELFDESTRUCT post EIP 150 (Tangerine).
Refunded following a selfdestruct operation.
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.
No description provided by the author
Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added.
No description provided by the author
Cost of SLOAD after EIP 1884 (part of Istanbul).
Cost of SLOAD after EIP 2200 (part of Istanbul).
No description provided by the author
Once per SSTORE operation if the zeroness doesn't change.
Once per SSTORE operation for clearing an originally existing storage slot.
In EIP-2200: SstoreResetGas was 5000.
Once per SSTORE operation if the zeroness changes to zero.
Once per SSTORE operation if the zeroness changes from zero.
Once per SSTORE operation from clean non-zero to something else.
Minimum gas required to be present for an SSTORE call, not consumed.
Once per SLOAD operation.
Once per SSTORE operation from clean zero to non-zero.
Maximum size of VM stack allowed.
Refunded following a suicide operation.
No description provided by the author
Once per operation, for a selection of them.
Per address specified in EIP 2930 access list.
Per storage key specified in EIP 2930 access list.
Per byte of data attached to a transaction that is not equal to zero.
Per byte of non zero data attached to a transaction after EIP 2028 (part in Istanbul).
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.
Hardware version component of the current release.
not used.
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.
WARM_STORAGE_READ_COST.
These are the multipliers for hpber denominations.
zscverify.

# Variables

Gas discount table for BLS12-381 G1 and G2 multi exponentiation operations.
Compatible ChainID, different with current chainId.
No description provided by the author
No description provided by the author
No description provided by the author
DefaultHTTPTimeouts represents the default timeout values used if further configuration is not provided.
No description provided by the author
No description provided by the author
DefaultTxPoolConfig default txpool config.
The bound divisor of the difficulty, used in the update calculations.
The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
The bound divisor of the gas limit, used in update calculations.
No description provided by the author
Difficulty of the Genesis block.
Gas limit of the Genesis block.
No description provided by the author
No description provided by the author
INSTANCE config instance.
No description provided by the author
No description provided by the author
MainnetChainConfig is the chain parameters to run a node on the main network.
Mainnet genesis hash to enforce below configs on.
Amount of blocks to be fetched per retrieval request.
Amount of block bodies to be fetched per retrieval request.
Maximum chain reorganisation.
Amount of hashes to be fetched per retrieval request.
Amount of block headers to be fetched per retrieval request.
Amount of transaction receipts to allow fetching per request.
Number of header fetches to need for a skeleton assembly.
Amount of node state values to allow fetching per request.
Minimum the gas limit may ever be.
The minimum that the difficulty may ever be.
No description provided by the author
No description provided by the author
The artificial target.
TestnetBootnodes are the hnode URLs of the P2P bootstrap nodes running on the Ropsten test network.
Testnet genesis hash to enforce below configs on.
Version holds the textual version string.

# Structs

No description provided by the author
ConfigCompatError is raised if the locally-stored blockchain is initialised with a ChainConfig that would alter the past.
No description provided by the author
No description provided by the author
No description provided by the author
HpbConfig represents a small collection of configuration values to fine tune the P2P network layer of a protocol stack.
HTTPTimeouts represents the configuration params for the HTTP RPC server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TxPoolConfiguration txpool config.

# Type aliases

SyncMode represents the synchronisation mode of the downloader.