Use block.height() method instead of .into()
This commit is contained in:
parent
cfb6850d7c
commit
c7c39964ec
|
@ -96,6 +96,7 @@ pub fn scan_block<P: consensus::Parameters>(
|
||||||
) -> Vec<WalletTx> {
|
) -> Vec<WalletTx> {
|
||||||
let mut wtxs: Vec<WalletTx> = vec![];
|
let mut wtxs: Vec<WalletTx> = vec![];
|
||||||
let ivks: Vec<_> = extfvks.iter().map(|extfvk| extfvk.fvk.vk.ivk()).collect();
|
let ivks: Vec<_> = extfvks.iter().map(|extfvk| extfvk.fvk.vk.ivk()).collect();
|
||||||
|
let block_height = block.height();
|
||||||
|
|
||||||
for tx in block.vtx.into_iter() {
|
for tx in block.vtx.into_iter() {
|
||||||
let num_spends = tx.spends.len();
|
let num_spends = tx.spends.len();
|
||||||
|
@ -156,7 +157,7 @@ pub fn scan_block<P: consensus::Parameters>(
|
||||||
|
|
||||||
if let Some(output) = scan_output(
|
if let Some(output) = scan_output(
|
||||||
params,
|
params,
|
||||||
block.height.into(),
|
block_height,
|
||||||
to_scan,
|
to_scan,
|
||||||
&ivks,
|
&ivks,
|
||||||
&spent_from_accounts,
|
&spent_from_accounts,
|
||||||
|
|
Loading…
Reference in New Issue