Skip to content

Commit d3779fa

Browse files
committed
Fix comments
1 parent d394011 commit d3779fa

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/blockchain/esplora/reqwest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ impl Blockchain for EsploraBlockchain {
112112

113113
let n_confirmed =
114114
related_txs.iter().filter(|tx| tx.status.confirmed).count();
115-
// esplora pages on 25 confirmed transactions. If there's more than
116-
// 25 we need to keep requesting.
115+
// esplora pages on 25 confirmed transactions. If there's 25 or more we
116+
// keep requesting to see if there's more.
117117
if n_confirmed >= 25 {
118118
loop {
119119
let new_related_txs: Vec<Tx> = self

src/blockchain/esplora/ureq.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ impl Blockchain for EsploraBlockchain {
111111

112112
let n_confirmed =
113113
related_txs.iter().filter(|tx| tx.status.confirmed).count();
114-
// esplora pages on 25 confirmed transactions. If there's more than
115-
// 25 we need to keep requesting.
114+
// esplora pages on 25 confirmed transactions. If there's 25 or more we
115+
// keep requesting to see if there's more.
116116
if n_confirmed >= 25 {
117117
loop {
118118
let new_related_txs: Vec<Tx> = client._scripthash_txs(

src/blockchain/script_sync.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ impl<'a, D: BatchDatabase> ScriptReq<'a, D> {
9292
self.state.tx_missing_conftime.insert(*txid, details);
9393
}
9494
(Some(old_height), Some(new_height)) if old_height != *new_height => {
95-
// The height of the tx has changed !? -- get the confirmation time.
95+
// The height of the tx has changed !? -- It's a reorg get the new confirmation time.
9696
self.state.tx_missing_conftime.insert(*txid, details);
9797
}
9898
(Some(_), None) => {
99+
// A re-org where the tx is not in the chain anymore.
99100
details.confirmation_time = None;
100101
self.state.finished_txs.push(details);
101102
}

0 commit comments

Comments
 (0)