chore: fix some comments
Signed-off-by: damuzhi0810 <rust@before.tech>
This commit is contained in:
parent
440efa7b61
commit
f12c65cdd2
@ -608,7 +608,7 @@ impl RescanSetting {
|
||||
return Command::none();
|
||||
}
|
||||
self.processing = true;
|
||||
info!("Asking deamon to rescan with timestamp: {}", t);
|
||||
info!("Asking daemon to rescan with timestamp: {}", t);
|
||||
return Command::perform(
|
||||
async move {
|
||||
daemon.start_rescan(t.try_into().expect("t cannot be inferior to 0 otherwise genesis block timestamp is chosen"))
|
||||
|
||||
@ -591,7 +591,7 @@ impl BitcoinInterface for electrum::Electrum {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: do we need to repeat the entire trait implemenation? Isn't there a nicer way?
|
||||
// FIXME: do we need to repeat the entire trait implementation? Isn't there a nicer way?
|
||||
impl BitcoinInterface for sync::Arc<sync::Mutex<dyn BitcoinInterface + 'static>> {
|
||||
fn genesis_block_timestamp(&self) -> u32 {
|
||||
self.lock().unwrap().genesis_block_timestamp()
|
||||
|
||||
@ -49,7 +49,7 @@ impl DatabaseInterface for SqliteDb {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: do we need to repeat the entire trait implemenation? Isn't there a nicer way?
|
||||
// FIXME: do we need to repeat the entire trait implementation? Isn't there a nicer way?
|
||||
impl DatabaseInterface for sync::Arc<sync::Mutex<dyn DatabaseInterface>> {
|
||||
fn connection(&self) -> Box<dyn DatabaseConnection> {
|
||||
self.lock().unwrap().connection()
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
//! > Multi-thread. In this mode, SQLite can be safely used by multiple threads provided that
|
||||
//! > no single database connection is used simultaneously in two or more threads.
|
||||
//!
|
||||
//! We leverage SQLite's `unlock_notify` feature to synchronize writes accross connection. More
|
||||
//! We leverage SQLite's `unlock_notify` feature to synchronize writes across connection. More
|
||||
//! about it at https://sqlite.org/unlock_notify.html.
|
||||
|
||||
pub mod schema;
|
||||
|
||||
@ -842,7 +842,7 @@ mod tests {
|
||||
// before checking the bitcoind sync status.
|
||||
t.join().unwrap();
|
||||
|
||||
// The datadir is created now, so if we restart it it won't create the wo wallet.
|
||||
// The datadir is created now, so if we restart, it won't create the wo wallet.
|
||||
let t = thread::spawn({
|
||||
let config = config.clone();
|
||||
move || {
|
||||
|
||||
@ -105,7 +105,7 @@ class Bitcoind(BitcoinBackend):
|
||||
|
||||
# wait_for_mempool can be used to wait for the mempool before generating
|
||||
# blocks:
|
||||
# True := wait for at least 1 transation
|
||||
# True := wait for at least 1 transaction
|
||||
# int > 0 := wait for at least N transactions
|
||||
# 'tx_id' := wait for one transaction id given as a string
|
||||
# ['tx_id1', 'tx_id2'] := wait until all of the specified transaction IDs
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user