Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompatibilityCheck ¶
func CompatibilityCheck(t *testing.T, items *CompatibilityItems, chainParams *chaincfg.Params)
CompatibilityCheck checks various scripts' compatibility with the Backend. If a fork's CompatibilityItems can pass the CompatibilityCheck, the node can likely use NewBTCClone to create a DEX-compatible backend.
Types ¶
type CompatibilityItems ¶
type CompatibilityItems struct { P2PKHScript []byte PKHAddr string P2WPKHScript []byte WPKHAddr string P2SHScript []byte SHAddr string P2WSHScript []byte WSHAddr string }
CompatibilityItems are a set of pubkey scripts and corresponding string-encoded addresses checked in CompatibilityTest. They should be taken from existing on-chain data.
Click to show internal directories.
Click to hide internal directories.