We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e95b6a + b67237e commit 8531f1cCopy full SHA for 8531f1c
teos/src/main.rs
@@ -155,7 +155,8 @@ async fn main() {
155
);
156
let mut derefed = bitcoin_cli.deref();
157
// Load last known block from DB if found. Poll it from Bitcoind otherwise.
158
- let tip = if let Ok(block_hash) = dbm.lock().unwrap().load_last_known_block() {
+ let last_known_block = dbm.lock().unwrap().load_last_known_block();
159
+ let tip = if let Ok(block_hash) = last_known_block {
160
derefed
161
.get_header(&block_hash, None)
162
.await
0 commit comments