Transaction indexing with Electrs not working #498
-
Hello there, I'm running the last version of electrs (0.9.11) and btc-rpc-explorer (v3.3.0) with the following flags enabled:
Now, if I try to explore a old transaction I can see the in BTC Explorer following: No results found for query: xxxxx 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. And this in Electrs: WARN unknown method blockchain.transaction.get_confirmed_blockhash() Also, I'm not sure if it's related, but when tbtc-rpc-explorer starts, I can see the following in the terminal:
Same problem with electrs (0.9.10) From my understanding, BTC Explorer has to use electrs as an indexer. That's the idea, right? There is no need to set the txindex in Bitcoin Core. This is a bug or I'm missing something? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Using Electrs is run like this: exec $HOME/bin/electrs --conf $HOME/.config/electrs/main.toml And the main.toml file is this:
Then export BTCEXP_PRIVACY_MODE=true
export BTCEXP_HOST=127.0.0.1
export BTCEXP_PORT=3002
export BTCEXP_BITCOIND_USER=user
export BTCEXP_BITCOIND_PASS=bitcoin/share/rpcauth.py-generated
export BTCEXP_ADDRESS_API=electrum
export BTCEXP_ELECTRUM_SERVERS=tcp://127.0.0.1:60001
export BTCEXP_ELECTRUM_TXINDEX=true
export BTCEXP_DEMO=true
export BTCEXP_SLOW_DEVICE_MODE=false
export BTCEXP_NO_RATES=false
export BTCEXP_UI_HOME_PAGE_LATEST_BLOCKS_COUNT=6
export BTCEXP_FILESYSTEM_CACHE_DIR=../../.cache/mainnet
export BTCEXP_UI_TIMEZONE=utc By the way, I always compile |
Beta Was this translation helpful? Give feedback.
-
@jsarenik Do you have txindex=1 in bitcoind? Now that I'm reviewing the documentation and the config files... I'm a bit confused. This is from the config file:
And this is from the documentation:
Please @janoside, can you help with this? Can we use Electrs as a replacement and avoid txindex=1 in Bitcoin Core? Right now, if I search a random transaction like: d5a1941a344dab311b5b9175db7cb80d4f99baec6fdbb0bb9f5dbc7293dd9a3c the app asks for txindex=1. |
Beta Was this translation helpful? Give feedback.
-
@reverse-hash Yes, |
Beta Was this translation helpful? Give feedback.
-
I was thinking that this parameter has to be 0 since we have elects for indexing. Now it works. |
Beta Was this translation helpful? Give feedback.
@reverse-hash Yes,
txindex=1
on be.anyone.eu.org