Documentation ¶
Index ¶
- Constants
- Variables
- func CalculateBackward(db ethdb.Database, from, to uint64) error
- func CalculateForward(db ethdb.Database, from, to uint64) error
- func DeleteSupplyForBlock(db ethdb.Deleter, blockNumber uint64) error
- func GetInitialPosition(db ethdb.Database, from uint64, initialSupply *uint256.Int) (uint64, error)
- func GetSupplyForBlock(db ethdb.Getter, blockNumber uint64) (*uint256.Int, error)
- func SetSupplyForBlock(db ethdb.Putter, blockNumber uint64, supply *uint256.Int) error
- func SyncStage(ctx *cli.Context) stagedsync.StageBuilder
- func Unwind(db ethdb.Database, from, to uint64) (err error)
Constants ¶
View Source
const BucketName = "org.ffconsulting.tg.db.ETH_SUPPLY.v2"
Variables ¶
View Source
var (
StageID = stages.SyncStage("org.ffconsulting.ETH_SUPPLY.v2")
)
Functions ¶
func CalculateForward ¶
CalculateForwards calculates the ETH supply between blocks `from` and `to` forward in time. (from the smaller block to the larger one) It is more efficient for the smaller block gaps because it doesn't calculate the current state supply. On larger block gaps it is inefficient because of many DB calls.
func GetInitialPosition ¶
func GetSupplyForBlock ¶
func SetSupplyForBlock ¶
func SyncStage ¶
func SyncStage(ctx *cli.Context) stagedsync.StageBuilder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.