Remove sync verification
The default sync verification is removed from wallet module. By default sync time verification only makes sense for `electrum` and `esplora` backend as they are usually untrusted 3rd party services. script verification for transaction is costly, so removing default script verification optimizes performance.
This commit is contained in:
parent
e745122bf5
commit
98a3b3282a
@ -1537,23 +1537,6 @@ where
|
|||||||
.sync(self.database.borrow_mut().deref_mut(), progress_update,))?;
|
.sync(self.database.borrow_mut().deref_mut(), progress_update,))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "verify")]
|
|
||||||
{
|
|
||||||
debug!("Verifying transactions...");
|
|
||||||
for mut tx in self.database.borrow().iter_txs(true)? {
|
|
||||||
if !tx.verified {
|
|
||||||
verify::verify_tx(
|
|
||||||
tx.transaction.as_ref().ok_or(Error::TransactionNotFound)?,
|
|
||||||
self.database.borrow().deref(),
|
|
||||||
&self.client,
|
|
||||||
)?;
|
|
||||||
|
|
||||||
tx.verified = true;
|
|
||||||
self.database.borrow_mut().set_tx(&tx)?;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let sync_time = SyncTime {
|
let sync_time = SyncTime {
|
||||||
block_time: BlockTime {
|
block_time: BlockTime {
|
||||||
height: maybe_await!(self.client.get_height())?,
|
height: maybe_await!(self.client.get_height())?,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user