Enhances the wallet_balance.py test to document better and test the current incorrect behaviour of getbalance with minconf parameter.
The getbalance RPC with minconf incorrectly excludes coins that have been spent, even when those coins had sufficient confirmations when they existed. This commit:
- Adds detailed comments explaining current vs expected behaviour
- Creates a comprehensive test method that demonstrates the issue
- Documents what the correct behaviour should be when the bug is fixed
- Provides clear test cases for future developers working on the fix
The test shows that getbalance(minconf=N) should consider all coins that had N or more confirmations when they existed, regardless of whether they were later spent.