Problems on running Electrs on a Liquid Node for creating a Liquid Mempool (connecting to electrs)
I am running the liquid testnet with the elements.conf as
chain=liquidtestnet
[liquidtestnet]
daemon=1
server=1
listen=1
txindex=1
addnode=liquid.network:18444
addnode=liquid-testnet.blockstream.com:18891
addnode=liquidtestnet.com:18891
rpcuser=user
rpcpassword=password
rpcport=18891
rpcallowip=127.0.0.1Successfully mined all the 1.9M blocks and also got some funds from the Liquid Faucet. However ran into a problem while running electrs on the liquid node(liquidtestnet). it's continuosly failing. Probably pointing to the bitcoin node and the Bitcoin Defaults reading from the logs ----
:~/electrs$ ./target/release/electrs \
--network liquidtestnet \
--parent-network testnet \
--db-dir /home/ritankar/.electrs/liquidtestnet-db \
--electrum-rpc-addr 127.0.0.1:51001 \
--jsonrpc-import
Config { log: StdErrLog { verbosity: Error, quiet: false, show_level: true,
timestamp: Off, modules: [], writer: "stderr", color_choice: Auto }, network_type: LiquidTestnet, magic: None, db_path:
"/home/ritankar/.electrs/liquidtestnet-db/liquidtestnet", daemon_dir: "/home/ritankar/.bitcoin/liquidtestnet", blocks_dir:
"/home/ritankar/.bitcoin/liquidtestnet/blocks", daemon_rpc_addr: 127.0.0.1:7040, cookie: None, electrum_rpc_addr: 127.0.0.1:51001,
http_addr: 127.0.0.1:3001, http_socket_file: None, rpc_socket_file: None, monitoring_addr: 127.0.0.1:44324, jsonrpc_import: true,
light_mode: false, main_loop_delay: 500, address_search: false, index_unspendables: false, cors: None, precache_scripts: None,
precache_threads: 64, utxos_limit: 500, electrum_txs_limit: 500, electrum_banner: "Welcome to mempool-electrs 3.3.0-dev-4d1fdaf",
mempool_backlog_stats_ttl: 10, mempool_recent_txs_size: 10, rest_default_block_limit: 10, rest_default_chain_txs_per_page: 25,
rest_default_max_mempool_txs: 50, rest_default_max_address_summary_txs: 5000, rest_max_mempool_page_size: 1000, rest_max_mempool_txid_page_size:
10000, parent_network: Testnet, asset_db_path: None }This is the .config/electrs/config.toml file I created to spin up the electrum server
daemon_rpc_addr = "127.0.0.1:18891"
rpc_user = "user"
rpc_pass = "password"
daemon_dir = "/home/ritankar/.elements/liquidtestnet"
blocks_dir = "/home/ritankar/.elements/liquidtestnet/blocks"
electrum_rpc_addr = "127.0.0.1:51001"
network = "liquidtestnet"
parent_network = "testnet"
db_dir = "/home/ritankar/.electrs/liquidtestnet-db"These are the steps I followed -> set up the liquid testnet thing properly -> mined the 1.9M blocks -> got some testcoins from the faucet -> after that clone electrs and built it properly with this command cargo build --release --features liquid after that i was creating this config file to spin things up. Facing error in that
Also this was the command i used for spinning up the server
./target/release/electrs \
--network liquidtestnet \
--parent-network testnet \
--db-dir /home/ritankar/.electrs/liquidtestnet-db \
--electrum-rpc-addr 127.0.0.1:51001 \
--jsonrpc-importIs there any error in the approach ? Any documentation I can follow or any tutorials ?
Also do i need to create the config.toml file inside the electrs repo or outside at the root?