Discover Packages
github.com/drep-project/DREP-Chain
chain
utils
package
Version:
v0.0.0-...-a173fca
Opens a new window with list of versions in this module.
Published: Mar 1, 2021
License: LGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GasPool tracks the amount of gasRemained available during execution of the transactions
in a block. The zero value is a pool with zero gasRemained available.
AddGas makes gasRemained available for execution.
Gas returns the amount of gasRemained remaining in the pool.
SubGas deducts the given amount from the pool if enough gasRemained is
available and returns an error otherwise.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.