Merge pull request #8568 from bhandras/native-sql-ensure-empty-invoicedb

lnd: ensure that LND won't start in native SQL mode if it has any KV invoices
This commit is contained in:
Oliver Gugger
2024-03-20 05:34:08 -06:00
committed by GitHub
6 changed files with 89 additions and 3 deletions

View File

@@ -629,7 +629,7 @@ func (hn *HarnessNode) cleanup() error {
// waitForProcessExit Launch a new goroutine which that bubbles up any
// potential fatal process errors to the goroutine running the tests.
func (hn *HarnessNode) waitForProcessExit() error {
func (hn *HarnessNode) WaitForProcessExit() error {
var err error
errChan := make(chan error, 1)
@@ -752,7 +752,7 @@ func (hn *HarnessNode) Stop() error {
}
// Wait for lnd process to exit in the end.
return hn.waitForProcessExit()
return hn.WaitForProcessExit()
}
// CloseConn closes the grpc connection.