operationfeestats

package
v0.0.0-...-5b4d345 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package operationfeestats provides useful utilities concerning operation fee stats within stellar,specifically as a central location to store a cached snapshot of the state of network per operation fees and surge pricing. This package is intended to be at the lowest levels of horizon's dependency tree, please keep it free of dependencies to other horizon packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetState

func ResetState()

ResetState is used only for testing purposes

func SetState

func SetState(next State)

SetState updates the cached snapshot of the operation fee state

Types

type State

type State struct {
	FeeMin      int64
	FeeMode     int64
	FeeP10      int64
	FeeP20      int64
	FeeP30      int64
	FeeP40      int64
	FeeP50      int64
	FeeP60      int64
	FeeP70      int64
	FeeP80      int64
	FeeP90      int64
	FeeP95      int64
	FeeP99      int64
	LastBaseFee int64
	LastLedger  int64

	LedgerCapacityUsage string
}

State represents a snapshot of horizon's view of the state of operation fee's on the network.

func CurrentState

func CurrentState() State

CurrentState returns the cached snapshot of operation fee state

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL