]> Untitled Git - bdk/commit
Set the db sync height
authorrajarshimaitra <rajarshi149@gmail.com>
Thu, 25 Aug 2022 12:20:27 +0000 (17:50 +0530)
committerrajarshimaitra <rajarshi149@gmail.com>
Sun, 28 Aug 2022 18:21:24 +0000 (23:51 +0530)
commit08668ac46247d527cc53af5b6f359b1fa4e3b6aa
tree2fea23ac2ddd0521cb5e2d9e8511f4b2ffe9c82e
parent0a3734ed2b9aeebdc7f13e64c6544d35788a0699
Set the db sync height

Previously we weren't setting the db sync height in populate_test_db
macro even when current height is provided.. This creates a bug that
get_funded_wallet will return 0 balance.

This PR fixes the populate_test_db macro and updates tests which were
previously dependent on the unsynced wallet behavior.
src/database/memory.rs
src/wallet/mod.rs