Fix formatting & clippy lints.
This commit is contained in:
parent
85156e2b7c
commit
aa039819df
|
@ -434,6 +434,7 @@ impl<Cache> TestState<Cache> {
|
||||||
/// Invokes [`propose_shielding`] with the given arguments.
|
/// Invokes [`propose_shielding`] with the given arguments.
|
||||||
#[cfg(feature = "transparent-inputs")]
|
#[cfg(feature = "transparent-inputs")]
|
||||||
#[allow(clippy::type_complexity)]
|
#[allow(clippy::type_complexity)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub(crate) fn propose_shielding<InputsT>(
|
pub(crate) fn propose_shielding<InputsT>(
|
||||||
&mut self,
|
&mut self,
|
||||||
input_selector: &InputsT,
|
input_selector: &InputsT,
|
||||||
|
@ -576,6 +577,7 @@ impl<Cache> TestState<Cache> {
|
||||||
.unwrap()
|
.unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub(crate) fn get_pending_change(
|
pub(crate) fn get_pending_change(
|
||||||
&self,
|
&self,
|
||||||
account: AccountId,
|
account: AccountId,
|
||||||
|
|
|
@ -36,9 +36,8 @@ impl<P: consensus::Parameters> RusqliteMigration for Migration<P> {
|
||||||
type Error = WalletMigrationError;
|
type Error = WalletMigrationError;
|
||||||
|
|
||||||
fn up(&self, transaction: &rusqlite::Transaction) -> Result<(), Self::Error> {
|
fn up(&self, transaction: &rusqlite::Transaction) -> Result<(), Self::Error> {
|
||||||
transaction.execute_batch(
|
transaction.execute_batch(&format!(
|
||||||
&format!(
|
"CREATE VIEW v_sapling_shard_scan_ranges AS
|
||||||
"CREATE VIEW v_sapling_shard_scan_ranges AS
|
|
||||||
SELECT
|
SELECT
|
||||||
shard.shard_index,
|
shard.shard_index,
|
||||||
shard.shard_index << {} AS start_position,
|
shard.shard_index << {} AS start_position,
|
||||||
|
@ -60,11 +59,14 @@ impl<P: consensus::Parameters> RusqliteMigration for Migration<P> {
|
||||||
shard.subtree_end_height IS NULL
|
shard.subtree_end_height IS NULL
|
||||||
)
|
)
|
||||||
)",
|
)",
|
||||||
SAPLING_SHARD_HEIGHT,
|
SAPLING_SHARD_HEIGHT,
|
||||||
SAPLING_SHARD_HEIGHT,
|
SAPLING_SHARD_HEIGHT,
|
||||||
u32::from(self.params.activation_height(NetworkUpgrade::Sapling).unwrap()),
|
u32::from(
|
||||||
)
|
self.params
|
||||||
)?;
|
.activation_height(NetworkUpgrade::Sapling)
|
||||||
|
.unwrap()
|
||||||
|
),
|
||||||
|
))?;
|
||||||
|
|
||||||
transaction.execute_batch(&format!(
|
transaction.execute_batch(&format!(
|
||||||
"CREATE VIEW v_sapling_shard_unscanned_ranges AS
|
"CREATE VIEW v_sapling_shard_unscanned_ranges AS
|
||||||
|
|
Loading…
Reference in New Issue