Documentation ¶
Index ¶
- func AcceptBlock(pblock *block.Block, fRequested bool, fNewBlock *bool) (bIndex *blockindex.BlockIndex, dbp *block.DiskBlockPos, err error)
- func AcceptBlockHeader(bh *block.BlockHeader) (*blockindex.BlockIndex, error)
- func CheckBlock(pblock *block.Block) error
- func CheckBlockHeader(bh *block.BlockHeader) error
- func ContextualCheckBlock(b *block.Block, indexPrev *blockindex.BlockIndex) error
- func ContextualCheckBlockHeader(header *block.BlockHeader, preIndex *blockindex.BlockIndex, adjustTime int64) bool
- func GetBlock(hash *util.Hash) (*block.Block, error)
- func GetBlockScriptFlags(pindex *blockindex.BlockIndex) uint32
- func GetBlockSubsidy(height int32, params *chainparams.BitcoinParams) amount.Amount
- func ReceivedBlockTransactions(pblock *block.Block, pindexNew *blockindex.BlockIndex, pos *block.DiskBlockPos)
- func WriteBlockToDisk(bi *blockindex.BlockIndex, bl *block.Block) (*block.DiskBlockPos, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptBlock ¶
func AcceptBlock(pblock *block.Block, fRequested bool, fNewBlock *bool) (bIndex *blockindex.BlockIndex, dbp *block.DiskBlockPos, err error)
Store a block on disk.
func AcceptBlockHeader ¶
func AcceptBlockHeader(bh *block.BlockHeader) (*blockindex.BlockIndex, error)
func CheckBlock ¶
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) bool
func GetBlockScriptFlags ¶
func GetBlockScriptFlags(pindex *blockindex.BlockIndex) uint32
GetBlockScriptFlags Returns the script flags which should be checked for a given block
func GetBlockSubsidy ¶
func GetBlockSubsidy(height int32, params *chainparams.BitcoinParams) amount.Amount
func ReceivedBlockTransactions ¶
func ReceivedBlockTransactions(pblock *block.Block, pindexNew *blockindex.BlockIndex, pos *block.DiskBlockPos)
ReceivedBlockTransactions Mark a block as having its data received and checked (up to * BLOCK_VALID_TRANSACTIONS state).
func WriteBlockToDisk ¶
func WriteBlockToDisk(bi *blockindex.BlockIndex, bl *block.Block) (*block.DiskBlockPos, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.