test

package
v0.2.97 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BitcoinCsv      = 1008
	BitcoinConfirms = 3

	LiquidCsv      = 60
	LiquidConfirms = 2
)
View Source
const (
	FUNDER_LND fundingNode = "lnd"
	FUNDER_CLN fundingNode = "cln"
)

Variables

This section is empty.

Functions

func IsIntegrationTest

func IsIntegrationTest(t *testing.T)

func OverrideLinesFromEnvVar

func OverrideLinesFromEnvVar(lines int) int

Types

type CLightningNodeWithLiquid

type CLightningNodeWithLiquid struct {
	*testframework.CLightningNode
}

func (*CLightningNodeWithLiquid) GetBtcBalanceSat

func (n *CLightningNodeWithLiquid) GetBtcBalanceSat() (uint64, error)

type ChainNode

type ChainNode interface {
	GenerateBlocks(b int) error
	ReturnAsset() string
}

type LndConfig

type LndConfig struct {
	LndHost      string
	TlsPath      string
	MacaroonPath string
}

type LndNodeWithLiquid

type LndNodeWithLiquid struct {
	*testframework.LndNode
	// contains filtered or unexported fields
}

func (*LndNodeWithLiquid) GetBtcBalanceSat

func (n *LndNodeWithLiquid) GetBtcBalanceSat() (uint64, error)

type PeerSwapd

type PeerSwapd struct {
	*testframework.DaemonProcess

	PeerswapClient peerswaprpc.PeerSwapClient

	RpcPort int
	DataDir string
	// contains filtered or unexported fields
}

func NewPeerSwapd

func NewPeerSwapd(testDir string, pathToPeerswapPlugin string, lndConfig *LndConfig, extraConfig map[string]string, id int) (*PeerSwapd, error)

func (*PeerSwapd) Kill

func (p *PeerSwapd) Kill()

func (*PeerSwapd) Run

func (p *PeerSwapd) Run(waitForReady bool) error

func (*PeerSwapd) Stop

func (p *PeerSwapd) Stop()

Jump to

Keyboard shortcuts

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