itest+lntest: add helper methods to manage temp miners

This commit adds several methods to easily spawn a temp miner and
connect/disconnect it from the original miner.
This commit is contained in:
yyforyongyu committed 2023-06-19 14:04:24 +08:00
1 parent bacb49ddba
commit 29124dd3b4
4 files changed
+106 -135

No files matched your search

-6
View File
@@ -21,12 +21,6 @@ import (
// logDirPattern is the pattern of the name of the temporary log directory.
const logDirPattern = "%s/.backendlogs"
// temp is used to signal we want to establish a temporary connection using the
// btcd Node API.
//
// NOTE: Cannot be const, since the node API expects a reference.
var temp = "temp"
// BtcdBackendConfig is an implementation of the BackendConfig interface
// backed by a btcd node.
type BtcdBackendConfig struct {