itest: disable node retrying to connect to miner
Previously the chainbackend connected to the miner using a permanent connection, which would retry the connection when it’s disconnected. It would leave multiple connections between the chainbackend and the miner, causing difficulties in debugging. Currently, there are two occasions when disconnection happens. One happens when running the open channel reorg test, the miner is connected/disconnected multiple times on purpose. The other happens when the chainbackend receives a MSG_WITNESS_TX type from the miner, which would be considered as an invalid type and disconnects the miner. With the latter one being fixed in btcd, the chainbackend will still be disconnected from the miner if it reaches the ban score by requesting too many notfound messages in a short time which is why the `--nobanning` flag is added.
This commit is contained in:
4 files changed
+17
-14
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ func (b NeutrinoBackendConfig) GenArgs() []string {
|
||||
|
||||
// ConnectMiner is called to establish a connection to the test miner.
|
||||
func (b NeutrinoBackendConfig) ConnectMiner() error {
|
||||
return fmt.Errorf("unimplemented")
|
||||
return nil
|
||||
}
|
||||
|
||||
// DisconnectMiner is called to disconnect the miner.
|
||||
|
||||
Reference in new issue
Block a user