Lrz update remove get unspent tx outputs #1393
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
solves build errors:
error[E0407]: method get_unspent_transparent_outputs is not a member of trait InputSource
--> zingolib/src/wallet/transaction_records_by_id/trait_inputsource.rs:296:5
|
296 | fn get_unspent_transparent_outputs(
| ^ ------------------------------- help: there is an associated function with a similar name: get_unspent_transparent_output
| |
| |
297 | | &self,
298 | | // I don't understand what this argument is for. Is the Trait's intent to only shield
299 | | // utxos from one address at a time? Is this needed?
... |
344 | | .collect()
345 | | }
| |^ not a member of trait InputSource
error[E0407]: method get_unspent_transparent_outputs is not a member of trait InputSource
--> zingolib/src/wallet/tx_map_and_maybe_trees/trait_stub_inputsource.rs:55:5
|
55 | fn get_unspent_transparent_outputs(
| ^ ------------------------------- help: there is an associated function with a similar name: get_unspent_transparent_output
| |
| |
56 | | &self,
57 | | address: &zcash_primitives::legacy::TransparentAddress,
58 | | max_height: zcash_primitives::consensus::BlockHeight,
... |
63 | | .map_err(TxMapAndMaybeTreesTraitError::InputSource)
64 | | }
| |^ not a member of trait InputSource
AND
error[E0308]: mismatched types
--> zingolib/src/wallet/transaction_records_by_id/trait_inputsource.rs:339:29
|
333 | Ok(WalletTransparentOutput::from_parts(
| ----------------------------------- arguments to this function are incorrect
...
339 | confirmed_height,
| ^^^^^^^^^^^^^^^^ expected Option, found BlockHeight
|
= note: expected enum std::option::Option
found struct BlockHeight
note: associated function defined here
--> /home/oscar/.cargo/git/checkouts/librustzcash-2a71d81ac8756eb7/53331a3/zcash_client_backend/src/wallet.rs:270:12
|
270 | pub fn from_parts(
| ^^^^^^^^^^
help: try wrapping the expression in Some
|
339 | Some(confirmed_height),
| +++++ +
--> zingolib/src/wallet/tx_map_and_maybe_trees/trait_stub_inputsource.rs:62:14
|
61 | / self.transaction_records_by_id
62 | | .get_unspent_transparent_outputs(address, max_height, exclude)
| |-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: zingolib/src/wallet/transaction_records_by_id.rs:35:1
|
35 | pub struct TransactionRecordsById(pub HashMap<TxId, TransactionRecord>);
| --------------------------------- method get_unspent_transparent_outputs not found for this struct
|
help: there is a method get_unspent_transparent_output with a similar name, but with different arguments
--> /home/oscar/.cargo/git/checkouts/librustzcash-2a71d81ac8756eb7/53331a3/zcash_client_backend/src/data_api.rs:764:5
|
764 | / fn get_unspent_transparent_output(
765 | | &self,
766 | | outpoint: &OutPoint,
767 | | ) -> Result<Option, Self::Error> {
| |_______________________________________________^