lblock

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: BSD-2-Clause Imports: 18 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptBlock

func AcceptBlock(pblock *block.Block, fRequested bool, inDbp *block.DiskBlockPos, fNewBlock *bool) (bIndex *blockindex.BlockIndex,
	outDbp *block.DiskBlockPos, err error)

AcceptBlock Store a block on disk.

func AcceptBlockHeader

func AcceptBlockHeader(bh *block.BlockHeader) (*blockindex.BlockIndex, error)

func CheckBlock

func CheckBlock(pblock *block.Block, checkHeader, checkMerlke bool) error

func CheckBlockHeader

func CheckBlockHeader(bh *block.BlockHeader) error

func ContextualCheckBlock

func ContextualCheckBlock(b *block.Block, indexPrev *blockindex.BlockIndex) error

func ContextualCheckBlockHeader

func ContextualCheckBlockHeader(header *block.BlockHeader, preIndex *blockindex.BlockIndex, adjustTime int64) (err error)

func GetBlockByIndex

func GetBlockByIndex(bi *blockindex.BlockIndex, param *model.BitcoinParams) (blk *block.Block, err error)

func GetBlockScriptFlags

func GetBlockScriptFlags(pindex *blockindex.BlockIndex) uint32

GetBlockScriptFlags Returns the lscript flags which should be checked for a given lblock

func IsInitialBlockDownload added in v0.0.7

func IsInitialBlockDownload() bool

IsInitialBlockDownload Check whether we are doing an initial block download (synchronizing from disk or network)

func ReceivedBlockTransactions

func ReceivedBlockTransactions(pblock *block.Block,
	pindexNew *blockindex.BlockIndex, pos *block.DiskBlockPos)

ReceivedBlockTransactions Mark a lblock as having its data received and checked (up to * BLOCK_VALID_TRANSACTIONS state).

func WriteBlockToDisk

func WriteBlockToDisk(bi *blockindex.BlockIndex, bl *block.Block, inDbp *block.DiskBlockPos) (*block.DiskBlockPos, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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