status

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainStatus

type BlockchainStatus uint32
const (
	UnknownChain BlockchainStatus = iota
	Created
	Preferred
	Validating
	Syncing
)

List of possible blockchain status values: - UnknownChain This node is not aware of the existence of this blockchain - Created This node is not currently validating this blockchain - Preferred This blockchain is currently in the preferred tip - Validating This node is currently validating this blockchain - Syncing This node is syncing up to the preferred block height

func (BlockchainStatus) MarshalJSON

func (s BlockchainStatus) MarshalJSON() ([]byte, error)

func (BlockchainStatus) String

func (s BlockchainStatus) String() string

func (*BlockchainStatus) UnmarshalJSON

func (s *BlockchainStatus) UnmarshalJSON(b []byte) error

func (BlockchainStatus) Verify

func (s BlockchainStatus) Verify() error

Verify that this is a valid status.

type Status

type Status uint32
const (
	Unknown    Status = 0
	Committed  Status = 4
	Aborted    Status = 5
	Processing Status = 6
	Dropped    Status = 8
)

List of possible status values: - Unknown The transaction is not known - Committed The transaction was proposed and committed - Aborted The transaction was proposed and aborted - Processing The transaction was proposed and is currently in the preferred chain - Dropped The transaction was dropped due to failing verification

func (Status) MarshalJSON

func (s Status) MarshalJSON() ([]byte, error)

func (Status) String

func (s Status) String() string

func (*Status) UnmarshalJSON

func (s *Status) UnmarshalJSON(b []byte) error

func (Status) Verify

func (s Status) Verify() error

Verify that this is a valid status.

Jump to

Keyboard shortcuts

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