[sync] Improve sync

Make every request in batch, to save round trip times
Fetch timestamp of blockheader to populate timestamp field in transaction
Remove listunspent requests because we can compute it from our history
This commit is contained in:
Riccardo Casatta
2020-11-16 12:18:34 +01:00
parent 755d76bf54
commit c5dba115a0
4 changed files with 440 additions and 345 deletions

View File

@@ -40,6 +40,7 @@ use crate::database::BatchDatabase;
use crate::error::Error;
use crate::FeeRate;
#[cfg(any(feature = "electrum", feature = "esplora"))]
pub(crate) mod utils;
#[cfg(any(feature = "electrum", feature = "esplora", feature = "compact_filters"))]