Documentation ¶
Index ¶
- func AcceptBlock(pblock *block.Block, fRequested bool, inDbp *block.DiskBlockPos, ...) (bIndex *blockindex.BlockIndex, outDbp *block.DiskBlockPos, err error)
- func AcceptBlockHeader(bh *block.BlockHeader) (*blockindex.BlockIndex, error)
- func CheckBlock(pblock *block.Block, checkHeader, checkMerlke bool) 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) (err error)
- func GetBlockByIndex(bi *blockindex.BlockIndex, param *model.BitcoinParams) (blk *block.Block, err error)
- func GetBlockScriptFlags(pindex *blockindex.BlockIndex) uint32
- func ReceivedBlockTransactions(pblock *block.Block, pindexNew *blockindex.BlockIndex, pos *block.DiskBlockPos)
- func WriteBlockToDisk(bi *blockindex.BlockIndex, bl *block.Block, inDbp *block.DiskBlockPos) (*block.DiskBlockPos, error)
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 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 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.
Click to show internal directories.
Click to hide internal directories.