tools

package
v0.0.0-...-c33422d Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCosmosPrivateKey

func GetCosmosPrivateKey(path string, pwd []byte) (crypto2.PrivKey, types.AccAddress, error)

Types

type CosmosStatus

type CosmosStatus struct {
	Txs             *sync.Map // TODO: record a start time to test if it's not confirm for a long time, that could be tx lost
	Wg              *sync.WaitGroup
	IsBlocked       bool
	PolyEpochHeight uint32
}

func NewCosmosStatus

func NewCosmosStatus() (*CosmosStatus, error)

func (*CosmosStatus) AddTx

func (s *CosmosStatus) AddTx(hash bytes.HexBytes, info *PolyInfo) error

func (*CosmosStatus) Check

func (s *CosmosStatus) Check()

TODO: 交易丢失了怎么办,会一直循环查找地!!

func (*CosmosStatus) DelTx

func (s *CosmosStatus) DelTx(hash bytes.HexBytes) error

func (*CosmosStatus) Len

func (s *CosmosStatus) Len() int

func (*CosmosStatus) Show

func (s *CosmosStatus) Show()

Jump to

Keyboard shortcuts

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