test(lite): set spendableShieldedBalance in the refresh fixture (realistic synced wallet)

Follow-up to 3a33e9c: testLiteRefreshModelAppliesToWalletState built its balance bundle without
spendableShieldedBalance (left 0), so the new "pending = total − spendable" unconfirmedBalance formula
reported the whole 2.0 shielded balance as pending (actual 2.0 vs expected 0.5). In real data
spendable_zbalance is a required parser field and a synced wallet reports all of it spendable; set the
fixture to match (= shieldedBalance), so unconfirmedBalance is the 0.5 mempool-incoming amount as intended.
No production code change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 19:02:21 -05:00
co-authored by Claude Opus 4.8
parent 3a33e9cae9
commit b404bb2aff
+2 -1
View File
@@ -11752,8 +11752,9 @@ void testLiteRefreshModelAppliesToWalletState()
bundle.hasBalance = true; bundle.hasBalance = true;
bundle.balance.shieldedBalance = 200000000; // 2 DRGX bundle.balance.shieldedBalance = 200000000; // 2 DRGX
bundle.balance.spendableShieldedBalance = 200000000; // synced: all of it verified/spendable (required field)
bundle.balance.transparentBalance = 100000000; // 1 DRGX bundle.balance.transparentBalance = 100000000; // 1 DRGX
bundle.balance.unconfirmedBalance = 50000000; // 0.5 DRGX bundle.balance.unconfirmedBalance = 50000000; // 0.5 DRGX (mempool-incoming)
bundle.hasAddresses = true; bundle.hasAddresses = true;
bundle.addresses.zAddresses = {"zs1shielded"}; bundle.addresses.zAddresses = {"zs1shielded"};