mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -254,8 +254,9 @@ impl KeystoreContainer {
|
||||
///
|
||||
/// # Note
|
||||
///
|
||||
/// Using the [`LocalKeystore`] will result in loosing the ability to use any other keystore implementation, like
|
||||
/// a remote keystore for example. Only use this if you a certain that you require it!
|
||||
/// Using the [`LocalKeystore`] will result in loosing the ability to use any other keystore
|
||||
/// implementation, like a remote keystore for example. Only use this if you a certain that you
|
||||
/// require it!
|
||||
pub fn local_keystore(&self) -> Option<Arc<LocalKeystore>> {
|
||||
Some(self.local.clone())
|
||||
}
|
||||
|
||||
@@ -272,8 +272,8 @@ where
|
||||
{
|
||||
/// We are reading from the BlockIter structure, adding those blocks to the queue if possible.
|
||||
Reading { block_iter: BlockIter<R, B> },
|
||||
/// The queue is full (contains at least MAX_PENDING_BLOCKS blocks) and we are waiting for it to
|
||||
/// catch up.
|
||||
/// The queue is full (contains at least MAX_PENDING_BLOCKS blocks) and we are waiting for it
|
||||
/// to catch up.
|
||||
WaitingForImportQueueToCatchUp {
|
||||
block_iter: BlockIter<R, B>,
|
||||
delay: Delay,
|
||||
|
||||
@@ -253,7 +253,6 @@ where
|
||||
)
|
||||
.set_parent_hash(at_hash);
|
||||
// TODO: https://github.com/paritytech/substrate/issues/4455
|
||||
// .with_storage_transaction_cache(storage_transaction_cache.as_mut().map(|c| &mut **c))
|
||||
state_machine.execute_using_consensus_failure_handler(
|
||||
execution_manager,
|
||||
native_call.map(|n| || (n)().map_err(|e| Box::new(e) as Box<_>)),
|
||||
|
||||
@@ -827,8 +827,8 @@ where
|
||||
|
||||
let state_root = operation.op.reset_storage(storage)?;
|
||||
if state_root != *import_headers.post().state_root() {
|
||||
// State root mismatch when importing state. This should not happen in safe fast sync mode,
|
||||
// but may happen in unsafe mode.
|
||||
// State root mismatch when importing state. This should not happen in
|
||||
// safe fast sync mode, but may happen in unsafe mode.
|
||||
warn!("Error imporing state: State root mismatch.");
|
||||
return Err(Error::InvalidStateRoot)
|
||||
}
|
||||
|
||||
@@ -120,7 +120,8 @@ pub struct Configuration {
|
||||
pub disable_grandpa: bool,
|
||||
/// Development key seed.
|
||||
///
|
||||
/// When running in development mode, the seed will be used to generate authority keys by the keystore.
|
||||
/// When running in development mode, the seed will be used to generate authority keys by the
|
||||
/// keystore.
|
||||
///
|
||||
/// Should only be set when `node` is running development mode.
|
||||
pub dev_key_seed: Option<String>,
|
||||
|
||||
@@ -342,7 +342,8 @@ mod waiting {
|
||||
}
|
||||
}
|
||||
|
||||
/// Starts RPC servers that run in their own thread, and returns an opaque object that keeps them alive.
|
||||
/// Starts RPC servers that run in their own thread, and returns an opaque object that keeps them
|
||||
/// alive.
|
||||
#[cfg(not(target_os = "unknown"))]
|
||||
fn start_rpc_servers<
|
||||
H: FnMut(
|
||||
@@ -428,7 +429,8 @@ fn start_rpc_servers<
|
||||
)))
|
||||
}
|
||||
|
||||
/// Starts RPC servers that run in their own thread, and returns an opaque object that keeps them alive.
|
||||
/// Starts RPC servers that run in their own thread, and returns an opaque object that keeps them
|
||||
/// alive.
|
||||
#[cfg(target_os = "unknown")]
|
||||
fn start_rpc_servers<
|
||||
H: FnMut(
|
||||
@@ -539,7 +541,8 @@ where
|
||||
},
|
||||
Err(e) => {
|
||||
debug!("Error converting pool error: {:?}", e);
|
||||
// it is not bad at least, just some internal node logic error, so peer is innocent.
|
||||
// it is not bad at least, just some internal node logic error, so peer is
|
||||
// innocent.
|
||||
TransactionImport::KnownGood
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user