stagingarea

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Utxokey = database.MakeBucket([]byte("utxo_tx"))

Functions

func AddBig

func AddBig(x float32, y float64) *big.Float

func SubBig

func SubBig(x float32, y float64) *big.Float

func VerifyAddressPrefix

func VerifyAddressPrefix(str string) string

Types

type BlockHeader

type BlockHeader struct {
	Version            uint16
	Blockhash          *external.DomainHash
	Blockheight        int64
	Previoushash       *external.DomainHash
	Merkleroot         *external.DomainHash
	Metblock           *external.DomainHash
	Megablock          *external.DomainHash
	Childblocks        []external.BlockLevelChildern
	Parents            []external.BlockLevelParents
	TimeInMilliseconds int64
	Btype              int
	Bits               uint64
	Nonce              uint64
	BlockLevel         int
	VerificationPoint  *external.DomainHash
}

type StagingArea

type StagingArea struct {
	// contains filtered or unexported fields
}

func NewStagingArea

func NewStagingArea(db database.Database) *StagingArea

func (*StagingArea) AddBlock

func (s *StagingArea) AddBlock(tempblock *external.TempBlock) (*external.TempBlock, error)

func (*StagingArea) StagingBlock

func (s *StagingArea) StagingBlock() *BlockHeader

Jump to

Keyboard shortcuts

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