[zcash_client_sqlite] Replace the put_tx_meta
workaround in the test send_multi_step_proposed_transfer
#1485
Labels
A-wallet
Area: light wallet backend.
C-tech-debt
Category: Technical debt that needs to be paid off
testing
Milestone
Currently the
zcash_client_sqlite::testing::pool::send_multi_step_proposed_transfer
test code contains an unrealistic call tozcash_client_sqlite::wallet::put_tx_meta
, to ensure that themined_height
database field of the second transaction in a ZIP 320 pair is updated when it is mined in the test.librustzcash/zcash_client_sqlite/src/testing/pool.rs
Lines 667 to 700 in 5a4a3e0
put_tx_meta
is an internal method of thezcash_client_sqlite
backend, and would not normally be called directly by a wallet implementation. Calling it here was a workaround allowing the intended behaviour of the ZIP 320 implementation in #1257 to be tested, despite the fact that (as of that PR) the second transaction would not be detected as interesting to the wallet in some cases.The underlying problem that required this workaround should have been fixed in #1473, which (among other things) added a queue to request verification of mined status. However, as @nuttycom said in #1473 (comment):
For this issue, replace the call to
put_tx_meta
with a more realistic simulated interaction with a wallet, if possible.The text was updated successfully, but these errors were encountered: