Skip to content

Commit

Permalink
zcash_client_sqlite: Use preference order for z->t account matching
Browse files Browse the repository at this point in the history
Co-authored-by: Daira-Emma Hopwood <[email protected]>
  • Loading branch information
str4d and daira authored Mar 11, 2024
1 parent 22ed9eb commit 33be548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zcash_client_sqlite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ impl<P: consensus::Parameters> WalletWrite for WalletDb<rusqlite::Connection, P>
#[cfg(not(feature = "orchard"))]
let orchard_from_account = None;

if let Some(account_id) = sapling_from_account.or(orchard_from_account) {
if let Some(account_id) = orchard_from_account.or(sapling_from_account) {
for (output_index, txout) in d_tx.tx().transparent_bundle().iter().flat_map(|b| b.vout.iter()).enumerate() {
if let Some(address) = txout.recipient_address() {
wallet::put_sent_output(
Expand Down

0 comments on commit 33be548

Please sign in to comment.