trigger electrs when polling

This commit is contained in:
Riccardo Casatta committed 2021-06-29 11:32:30 +02:00
1 parent 18dcda844f
commit 696647b893
5 files changed
+5 -228

No files matched your search

+2
View File
@@ -41,6 +41,7 @@ impl TestClient {
fn wait_for_tx(&mut self, txid: Txid, monitor_script: &Script) {
// wait for electrs to index the tx
exponential_backoff_poll(|| {
self.electrsd.trigger().unwrap();
trace!("wait_for_tx {}", txid);
self.electrsd
@@ -57,6 +58,7 @@ impl TestClient {
loop {
let header = exponential_backoff_poll(|| {
self.electrsd.trigger().unwrap();
self.electrsd.client.ping().unwrap();
self.electrsd.client.block_headers_pop().unwrap()
});