lntest: add method P2PAddr to backend
It is useful if we want to keep bitcoind main itest mode, but connect one node using neutrino.
This commit is contained in:
4 files changed
+18
No files matched your search
@@ -74,6 +74,11 @@ func (b BtcdBackendConfig) Name() string {
|
||||
return "btcd"
|
||||
}
|
||||
|
||||
// P2PAddr return bitcoin p2p ip:port.
|
||||
func (b BtcdBackendConfig) P2PAddr() (string, error) {
|
||||
return b.harness.P2PAddress(), nil
|
||||
}
|
||||
|
||||
// NewBackend starts a new rpctest.Harness and returns a BtcdBackendConfig for
|
||||
// that node. miner should be set to the P2P address of the miner to connect
|
||||
// to.
|
||||
|
||||
Reference in new issue
Block a user