account

package
v0.0.0-...-9352369 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	A = 1
)

Functions

func CommitEntry

func CommitEntry(requests []*pb.ClientRequest)

func GetBalance

func GetBalance(accountHash string) float64

Retrieve Entry with sequence number sn.

func LoadData

func LoadData()

func RequestIsValid

func RequestIsValid(request *pb.ClientRequest) bool

func UpdateBalance

func UpdateBalance(accountHash string, amount float64)

CommitEntry a decided value to the log. This is the final decision that will never be reverted. If this is the first empty slot of the log, push the Entry (and potentially other previously committed entries with higher sequence numbers) to the subscribers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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