operationfeestats

package
v0.0.0-...-bd35244 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 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 {
	Min         int64
	Mode        int64
	LastBaseFee int64
	LastLedger  int64
}

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