Skip to content

Conversation

@jirijakes
Copy link
Contributor

In Wallet::preselect_utxos(), removes redundant call to get_chain_position() and reuses chain position that is already available.

Closes #1677.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

In `Wallet::preselect_utxos()`, the code used to obtain chain position
of the UTXO's transaction from the graph, however the chain position
is already recorded within the UTXO's representation (`LocalOutput`).
This patch reuses the existing chain position instead of obtaining a
fresh one.
@ValuedMammal
Copy link
Collaborator

ACK however if you look at how it was handled in #1670 I'm not entirely sure this would be needed now, what do you think @jirijakes?

@jirijakes
Copy link
Contributor Author

[…] it was handled in #1670 I'm not entirely sure this would be needed now

Ah, of course. I did not notice it was going to be changed there. Thanks!

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wallet: Don't call get_chain_position redundantly

2 participants