Make variable names consistent

This commit is contained in:
LLFourn committed 2021-11-10 09:07:36 +11:00
1 parent 5eadf5ccf9
commit 188d9a4a8b
4 files changed
+20 -20

No files matched your search

+6 -6
View File
@@ -150,8 +150,8 @@ impl Blockchain for EsploraBlockchain {
script_req.satisfy(satisfaction)?
}
Request::Conftime(conftimereq) => {
let conftimes = conftimereq
Request::Conftime(conftime_req) => {
let conftimes = conftime_req
.request()
.map(|txid| {
tx_index
@@ -160,17 +160,17 @@ impl Blockchain for EsploraBlockchain {
.confirmation_time()
})
.collect();
conftimereq.satisfy(conftimes)?
conftime_req.satisfy(conftimes)?
}
Request::Tx(txreq) => {
let full_txs = txreq
Request::Tx(tx_req) => {
let full_txs = tx_req
.request()
.map(|txid| {
let tx = tx_index.get(txid).expect("must be in index");
(tx.previous_outputs(), tx.to_tx())
})
.collect();
txreq.satisfy(full_txs)?
tx_req.satisfy(full_txs)?
}
Request::Finish(batch_update) => break batch_update,
}
+6 -6
View File
@@ -149,8 +149,8 @@ impl Blockchain for EsploraBlockchain {
script_req.satisfy(satisfaction)?
}
Request::Conftime(conftimereq) => {
let conftimes = conftimereq
Request::Conftime(conftime_req) => {
let conftimes = conftime_req
.request()
.map(|txid| {
tx_index
@@ -159,17 +159,17 @@ impl Blockchain for EsploraBlockchain {
.confirmation_time()
})
.collect();
conftimereq.satisfy(conftimes)?
conftime_req.satisfy(conftimes)?
}
Request::Tx(txreq) => {
let full_txs = txreq
Request::Tx(tx_req) => {
let full_txs = tx_req
.request()
.map(|txid| {
let tx = tx_index.get(txid).expect("must be in index");
(tx.previous_outputs(), tx.to_tx())
})
.collect();
txreq.satisfy(full_txs)?
tx_req.satisfy(full_txs)?
}
Request::Finish(batch_update) => break batch_update,
}