Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limited Transaction details with BTCEXP_ELECTRUM_TXINDEX=true #696

Open
Zakarot opened this issue Nov 30, 2024 · 0 comments
Open

Limited Transaction details with BTCEXP_ELECTRUM_TXINDEX=true #696

Zakarot opened this issue Nov 30, 2024 · 0 comments
Labels

Comments

@Zakarot
Copy link

Zakarot commented Nov 30, 2024

I'm not 100% sure if this is a bug or working as designed, but I can't find any documentation to clarify if it is or not, so I'm assuming it is a bug. I have set BTCEXP_ELECTRUM_TXINDEX=true as well as BTCEXP_ADDRESS_API=electrum and BTCEXP_ELECTRUM_SERVERS=tcp://127.0.0.1:50001 in my .env file. I am assuming that that is a drop in replacement for having the txindex enabled in Bitcoin Core, and all the same features should still work. However I do not seem to be able to access transaction details. The Transaction Stats and UTXO Set pages seems to be working fine.

Environment:

  • Bitcoin Core / Node Version: 270200 (/Satoshi:27.2.0/)
  • Electrs Version: v0.10.4
  • NodeJS Version: 9.2.0
  • Browser: Firefox
  • Code Version / Commit: v3.4.0
  • Installation Method: Source Code

/etc/bitcoin/bitcoin.conf:

daemon=1
prune=0
txindex=0
maxuploadtarget=86400M
upnp=0
whitelist=download,noban,mempool,relay@127.0.0.1
disablewallet=1
rpcallowip=127.0.0.1
rpcbind=127.0.0.1:8332
rpccookiefile=cookie.dat
rpccookieperms=group
server=1
[main]
[test]
[signet]
[regtest]

~/.config/btc-rpc-explorer.env:

BTCEXP_SECURE_SITE=true
BTCEXP_COIN=BTC
BTCEXP_HOST=127.0.0.1
BTCEXP_PORT=3002
BTCEXP_BITCOIND_HOST=127.0.0.1
BTCEXP_BITCOIND_PORT=8332
BTCEXP_BITCOIND_COOKIE=/var/lib/bitcoind/cookie.dat
BTCEXP_BITCOIND_RPC_TIMEOUT=5000
BTCEXP_ADDRESS_API=electrum
BTCEXP_ELECTRUM_SERVERS=tcp://127.0.0.1:50001
BTCEXP_ELECTRUM_TXINDEX=true
BTCEXP_SLOW_DEVICE_MODE=false
BTCEXP_NO_RATES=false
BTCEXP_BASIC_AUTH_PASSWORD=***
BTCEXP_DISPLAY_CURRENCY=sat
BTCEXP_LOCAL_CURRENCY=usd
BTCEXP_UI_TIMEZONE=local
BTCEXP_UI_THEME=dark
BTCEXP_UI_HIDE_INFO_NOTES=true

Steps to reproduce the behavior:

  1. Go to any transaction details. I usually search a wallet address, then click on a transaction.
  2. Fee Rate, Total Fee, and Input output details are unavailable
  3. Hovering over Free Rate or Total Fee displays: "Determining the fee of confirmed transactions requires txindex to be enabled"

Similarly, searching for a transaction ID directly, displays the following error: "No results found for query: Your node does not have txindex enabled. Without it, you can only lookup wallet, mempool, and recently confirmed transactions by their txid. Searching for non-wallet transactions that were confirmed more than 3 blocks ago is only possible if the confirmed block height is available."

Expected behavior: When using BTCEXP_ELECTRUM_TXINDEX=true instead of Bitcoin Core's txindex, retain the ability to search txids, pull up details about fees, etc...

Screenshots or Log Output

When searching for a wallet address in BTC RPC Explorer, Electrs generates this in its log:

Nov 30 14:56:01 BTC electrs[631]: [2024-11-30T19:56:01.479Z INFO electrs::electrum] your wallet uses less efficient method of querying electrs, consider contacting the developer of your wallet. Reason: blockchain.scripthash.get_balance called for unsubscribed scripthash

@Zakarot Zakarot added the bug label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant