Skip to content

fix: use btc utxos for node balance#314

Open
volcano303 wants to merge 1 commit into
entrius:testfrom
volcano303:fix/btc-node-spendable-balance
Open

fix: use btc utxos for node balance#314
volcano303 wants to merge 1 commit into
entrius:testfrom
volcano303:fix/btc-node-spendable-balance

Conversation

@volcano303
Copy link
Copy Markdown

Summary

  • use Bitcoin Core listunspent to calculate node-mode BTC address balance from current UTXOs
  • keep the existing Esplora fallback when RPC UTXO lookup is unavailable
  • add regression coverage for UTXO summing, spent-address zero balance, and fallback behavior

Issue

Closes #313

Validation

  • uv run pytest tests/test_bitcoin_signing.py::TestBitcoinProviderGetBalance -q
  • uv run pytest tests/test_bitcoin_signing.py -q
  • uv run ruff check allways/ neurons/ tests/test_bitcoin_signing.py
  • uv run pre-commit run --all-files
  • uv run pytest tests/

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BTC node balance can overstate spendable funds

1 participant