minor cleanup and rename
This commit is contained in:
parent
49fca309cf
commit
9db4762751
|
@ -240,13 +240,9 @@ where
|
||||||
|
|
||||||
// Make sure the state contains the known best chain checkpoints, in a separate thread.
|
// Make sure the state contains the known best chain checkpoints, in a separate thread.
|
||||||
|
|
||||||
let (checkpoint_state_service, checkpoint_sync, network_clone) = {
|
|
||||||
let checkpoint_state_service = state_service.clone();
|
let checkpoint_state_service = state_service.clone();
|
||||||
let checkpoint_sync = config.checkpoint_sync;
|
let checkpoint_sync = config.checkpoint_sync;
|
||||||
let network_clone = network.clone();
|
let checkpoint_network = network.clone();
|
||||||
|
|
||||||
(checkpoint_state_service, checkpoint_sync, network_clone)
|
|
||||||
};
|
|
||||||
|
|
||||||
let state_checkpoint_verify_handle = tokio::task::spawn(
|
let state_checkpoint_verify_handle = tokio::task::spawn(
|
||||||
// TODO: move this into an async function?
|
// TODO: move this into an async function?
|
||||||
|
@ -269,7 +265,7 @@ where
|
||||||
// > activation block hashes given in § 3.12 ‘Mainnet and Testnet’ on p. 20.
|
// > activation block hashes given in § 3.12 ‘Mainnet and Testnet’ on p. 20.
|
||||||
//
|
//
|
||||||
// <https://zips.z.cash/protocol/protocol.pdf#blockchain>
|
// <https://zips.z.cash/protocol/protocol.pdf#blockchain>
|
||||||
let full_checkpoints = network_clone.checkpoint_list();
|
let full_checkpoints = checkpoint_network.checkpoint_list();
|
||||||
let mut already_warned = false;
|
let mut already_warned = false;
|
||||||
|
|
||||||
for (height, checkpoint_hash) in full_checkpoints.iter() {
|
for (height, checkpoint_hash) in full_checkpoints.iter() {
|
||||||
|
|
|
@ -215,7 +215,7 @@ impl ZebraDb {
|
||||||
|
|
||||||
/// Returns the configured network for this database.
|
/// Returns the configured network for this database.
|
||||||
pub fn network(&self) -> Network {
|
pub fn network(&self) -> Network {
|
||||||
self.db.network().clone()
|
self.db.network()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the `Path` where the files used by this database are located.
|
/// Returns the `Path` where the files used by this database are located.
|
||||||
|
|
Loading…
Reference in New Issue