Documentation
¶
Index ¶
- func AttachAllToDoubleSpendChecks(doubleSpendChecks []*DoubleSpendCheck) error
- func AttachBlocksToSpendCheckSpends(doubleSpendChecks []*DoubleSpendCheck) error
- func AttachLockHashesToSpendChecks(doubleSpendChecks []*DoubleSpendCheck) error
- func AttachSeensToSpendCheckSpends(doubleSpendChecks []*DoubleSpendCheck) error
- type DoubleSpendCheck
- type DoubleSpendCheckSpend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachAllToDoubleSpendChecks ¶
func AttachAllToDoubleSpendChecks(doubleSpendChecks []*DoubleSpendCheck) error
func AttachBlocksToSpendCheckSpends ¶
func AttachBlocksToSpendCheckSpends(doubleSpendChecks []*DoubleSpendCheck) error
AttachBlocksToSpendCheckSpends TODO: Handle block hash already set, also include confirmation count
func AttachLockHashesToSpendChecks ¶
func AttachLockHashesToSpendChecks(doubleSpendChecks []*DoubleSpendCheck) error
AttachLockHashesToSpendChecks assumes blocks attached before
func AttachSeensToSpendCheckSpends ¶
func AttachSeensToSpendCheckSpends(doubleSpendChecks []*DoubleSpendCheck) error
Types ¶
type DoubleSpendCheck ¶
type DoubleSpendCheck struct {
ParentTxHash [32]byte
ParentTxIndex uint32
LockHash []byte
Spends []*DoubleSpendCheckSpend
}
func (DoubleSpendCheck) GetWinnerSpend ¶
func (c DoubleSpendCheck) GetWinnerSpend() (*DoubleSpendCheckSpend, error)
func (DoubleSpendCheck) IsWinnerSpend ¶
func (c DoubleSpendCheck) IsWinnerSpend(spendCheck *DoubleSpendCheckSpend) (bool, error)
Click to show internal directories.
Click to hide internal directories.