qa: add method to get lianad poll interval
This commit is contained in:
parent
61e39f7d86
commit
c6add0aeb1
@ -38,6 +38,7 @@ class Lianad(TailableProc):
|
||||
self.prefix = os.path.split(datadir)[-1]
|
||||
|
||||
self.signer = signer
|
||||
self._poll_interval_secs = 1
|
||||
self.multi_desc = multi_desc
|
||||
self.receive_desc, self.change_desc = multi_desc.singlepath_descriptors()
|
||||
|
||||
@ -56,9 +57,14 @@ class Lianad(TailableProc):
|
||||
|
||||
f.write("[bitcoin_config]\n")
|
||||
f.write('network = "regtest"\n')
|
||||
f.write("poll_interval_secs = 1\n")
|
||||
f.write(f"poll_interval_secs = {self._poll_interval_secs}\n")
|
||||
bitcoin_backend.append_to_lianad_conf(self.conf_file)
|
||||
|
||||
@property
|
||||
def poll_interval_secs(self):
|
||||
"""Return the poll interval in seconds as defined in the config file."""
|
||||
return self._poll_interval_secs
|
||||
|
||||
def finalize_psbt(self, psbt):
|
||||
"""Create a valid witness for all inputs in the PSBT.
|
||||
This will fail if the PSBT input does not contain enough material.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user