block

package
v0.0.0-...-46f88e6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: ISC Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePcProof

func ValidatePcProof(
	pcp *wire.PacketCryptProof,
	blockHeight int32,
	blockHeader *wire.BlockHeader,
	cb *wire.PcCoinbaseCommit,
	shareTarget uint32,
	blockHashes []*chainhash.Hash,
	contentProofs [][]byte,
	packetCryptVersion int,
) (bool, er.R)

ValidatePcProof checks if the PacketCrypt proof is ok returns an error if it is not and a bool which indicates whether it is good enough to be a block in case that shareTarget is non-zero. If there is enough work to make a valid block, this function will always accept the share even if shareTarget is not met!

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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