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

Transactions list for addresses is always empty #188

Closed
schildbach opened this issue Mar 4, 2020 · 31 comments
Closed

Transactions list for addresses is always empty #188

schildbach opened this issue Mar 4, 2020 · 31 comments
Labels

Comments

@schildbach
Copy link
Contributor

schildbach commented Mar 4, 2020

Describe the bug

When I click on an address, the transactions list on /address/… is always empty. Obviously it should contain at least one entry.

I have almost identical installations for mainnet and testnet; the issue appears on both. The connection to bitcoind appears to work fine. Both bitcoind and ElectrumX are fully synched.

In the logfile, for each /address/… request this error appears:

btcexp:error Error 21307ws70sg: TypeError: Cannot read property 'result' of undefined, json: {}

Environment (please complete the following information):

  • btc-rpc-explorer: 1.1.9
  • Bitcoin Core / Node Version: 0.19.0.1
  • ElectrumX: 1.14.0

I'm using the Docker images for all of the above, built myself from the respective git tags. No customizations.

Configuration file content

For testnet:

  btc-rpc-explorer:
    image: btc-rpc-explorer:1.1.9
    depends_on:
      - bitcoind
      - electrumx
    environment:
      - BTCEXP_COIN=BTC
      - BTCEXP_HOST=0.0.0.0
      - BTCEXP_BITCOIND_URI=bitcoin://user:xxx@bitcoind:18332
      - BTCEXP_ADDRESS_API=electrumx
      - BTCEXP_ELECTRUMX_SERVERS=tcp://electrumx:51001
      - BTCEXP_PRIVACY_MODE=true

For mainnet:

  btc-rpc-explorer:
    image: my/btc-rpc-explorer:1.1.9
    depends_on:
      - bitcoind
      - electrumx
    environment:
      - BTCEXP_COIN=BTC
      - BTCEXP_HOST=0.0.0.0
      - BTCEXP_BITCOIND_URI=bitcoin://user:xxx@bitcoind:8332
      - BTCEXP_ADDRESS_API=electrumx
      - BTCEXP_ELECTRUMX_SERVERS=tcp://electrumx:50001
      - BTCEXP_PRIVACY_MODE=true
@schildbach schildbach added the bug label Mar 4, 2020
@cd2357
Copy link
Contributor

cd2357 commented Mar 8, 2020

Having the same issue.

Opening an address page, for example for address bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej, results in the following output in the ElectrumX log:

Mar  8 07:59:55 myNode electrs[2367]: 2020-03-08T07:59:55.623-05:00 - TRACE - RPC Request("{\"jsonrpc\":\"2.0\",\"method\":\"blockchain.scripthash.get_history\",\"params\":[\"43f626c7e6c22741e3160900776ba65f2526956c54779d193267fde55624adaf\"],\"id\":509}\n")
Mar  8 07:59:56 myNode electrs[2367]: 2020-03-08T07:59:56.396-05:00 - WARN - rpc #509 blockchain.scripthash.get_history [String("43f626c7e6c22741e3160900776ba65f2526956c54779d193267fde55624adaf")] failed: Error: failed to get confirmed status
Mar  8 07:59:56 myNode electrs[2367]: Caused by: 565672+ transactions found, query may take a long time
Mar  8 07:59:56 myNode electrs[2367]: 2020-03-08T07:59:56.397-05:00 - TRACE - RPC Request("{\"jsonrpc\":\"2.0\",\"method\":\"blockchain.scripthash.get_balance\",\"params\":[\"43f626c7e6c22741e3160900776ba65f2526956c54779d193267fde55624adaf\"],\"id\":510}\n")
Mar  8 07:59:57 myNode electrs[2367]: 2020-03-08T07:59:57.126-05:00 - WARN - rpc #510 blockchain.scripthash.get_balance [String("43f626c7e6c22741e3160900776ba65f2526956c54779d193267fde55624adaf")] failed: Error: failed to get confirmed status
Mar  8 07:59:57 myNode electrs[2367]: Caused by: 565672+ transactions found, query may take a long time

The issue is also present on the demo site: https://explorer.btc21.org/address/bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej

However, the demo site shows a note indicating this is caused by #67. Local installation shows no such note, just an empty transactions list.

Browsing the address page for addresses with fewer transactions, for example address 3PC8y2cUH4sswT2ZLpUP5MMSJ6qkU7ZY3Y, works fine both locally and on the demo site: https://explorer.btc21.org/address/3PC8y2cUH4sswT2ZLpUP5MMSJ6qkU7ZY3Y

@cd2357
Copy link
Contributor

cd2357 commented Mar 8, 2020

If using Electrum Rust Server, you can start it with a custom --txid-limit arg to allow tx lookups for addresses with lots of transactions.

From the Electrum Rust Server documentation:

        --txid-limit <txid_limit>
            Number of transactions to lookup before returning an error, to prevent "too popular" addresses from causing
            the RPC server to get stuck (0 - disable the limit) [default: 100]

@schildbach
Copy link
Contributor Author

I don't think my issue is caused by too many transactions. I have addresses with only a few txns on them.

@cd2357
Copy link
Contributor

cd2357 commented Mar 8, 2020

Does it work with other addresses that have <100 transactions, like 1GKJBqN3Z9y5h55VwpNBSvrXoJNtV6u2YY ? Or do you also see an empty history for that as well.

@schildbach
Copy link
Contributor Author

schildbach commented Mar 8, 2020

Like I said: always.

Here is an example for 1 tx: https://test.bitcoin.local/address/2N7m4LmHym3hLe48LswoZ9NncMPK1pp6RnT

@janoside
Copy link
Owner

@schildbach I want to look into this. If you haven't already, can you update to v2.0.0, add another environment variable DEBUG=btcexp:*. Try again and add any new log output here?

@schildbach
Copy link
Contributor Author

This is what I get on one request:

2020-03-30T22:36:05.421Z btcexp:electrumx getAddressTxids=[]
2020-03-30T22:36:05.421Z btcexp:electrumx getAddressBalance=[]
2020-03-30T22:36:05.421Z btcexp:rpc RPC: getblockchaininfo
2020-03-30T22:36:05.421Z btcexp:error Error 2397wgs0sgse: TypeError: Cannot read property 'result' of undefined, json: {}
2020-03-30T22:36:05.422Z btcexp:errorVerbose Stack: TypeError: Cannot read property 'result' of undefined
    at /workspace/app/api/electrumAddressApi.js:106:23
    at <anonymous>
2020-03-30T22:36:05.422Z btcexp:error Error 21307ws70sg: TypeError: Cannot read property 'result' of undefined, json: {}
2020-03-30T22:36:05.422Z btcexp:errorVerbose Stack: TypeError: Cannot read property 'result' of undefined
    at /workspace/app/api/electrumAddressApi.js:119:26
    at <anonymous>
2020-03-30T22:36:06.233Z btcexp:actionPerformace Finished action '/address/2MwMu6CRdgkUyQMsLSiSxFXn1CBUXt9pTVN' in 826 ms

@scientastic
Copy link

I am observing this same problem, both when I install btc-rpc-explorer by hand and when I use it as part of the myNodeBTC project. Some recent addresses (pick a random recent block) will show the transactions. But older addresses tend not to list any transactions-- or worse yet, sometimes btc-rpc-explorer will just hang and the page will not load (btc-rpc-explorer does not respond to the HTTP request). On my hand-rolled installation, I was using ElectrumX; on mynodebtc, it is using electrs.

Works for me:

  • http://:3002/address/bc1qun6qgsfhs253qremz9c7j47xjp4l2t9908ahly

Does not work for me:

  • http://:3002/address/1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE

NOTE: I also just tried these on https://explorer.btc21.org/ and neither of them work. Does this public demo have Electrum configured?

@schildbach
Copy link
Contributor Author

I just checked and this issue still exists on v2.01.

janoside added a commit that referenced this issue Jun 25, 2020
Switching to BlueWallet-based ElectrumX connector which is a maintained fork of old ElectrumX connection code. Seems that some extra effort has been put into reconnecting and this also drops some manual error handling that my old code incorporated.
@janoside
Copy link
Owner

@scientastic Yes, the demo site is configured with an ElectrumX server for address queries, though the tool has historically had trouble maintaining the JSONRPC connection to ElectrumX. Recent changes switch to a better maintained library for connecting to ElectrumX so we'll see how well it maintains the connection on the demo site. As of this moment both of the addresses that you pointed to are working as they're supposed to (of course, the second address, for SlushPool, fails to return the transaction history due to a known issue with ElectrumX):

@schildbach If you're able to test again with the latest code (FYI there's no official release yet so won't be accessible via npm) that would be great. By the way, the testnet address you were trying before is also working on the testnet demo site:

@schildbach
Copy link
Contributor Author

schildbach commented Jun 28, 2020

I now get a formatted error, both on testnet and mainnet:

{
    "e": {
        "userData": {
            "address": "2MwMu6CRdgkUyQMsLSiSxFXn1CBUXt9pTVN",
            "sort": "desc",
            "limit": 10,
            "offset": 0
        }
    },
    "status": "rejected"
}

@janoside
Copy link
Owner

Ah good, we're getting some more details. Hmm, now what to do with this... The first thing that comes to mind: the "rejected" error that you're seeing is what I saw recently when I was testing ElectrumX reconnects. I took my ElectrumX server down and then tried to view an address page and saw a "rejected" error. Are you able to check your ElectrumX logs? Do you have any other tool/service that can verify your ElectrumX's proper functioning (Electrum itself, or BlueWallet perhaps)?

@schildbach
Copy link
Contributor Author

As for logs, see #188 (comment)

@janoside
Copy link
Owner

I mean the logs for the actual ElectrumX server.

@schildbach
Copy link
Contributor Author

electrumx_1         | INFO:electrumx:ElectrumX server starting
electrumx_1         | INFO:electrumx:logging level: INFO
electrumx_1         | INFO:Controller:Python version: 3.7.7 (default, Apr 24 2020, 22:09:29)  [GCC 9.2.0]
electrumx_1         | INFO:Controller:software version: ElectrumX 1.15.0
electrumx_1         | INFO:Controller:aiorpcX version: 0.18.4
electrumx_1         | INFO:Controller:supported protocol versions: 1.4-1.4.2
electrumx_1         | INFO:Controller:event loop policy: None
electrumx_1         | INFO:Controller:reorg limit is 8,000 blocks
electrumx_1         | INFO:Daemon:daemon #1 at bitcoind:18332/ (current)
electrumx_1         | INFO:DB:switching current directory to /data
electrumx_1         | INFO:DB:using leveldb for DB backend
electrumx_1         | ERROR:Daemon:connection problem - check your daemon is running.  Retrying occasionally...
electrumx_1         | INFO:Daemon:running normally
electrumx_1         | INFO:DB:opened UTXO DB (for sync: True)
electrumx_1         | INFO:DB:UTXO DB version: 8
electrumx_1         | INFO:DB:coin: BitcoinSegwit
electrumx_1         | INFO:DB:network: testnet
electrumx_1         | INFO:DB:height: 1,774,299
electrumx_1         | INFO:DB:tip: 0000000000000034ca8c0d06538306a2f383dec61b5fcb0a69cd8cd539263d29
electrumx_1         | INFO:DB:tx count: 56,504,337
electrumx_1         | INFO:DB:flushing DB cache at 1,200 MB
electrumx_1         | INFO:History:history DB version: 1
electrumx_1         | INFO:History:flush count: 5,450
electrumx_1         | INFO:DB:deleted 44 stale undo entries
electrumx_1         | INFO:BlockProcessor:caught up to height 1774299
electrumx_1         | INFO:DB:closing DBs to re-open for serving
electrumx_1         | INFO:DB:opened UTXO DB (for sync: False)
electrumx_1         | INFO:DB:UTXO DB version: 8
electrumx_1         | INFO:DB:coin: BitcoinSegwit
electrumx_1         | INFO:DB:network: testnet
electrumx_1         | INFO:DB:height: 1,774,299
electrumx_1         | INFO:DB:tip: 0000000000000034ca8c0d06538306a2f383dec61b5fcb0a69cd8cd539263d29
electrumx_1         | INFO:DB:tx count: 56,504,337
electrumx_1         | INFO:History:history DB version: 1
electrumx_1         | INFO:History:flush count: 5,450
electrumx_1         | INFO:DB:populating header merkle cache...
electrumx_1         | INFO:MemPool:beginning processing of daemon mempool.  This can take some time...
electrumx_1         | INFO:Prefetcher:caught up to daemon height 1,774,299
electrumx_1         | INFO:SessionManager:max session count: 1,000
electrumx_1         | INFO:SessionManager:session timeout: 600 seconds
electrumx_1         | INFO:SessionManager:session cost hard limit 10,000
electrumx_1         | INFO:SessionManager:session cost soft limit 1,000
electrumx_1         | INFO:SessionManager:bandwidth unit cost 5,000
electrumx_1         | INFO:SessionManager:request sleep 2,500ms
electrumx_1         | INFO:SessionManager:request timeout 30s
electrumx_1         | INFO:SessionManager:initial concurrent 10
electrumx_1         | INFO:SessionManager:max response size 1,000,000 bytes
electrumx_1         | INFO:MemPool:compact fee histogram: []
electrumx_1         | INFO:MemPool:synced in 6.16s
electrumx_1         | INFO:MemPool:22 txs 0.01 MB touching 79 addresses
electrumx_1         | INFO:SessionManager:SSL server listening on electrumx:51002
electrumx_1         | INFO:SessionManager:TCP server listening on electrumx:51001
electrumx_1         | INFO:PeerManager:peer discovery: SELF
electrumx_1         | INFO:PeerManager:peer discovery is disabled
electrumx_1         | INFO:DB:header merkle cache populated in 25.6s
electrumx_1         | INFO:ElectrumX:[0] TCP 192.168.0.5:51720, 0 total
electrumx_1         | INFO:MemPool:23 txs 0.01 MB touching 83 addresses
electrumx_1         | INFO:MemPool:24 txs 0.01 MB touching 86 addresses
electrumx_1         | INFO:Prefetcher:new block height 1,774,300 hash 00000000000000c910a7ba81bcd72221c2d28783b12672e5e7cf8bd6505513bd
electrumx_1         | INFO:DB:flush #5,451 took 0.7s.  Height 1,774,300 txs: 56,504,364 (+27)
electrumx_1         | INFO:BlockProcessor:processed 1 block size 0.01 MB in 2.5s
electrumx_1         | INFO:MemPool:4 txs 0.00 MB touching 12 addresses
electrumx_1         | INFO:MemPool:5 txs 0.00 MB touching 14 addresses
electrumx_1         | INFO:MemPool:5 txs 0.00 MB touching 14 addresses
electrumx_1         | INFO:MemPool:8 txs 0.00 MB touching 19 addresses
electrumx_1         | INFO:MemPool:11 txs 0.00 MB touching 27 addresses
electrumx_1         | INFO:MemPool:13 txs 0.00 MB touching 33 addresses
electrumx_1         | INFO:MemPool:compact fee histogram: []
electrumx_1         | INFO:MemPool:16 txs 0.00 MB touching 44 addresses
electrumx_1         | INFO:MemPool:17 txs 0.00 MB touching 47 addresses
electrumx_1         | INFO:MemPool:19 txs 0.00 MB touching 65 addresses
electrumx_1         | INFO:MemPool:22 txs 0.01 MB touching 71 addresses
electrumx_1         | INFO:MemPool:26 txs 0.01 MB touching 80 addresses
electrumx_1         | INFO:MemPool:27 txs 0.01 MB touching 82 addresses
electrumx_1         | INFO:MemPool:28 txs 0.01 MB touching 85 addresses
electrumx_1         | INFO:MemPool:31 txs 0.01 MB touching 88 addresses
electrumx_1         | INFO:MemPool:compact fee histogram: []
electrumx_1         | INFO:ElectrumX:[1] SSL 192.168.178.4:33718, 1 total
electrumx_1         | INFO:Prefetcher:new block height 1,774,301 hash 0000000000000005e4d5ff139bf724c9e506273dec8ea7a31dfa76c640f82f6a
electrumx_1         | INFO:MemPool:0 txs 0.00 MB touching 0 addresses
electrumx_1         | INFO:DB:flush #5,452 took 0.9s.  Height 1,774,301 txs: 56,504,396 (+32)
electrumx_1         | INFO:BlockProcessor:processed 1 block size 0.01 MB in 1.4s
electrumx_1         | INFO:MemPool:2 txs 0.00 MB touching 6 addresses
electrumx_1         | INFO:MemPool:2 txs 0.00 MB touching 6 addresses
electrumx_1         | INFO:ElectrumX:[1] disconnected whilst throttled.  Sent 22,620,921 bytes in 75 messages
electrumx_1         | INFO:MemPool:4 txs 0.00 MB touching 11 addresses
electrumx_1         | INFO:Prefetcher:new block height 1,774,302 hash 00000000000000a6b7b7b1d39a6f35644d288f0fef371438c72e87d6989bd01c
electrumx_1         | INFO:DB:flush #5,453 took 0.3s.  Height 1,774,302 txs: 56,504,402 (+6)
electrumx_1         | INFO:BlockProcessor:processed 1 block size 0.00 MB in 0.5s
electrumx_1         | INFO:ElectrumX:[2] SSL 192.168.178.4:33876, 1 total
electrumx_1         | INFO:MemPool:0 txs 0.00 MB touching 0 addresses
electrumx_1         | INFO:Prefetcher:new block height 1,774,303 hash 000000000000002baedccc717b81b0c39afc91bd3bb17b9015d435da48df38ea
electrumx_1         | INFO:DB:flush #5,454 took 0.2s.  Height 1,774,303 txs: 56,504,403 (+1)
electrumx_1         | INFO:BlockProcessor:processed 1 block size 0.00 MB in 0.4s
electrumx_1         | INFO:MemPool:2 txs 0.00 MB touching 6 addresses
electrumx_1         | INFO:Prefetcher:new block height 1,774,304 hash 000000000000005ee40fd9af5d957d6535318ce0a8fbdd4d8746e8ce79d72894
electrumx_1         | INFO:DB:flush #5,455 took 0.2s.  Height 1,774,304 txs: 56,504,405 (+2)
electrumx_1         | INFO:BlockProcessor:processed 1 block size 0.00 MB in 0.2s
electrumx_1         | INFO:MemPool:2 txs 0.00 MB touching 6 addresses
electrumx_1         | INFO:MemPool:4 txs 0.00 MB touching 23 addresses
electrumx_1         | INFO:MemPool:compact fee histogram: []
electrumx_1         | INFO:MemPool:13 txs 0.00 MB touching 41 addresses
electrumx_1         | INFO:ElectrumX:[3] SSL 192.168.178.4:34204, 1 total
electrumx_1         | INFO:Prefetcher:new block height 1,774,305 hash 00000000000000ab6cce0602f71befc8b4b790773775b7db2c1f7f0b34289a08
electrumx_1         | INFO:DB:flush #5,456 took 0.2s.  Height 1,774,305 txs: 56,504,419 (+14)
electrumx_1         | INFO:BlockProcessor:processed 1 block size 0.01 MB in 0.3s
electrumx_1         | INFO:MemPool:2 txs 0.00 MB touching 6 addresses
electrumx_1         | INFO:MemPool:3 txs 0.00 MB touching 7 addresses
electrumx_1         | INFO:MemPool:8 txs 0.00 MB touching 19 addresses
electrumx_1         | INFO:MemPool:13 txs 0.00 MB touching 29 addresses
electrumx_1         | INFO:ElectrumX:[3] changing task concurrency from 10 to 5
electrumx_1         | INFO:MemPool:23 txs 0.01 MB touching 38 addresses

@janoside
Copy link
Owner

Are you able to connect to and query ElectrumX from another tool/service?

@schildbach
Copy link
Contributor Author

At the moment I don't have another tool. I'm only using ElectrumX because btc-rpc-explorer depends on it.

But I'm currently trying to implement a Docker health check for ElectrumX. Do you have a suggestion for a quick test if ElectrumX is responding to commands, maybe using a tool contained in busybox?

@janoside
Copy link
Owner

@schildbach One thing you can try is connect via the commandline and see if your ElectrumX will communicate properly there. To do that, if you're running on port 50002 (SSL), you'd run this command (substituting the appropriate IP):

openssl s_client -connect 192.168.1.1:50002

If that command is successful you'll see connection data printed and then have a blank prompt where you can enter data to send to ElectrumX. To test the transaction history for the testnet address you last referenced (2MwMu6CRdgkUyQMsLSiSxFXn1CBUXt9pTVN), you can enter the following data:

{"id":"1", "method":"blockchain.scripthash.get_history", "params":["744ebbca56d6780c45e2424d4d805c1b02835ce99df2daa27d236439a94d3901"]}

The "param" there is the "scripthash" associated with that address and is the primary identifier ElectrumX uses to query addresses. If you paste the above data and hit enter your testnet ElectrumX "should" return the following:

{"jsonrpc": "2.0", "result": [{"tx_hash": "aaf786292ae728e47d047a11531a59699b1d726a05e6d01a8f49098224c32e7d", "height": 1692353}, {"tx_hash": "74eb7b351da1ea6b526c3bf4d00ae6bd2bcc2df30d66a899cb63a297cd3ca03e", "height": 1692346}], "id": "1"}

See what happens and let me know.

@schildbach
Copy link
Contributor Author

schildbach commented Jun 30, 2020

From the same container:

openssl s_client -connect electrumx:51002
{"id":"1", "method":"blockchain.scripthash.get_history", "params":["744ebbca56d6780c45e2424d4d805c1b02835ce99df2daa27d236439a94d3901"]}
{"jsonrpc": "2.0", "result": [{"tx_hash": "74eb7b351da1ea6b526c3bf4d00ae6bd2bcc2df30d66a899cb63a297cd3ca03e", "height": 1692346}, {"tx_hash": "aaf786292ae728e47d047a11531a59699b1d726a05e6d01a8f49098224c32e7d", "height": 1692353}], "id": "1"}

@schildbach
Copy link
Contributor Author

schildbach commented Jun 30, 2020

From the btc-rpc-explorer container:

openssl s_client -connect electrumx:51002
{"id":"1", "method":"blockchain.scripthash.get_history", "params":["744ebbca56d6780c45e2424d4d805c1b02835ce99df2daa27d236439a94d3901"]}
{"jsonrpc": "2.0", "result": [{"tx_hash": "74eb7b351da1ea6b526c3bf4d00ae6bd2bcc2df30d66a899cb63a297cd3ca03e", "height": 1692346}, {"tx_hash": "aaf786292ae728e47d047a11531a59699b1d726a05e6d01a8f49098224c32e7d", "height": 1692353}], "id": "1"}

@schildbach
Copy link
Contributor Author

Just noticed that I have the TCP (non-SSL) connection configured between btc-rpc-explorer and electrumx, so I also tested:

nc electrumx:51001
{"id":"1", "method":"blockchain.scripthash.get_history", "params":["744ebbca56d6780c45e2424d4d805c1b02835ce99df2daa27d236439a94d3901"]}
{"jsonrpc": "2.0", "result": [{"tx_hash": "74eb7b351da1ea6b526c3bf4d00ae6bd2bcc2df30d66a899cb63a297cd3ca03e", "height": 1692346}, {"tx_hash": "aaf786292ae728e47d047a11531a59699b1d726a05e6d01a8f49098224c32e7d", "height": 1692353}], "id": "1"}

@schildbach
Copy link
Contributor Author

I wonder if the call actually succeeds, but then for each tx subsequent calls happen and those fail. Because in the UI there are stubs for two txns, which is the correct number. See this screenshot:
Screenshot from 2020-06-30 19-41-28

@janoside
Copy link
Owner

This is all good stuff... Thanks for doing that ElectrumX debugging - it helps rule some things out.

Concerning your last update: I think the 2 results is just a coincidence for this particular address. I believe that if you look at another address (with tx_count != 2) you'll still see 2 such errors. The reason for that is that there are 2 separate calls made to ElectrumX: 1 to get the current address balance and 1 to get the tx history.

Again, thanks for your help debugging this. I'm looking more at the relevant code right now...

@janoside
Copy link
Owner

janoside commented Jul 1, 2020

@schildbach There are some new improvements to the code that connects to ElectrumX. Can you update to the latest code and send me an updated startup log. This time can you use the environment variable DEBUG=btcexp:*,electrum*? I'm interested to see what's printed right at startup and when you request an address page.

At startup I'm hoping to see the line:

btcexp:electrumx Connected to ElectrumX @ 192.168.1.1:50002 (["ElectrumX 1.14.0","1.4"])

And when viewing an address page we're looking for these 2 lines (for an address I picked at random from mainnet):

btcexp:electrumx getAddressTxids=[{"result":[{"tx_hash":"041e43f7b4e4a28451c589219df2725d57088c7205a6f33a94209f9350cbb669","height":637219}],"server":"192.168.1.6"}]
btcexp:electrumx getAddressBalance=[{"result":{"confirmed":68058,"unconfirmed":0},"server":"192.168.1.6"}]

Seeing that first line (indicating successful connection to ElectrumX) is the first order of business. If you're not getting connected successfully then of course subsequent address requests will fail.

@schildbach
Copy link
Contributor Author

Here is a complete log of the container startup, some wait time, and then I tried to query the 2N7m4LmHym3hLe48LswoZ9NncMPK1pp6RnT address again. Note that the "/changelog" queries are from my healthcheck running about twice per minute.

I now see an "Error connecting to ElectrumX" which I whink I've not seen before (maybe it wasn't logged?). I have to investigate into this.

btc-rpc-explorer_1  | 
btc-rpc-explorer_1  | > [email protected] start /workspace
btc-rpc-explorer_1  | > node ./bin/www
btc-rpc-explorer_1  | 
btc-rpc-explorer_1  | 2020-07-02T10:43:17.782Z btcexp:config Config(default): BTCEXP_DEMO=false
btc-rpc-explorer_1  | 2020-07-02T10:43:17.785Z btcexp:config Config(default): BTCEXP_NO_INMEMORY_RPC_CACHE=false
btc-rpc-explorer_1  | 2020-07-02T10:43:17.785Z btcexp:config Config(default): BTCEXP_RPC_ALLOWALL=false
btc-rpc-explorer_1  | 2020-07-02T10:43:17.785Z btcexp:config Config(default): BTCEXP_NO_RATES=true
btc-rpc-explorer_1  | 2020-07-02T10:43:17.785Z btcexp:config Config(default): BTCEXP_UI_SHOW_TOOLS_SUBHEADER=true
btc-rpc-explorer_1  | 2020-07-02T10:43:17.785Z btcexp:config Config(default): BTCEXP_SLOW_DEVICE_MODE=true
btc-rpc-explorer_1  | 2020-07-02T10:43:17.786Z btcexp:config Config(final): privacyMode=true
btc-rpc-explorer_1  | 2020-07-02T10:43:17.786Z btcexp:config Config(final): slowDeviceMode=true
btc-rpc-explorer_1  | 2020-07-02T10:43:17.786Z btcexp:config Config(final): demo=false
btc-rpc-explorer_1  | 2020-07-02T10:43:17.786Z btcexp:config Config(final): rpcAllowAll=false
btc-rpc-explorer_1  | Error: spawn git ENOENT
btc-rpc-explorer_1  |     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
btc-rpc-explorer_1  |     at onErrorNT (internal/child_process.js:362:16)
btc-rpc-explorer_1  |     at _combinedTickCallback (internal/process/next_tick.js:139:11)
btc-rpc-explorer_1  |     at process._tickCallback (internal/process/next_tick.js:181:9)
btc-rpc-explorer_1  |     at Function.Module.runMain (module.js:696:11)
btc-rpc-explorer_1  |     at startup (bootstrap_node.js:204:16)
btc-rpc-explorer_1  |     at bootstrap_node.js:625:3
btc-rpc-explorer_1  | 2020-07-02T10:43:19.326Z btcexp:error Error 3fehge9ee: Error: spawn git ENOENT
btc-rpc-explorer_1  |     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
btc-rpc-explorer_1  |     at onErrorNT (internal/child_process.js:362:16)
btc-rpc-explorer_1  |     at _combinedTickCallback (internal/process/next_tick.js:139:11)
btc-rpc-explorer_1  |     at process._tickCallback (internal/process/next_tick.js:181:9)
btc-rpc-explorer_1  |     at Function.Module.runMain (module.js:696:11)
btc-rpc-explorer_1  |     at startup (bootstrap_node.js:204:16)
btc-rpc-explorer_1  |     at bootstrap_node.js:625:3, json: "Error: spawn git ENOENT\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)\n    at onErrorNT (internal/child_process.js:362:16)\n    at _combinedTickCallback (internal/process/next_tick.js:139:11)\n    at process._tickCallback (internal/process/next_tick.js:181:9)\n    at Function.Module.runMain (module.js:696:11)\n    at startup (bootstrap_node.js:204:16)\n    at bootstrap_node.js:625:3", userData: [object Object] (json: {"desc":"Error accessing git repo"})
btc-rpc-explorer_1  | 2020-07-02T10:43:19.326Z btcexp:app Starting BTC RPC Explorer, v2.0.1 (code: unknown commit)
btc-rpc-explorer_1  | 2020-07-02T10:43:19.327Z btcexp:app Connecting to RPC node at bitcoind:18332
btc-rpc-explorer_1  | 2020-07-02T10:43:19.351Z btcexp:app Verifying RPC connection...
btc-rpc-explorer_1  | 2020-07-02T10:43:19.360Z btcexp:app Loading mining pools config
btc-rpc-explorer_1  | 2020-07-02T10:43:19.363Z btcexp:rpc RPC: getnetworkinfo
btc-rpc-explorer_1  | 2020-07-02T10:43:19.391Z btcexp:electrumx Error connecting to ElectrumX @ electrumx:51001
btc-rpc-explorer_1  | 2020-07-02T10:43:19.392Z btcexp:error Error 137rg023xx7gerfwdd: Error: connect ECONNREFUSED 192.168.160.4:51001, json: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"192.168.160.4","port":51001}, userData: [object Object] (json: {"host":"electrumx","port":51001,"protocol":"tcp"})
btc-rpc-explorer_1  | 2020-07-02T10:43:19.393Z btcexp:errorVerbose Stack: Error: connect ECONNREFUSED 192.168.160.4:51001
btc-rpc-explorer_1  |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
btc-rpc-explorer_1  | 2020-07-02T10:43:19.393Z btcexp:error Error 120387rygxx231gwe40: Error: connect ECONNREFUSED 192.168.160.4:51001, json: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"192.168.160.4","port":51001}
btc-rpc-explorer_1  | 2020-07-02T10:43:19.393Z btcexp:errorVerbose Stack: Error: connect ECONNREFUSED 192.168.160.4:51001
btc-rpc-explorer_1  |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
btc-rpc-explorer_1  | 2020-07-02T10:43:19.394Z btcexp:error Error 31207ugf4e0fed: Error: connect ECONNREFUSED 192.168.160.4:51001, json: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"192.168.160.4","port":51001}, userData: [object Object] (json: {"electrumXServers":[{"protocol":"tcp","host":"electrumx","port":51001}]})
btc-rpc-explorer_1  | 2020-07-02T10:43:19.394Z btcexp:errorVerbose Stack: Error: connect ECONNREFUSED 192.168.160.4:51001
btc-rpc-explorer_1  |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
btc-rpc-explorer_1  | 2020-07-02T10:43:19.419Z btcexp:error Error 9u4278t5h7rfhgf: Error: RpcError: type=failure-01, json: {"userData":{"error":{"message":"Loading block index...","code":-28,"name":"RpcError"},"request":"getnetworkinfo"}}, userData: [object Object] (json: {"error":{"message":"Loading block index...","code":-28,"name":"RpcError"},"request":"getnetworkinfo"})
btc-rpc-explorer_1  | 2020-07-02T10:43:19.419Z btcexp:errorVerbose Stack: Error: RpcError: type=failure-01
btc-rpc-explorer_1  |     at Client.<anonymous> (/workspace/app/api/rpcApi.js:358:13)
btc-rpc-explorer_1  |     at Client.tryCatcher (/workspace/node_modules/bluebird/js/release/util.js:16:23)
btc-rpc-explorer_1  |     at Promise.errorAdapter (/workspace/node_modules/bluebird/js/release/nodeify.js:35:34)
btc-rpc-explorer_1  |     at Promise._settlePromise (/workspace/node_modules/bluebird/js/release/promise.js:601:21)
btc-rpc-explorer_1  |     at Promise._settlePromise0 (/workspace/node_modules/bluebird/js/release/promise.js:649:10)
btc-rpc-explorer_1  |     at Promise._settlePromises (/workspace/node_modules/bluebird/js/release/promise.js:725:18)
btc-rpc-explorer_1  |     at _drainQueueStep (/workspace/node_modules/bluebird/js/release/async.js:93:12)
btc-rpc-explorer_1  |     at _drainQueue (/workspace/node_modules/bluebird/js/release/async.js:86:9)
btc-rpc-explorer_1  |     at Async._drainQueues (/workspace/node_modules/bluebird/js/release/async.js:102:5)
btc-rpc-explorer_1  |     at Immediate.Async.drainQueues (/workspace/node_modules/bluebird/js/release/async.js:15:14)
btc-rpc-explorer_1  |     at runCallback (timers.js:810:20)
btc-rpc-explorer_1  |     at tryOnImmediate (timers.js:768:5)
btc-rpc-explorer_1  |     at processImmediate [as _immediateCallback] (timers.js:745:5)
btc-rpc-explorer_1  | 2020-07-02T10:43:19.420Z btcexp:error Error 32ugegdfsde: Error: RpcError: type=failure-01, json: {"userData":{"error":{"message":"Loading block index...","code":-28,"name":"RpcError"},"request":"getnetworkinfo"}}
btc-rpc-explorer_1  | 2020-07-02T10:43:19.420Z btcexp:errorVerbose Stack: Error: RpcError: type=failure-01
btc-rpc-explorer_1  |     at Client.<anonymous> (/workspace/app/api/rpcApi.js:358:13)
btc-rpc-explorer_1  |     at Client.tryCatcher (/workspace/node_modules/bluebird/js/release/util.js:16:23)
btc-rpc-explorer_1  |     at Promise.errorAdapter (/workspace/node_modules/bluebird/js/release/nodeify.js:35:34)
btc-rpc-explorer_1  |     at Promise._settlePromise (/workspace/node_modules/bluebird/js/release/promise.js:601:21)
btc-rpc-explorer_1  |     at Promise._settlePromise0 (/workspace/node_modules/bluebird/js/release/promise.js:649:10)
btc-rpc-explorer_1  |     at Promise._settlePromises (/workspace/node_modules/bluebird/js/release/promise.js:725:18)
btc-rpc-explorer_1  |     at _drainQueueStep (/workspace/node_modules/bluebird/js/release/async.js:93:12)
btc-rpc-explorer_1  |     at _drainQueue (/workspace/node_modules/bluebird/js/release/async.js:86:9)
btc-rpc-explorer_1  |     at Async._drainQueues (/workspace/node_modules/bluebird/js/release/async.js:102:5)
btc-rpc-explorer_1  |     at Immediate.Async.drainQueues (/workspace/node_modules/bluebird/js/release/async.js:15:14)
btc-rpc-explorer_1  |     at runCallback (timers.js:810:20)
btc-rpc-explorer_1  |     at tryOnImmediate (timers.js:768:5)
btc-rpc-explorer_1  |     at processImmediate [as _immediateCallback] (timers.js:745:5)
btc-rpc-explorer_1  | 2020-07-02T10:43:47.867Z btcexp:actionPerformace Finished action '/changelog' in 693 ms
btc-rpc-explorer_1  | 2020-07-02T10:43:49.356Z btcexp:app Verifying RPC connection...
btc-rpc-explorer_1  | 2020-07-02T10:43:49.357Z btcexp:rpc RPC: getnetworkinfo
btc-rpc-explorer_1  | 2020-07-02T10:43:49.369Z btcexp:error Error 9u4278t5h7rfhgf: Error: RpcError: type=failure-01, json: {"userData":{"error":{"message":"Loading block index...","code":-28,"name":"RpcError"},"request":"getnetworkinfo"}}, userData: [object Object] (json: {"error":{"message":"Loading block index...","code":-28,"name":"RpcError"},"request":"getnetworkinfo"})
btc-rpc-explorer_1  | 2020-07-02T10:43:49.370Z btcexp:errorVerbose Stack: Error: RpcError: type=failure-01
btc-rpc-explorer_1  |     at Client.<anonymous> (/workspace/app/api/rpcApi.js:358:13)
btc-rpc-explorer_1  |     at Client.tryCatcher (/workspace/node_modules/bluebird/js/release/util.js:16:23)
btc-rpc-explorer_1  |     at Promise.errorAdapter (/workspace/node_modules/bluebird/js/release/nodeify.js:35:34)
btc-rpc-explorer_1  |     at Promise._settlePromise (/workspace/node_modules/bluebird/js/release/promise.js:601:21)
btc-rpc-explorer_1  |     at Promise._settlePromise0 (/workspace/node_modules/bluebird/js/release/promise.js:649:10)
btc-rpc-explorer_1  |     at Promise._settlePromises (/workspace/node_modules/bluebird/js/release/promise.js:725:18)
btc-rpc-explorer_1  |     at _drainQueueStep (/workspace/node_modules/bluebird/js/release/async.js:93:12)
btc-rpc-explorer_1  |     at _drainQueue (/workspace/node_modules/bluebird/js/release/async.js:86:9)
btc-rpc-explorer_1  |     at Async._drainQueues (/workspace/node_modules/bluebird/js/release/async.js:102:5)
btc-rpc-explorer_1  |     at Immediate.Async.drainQueues (/workspace/node_modules/bluebird/js/release/async.js:15:14)
btc-rpc-explorer_1  |     at runCallback (timers.js:810:20)
btc-rpc-explorer_1  |     at tryOnImmediate (timers.js:768:5)
btc-rpc-explorer_1  |     at processImmediate [as _immediateCallback] (timers.js:745:5)
btc-rpc-explorer_1  | 2020-07-02T10:43:49.370Z btcexp:error Error 32ugegdfsde: Error: RpcError: type=failure-01, json: {"userData":{"error":{"message":"Loading block index...","code":-28,"name":"RpcError"},"request":"getnetworkinfo"}}
btc-rpc-explorer_1  | 2020-07-02T10:43:49.370Z btcexp:errorVerbose Stack: Error: RpcError: type=failure-01
btc-rpc-explorer_1  |     at Client.<anonymous> (/workspace/app/api/rpcApi.js:358:13)
btc-rpc-explorer_1  |     at Client.tryCatcher (/workspace/node_modules/bluebird/js/release/util.js:16:23)
btc-rpc-explorer_1  |     at Promise.errorAdapter (/workspace/node_modules/bluebird/js/release/nodeify.js:35:34)
btc-rpc-explorer_1  |     at Promise._settlePromise (/workspace/node_modules/bluebird/js/release/promise.js:601:21)
btc-rpc-explorer_1  |     at Promise._settlePromise0 (/workspace/node_modules/bluebird/js/release/promise.js:649:10)
btc-rpc-explorer_1  |     at Promise._settlePromises (/workspace/node_modules/bluebird/js/release/promise.js:725:18)
btc-rpc-explorer_1  |     at _drainQueueStep (/workspace/node_modules/bluebird/js/release/async.js:93:12)
btc-rpc-explorer_1  |     at _drainQueue (/workspace/node_modules/bluebird/js/release/async.js:86:9)
btc-rpc-explorer_1  |     at Async._drainQueues (/workspace/node_modules/bluebird/js/release/async.js:102:5)
btc-rpc-explorer_1  |     at Immediate.Async.drainQueues (/workspace/node_modules/bluebird/js/release/async.js:15:14)
btc-rpc-explorer_1  |     at runCallback (timers.js:810:20)
btc-rpc-explorer_1  |     at tryOnImmediate (timers.js:768:5)
btc-rpc-explorer_1  |     at processImmediate [as _immediateCallback] (timers.js:745:5)
btc-rpc-explorer_1  | 2020-07-02T10:44:18.945Z btcexp:actionPerformace Finished action '/changelog' in 465 ms
btc-rpc-explorer_1  | 2020-07-02T10:44:19.358Z btcexp:app Verifying RPC connection...
btc-rpc-explorer_1  | 2020-07-02T10:44:19.358Z btcexp:rpc RPC: getnetworkinfo
btc-rpc-explorer_1  | 2020-07-02T10:44:19.369Z btcexp:error Error 9u4278t5h7rfhgf: Error: RpcError: type=failure-01, json: {"userData":{"error":{"message":"Loading block index...","code":-28,"name":"RpcError"},"request":"getnetworkinfo"}}, userData: [object Object] (json: {"error":{"message":"Loading block index...","code":-28,"name":"RpcError"},"request":"getnetworkinfo"})
btc-rpc-explorer_1  | 2020-07-02T10:44:19.369Z btcexp:errorVerbose Stack: Error: RpcError: type=failure-01
btc-rpc-explorer_1  |     at Client.<anonymous> (/workspace/app/api/rpcApi.js:358:13)
btc-rpc-explorer_1  |     at Client.tryCatcher (/workspace/node_modules/bluebird/js/release/util.js:16:23)
btc-rpc-explorer_1  |     at Promise.errorAdapter (/workspace/node_modules/bluebird/js/release/nodeify.js:35:34)
btc-rpc-explorer_1  |     at Promise._settlePromise (/workspace/node_modules/bluebird/js/release/promise.js:601:21)
btc-rpc-explorer_1  |     at Promise._settlePromise0 (/workspace/node_modules/bluebird/js/release/promise.js:649:10)
btc-rpc-explorer_1  |     at Promise._settlePromises (/workspace/node_modules/bluebird/js/release/promise.js:725:18)
btc-rpc-explorer_1  |     at _drainQueueStep (/workspace/node_modules/bluebird/js/release/async.js:93:12)
btc-rpc-explorer_1  |     at _drainQueue (/workspace/node_modules/bluebird/js/release/async.js:86:9)
btc-rpc-explorer_1  |     at Async._drainQueues (/workspace/node_modules/bluebird/js/release/async.js:102:5)
btc-rpc-explorer_1  |     at Immediate.Async.drainQueues (/workspace/node_modules/bluebird/js/release/async.js:15:14)
btc-rpc-explorer_1  |     at runCallback (timers.js:810:20)
btc-rpc-explorer_1  |     at tryOnImmediate (timers.js:768:5)
btc-rpc-explorer_1  |     at processImmediate [as _immediateCallback] (timers.js:745:5)
btc-rpc-explorer_1  | 2020-07-02T10:44:19.369Z btcexp:error Error 32ugegdfsde: Error: RpcError: type=failure-01, json: {"userData":{"error":{"message":"Loading block index...","code":-28,"name":"RpcError"},"request":"getnetworkinfo"}}
btc-rpc-explorer_1  | 2020-07-02T10:44:19.370Z btcexp:errorVerbose Stack: Error: RpcError: type=failure-01
btc-rpc-explorer_1  |     at Client.<anonymous> (/workspace/app/api/rpcApi.js:358:13)
btc-rpc-explorer_1  |     at Client.tryCatcher (/workspace/node_modules/bluebird/js/release/util.js:16:23)
btc-rpc-explorer_1  |     at Promise.errorAdapter (/workspace/node_modules/bluebird/js/release/nodeify.js:35:34)
btc-rpc-explorer_1  |     at Promise._settlePromise (/workspace/node_modules/bluebird/js/release/promise.js:601:21)
btc-rpc-explorer_1  |     at Promise._settlePromise0 (/workspace/node_modules/bluebird/js/release/promise.js:649:10)
btc-rpc-explorer_1  |     at Promise._settlePromises (/workspace/node_modules/bluebird/js/release/promise.js:725:18)
btc-rpc-explorer_1  |     at _drainQueueStep (/workspace/node_modules/bluebird/js/release/async.js:93:12)
btc-rpc-explorer_1  |     at _drainQueue (/workspace/node_modules/bluebird/js/release/async.js:86:9)
btc-rpc-explorer_1  |     at Async._drainQueues (/workspace/node_modules/bluebird/js/release/async.js:102:5)
btc-rpc-explorer_1  |     at Immediate.Async.drainQueues (/workspace/node_modules/bluebird/js/release/async.js:15:14)
btc-rpc-explorer_1  |     at runCallback (timers.js:810:20)
btc-rpc-explorer_1  |     at tryOnImmediate (timers.js:768:5)
btc-rpc-explorer_1  |     at processImmediate [as _immediateCallback] (timers.js:745:5)
btc-rpc-explorer_1  | 2020-07-02T10:44:49.359Z btcexp:app Verifying RPC connection...
btc-rpc-explorer_1  | 2020-07-02T10:44:49.359Z btcexp:rpc RPC: getnetworkinfo
btc-rpc-explorer_1  | 2020-07-02T10:44:49.372Z btcexp:rpc RPC: getblockchaininfo
btc-rpc-explorer_1  | 2020-07-02T10:44:49.377Z btcexp:app RPC Connected: version=190100 subversion=/Satoshi:0.19.1/, parsedVersion(used for RPC versioning)=0.19.1, protocolversion=70015, chain=test, services=[NETWORK, BLOOM, WITNESS, NETWORK_LIMITED]
btc-rpc-explorer_1  | 2020-07-02T10:44:49.377Z btcexp:app Loading historical data for chain=test
btc-rpc-explorer_1  | 2020-07-02T10:44:49.377Z btcexp:app Skipping performance-intensive task: fetch UTXO set summary. This is skipped due to the flag 'slowDeviceMode' which defaults to 'true' to protect slow nodes. Set this flag to 'false' to enjoy UTXO set summary details.
btc-rpc-explorer_1  | 2020-07-02T10:44:49.378Z btcexp:app Skipping performance-intensive task: fetch last 24 hrs of blockstats to calculate transaction volume. This is skipped due to the flag 'slowDeviceMode' which defaults to 'true' to protect slow nodes. Set this flag to 'false' to enjoy UTXO set summary details.
btc-rpc-explorer_1  | 2020-07-02T10:44:49.895Z btcexp:actionPerformace Finished action '/changelog' in 338 ms
btc-rpc-explorer_1  | 2020-07-02T10:45:20.834Z btcexp:actionPerformace Finished action '/changelog' in 304 ms
btc-rpc-explorer_1  | 2020-07-02T10:45:51.767Z btcexp:actionPerformace Finished action '/changelog' in 324 ms
btc-rpc-explorer_1  | 2020-07-02T10:46:22.936Z btcexp:actionPerformace Finished action '/changelog' in 536 ms
btc-rpc-explorer_1  | 2020-07-02T10:46:32.597Z btcexp:rpc RPC: getmempoolinfo
btc-rpc-explorer_1  | 2020-07-02T10:46:32.598Z btcexp:rpc RPC: getmininginfo
btc-rpc-explorer_1  | 2020-07-02T10:46:32.598Z btcexp:rpc RPC: {"method":"estimatesmartfee","parameters":[1,"CONSERVATIVE"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.598Z btcexp:rpc RPC: {"method":"estimatesmartfee","parameters":[6,"CONSERVATIVE"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.598Z btcexp:rpc RPC: {"method":"estimatesmartfee","parameters":[144,"CONSERVATIVE"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.598Z btcexp:rpc RPC: {"method":"estimatesmartfee","parameters":[1008,"CONSERVATIVE"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.599Z btcexp:rpc RPC: {"method":"getnetworkhashps","parameters":[144]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.599Z btcexp:rpc RPC: {"method":"getnetworkhashps","parameters":[1008]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.599Z btcexp:rpc RPC: getblockchaininfo
btc-rpc-explorer_1  | 2020-07-02T10:46:32.632Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774901]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.633Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774900]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.633Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774899]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.633Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774898]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.633Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774897]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.633Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774896]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.633Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774895]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.633Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774894]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.634Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774893]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.634Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774892]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.634Z btcexp:rpc RPC: {"method":"getblockstats","parameters":[1774891]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.634Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774080]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.634Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[144]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.634Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[1008]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.634Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[4320]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.634Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[52560]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.634Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[1774900]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774901]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774900]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774899]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774898]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774897]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774896]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774895]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774894]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774893]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774892]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.635Z btcexp:rpc RPC: {"method":"getblockhash","parameters":[1774891]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.636Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[143]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.636Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[138]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.636Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[134]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[130]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[126]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[122]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[118]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[114]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[110]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[105]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[101]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[97]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[93]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[89]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[85]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[81]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[77]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.637Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[73]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[68]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[64]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[60]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[56]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[52]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[48]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[44]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[40]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[36]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[31]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[27]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[23]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[19]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[15]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[11]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.638Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[10]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.639Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[10]}
btc-rpc-explorer_1  | 2020-07-02T10:46:32.639Z btcexp:rpc RPC: {"method":"getchaintxstats","parameters":[10]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.882Z btcexp:rpc RPC: {"method":"getblockheader","parameters":["000000000000008ddbad42996e1b6795f649ceebf00bdb9960639eedc942d307"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.895Z btcexp:rpc getBlockByHash: 00000000000000b0c04d22eb7bae38b4e876ed2d098568493e2bb9850d3259cc
btc-rpc-explorer_1  | 2020-07-02T10:46:33.895Z btcexp:rpc RPC: {"method":"getblock","parameters":["00000000000000b0c04d22eb7bae38b4e876ed2d098568493e2bb9850d3259cc"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.897Z btcexp:rpc getBlockByHash: 000000000000003372f2276a4548b2aa6e401222951a148dab2aadb9802efe9a
btc-rpc-explorer_1  | 2020-07-02T10:46:33.897Z btcexp:rpc RPC: {"method":"getblock","parameters":["000000000000003372f2276a4548b2aa6e401222951a148dab2aadb9802efe9a"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.898Z btcexp:rpc getBlockByHash: 00000000000000afbdcd08667b023fd4c08c26b32b043b0315e60d36cd3b7589
btc-rpc-explorer_1  | 2020-07-02T10:46:33.898Z btcexp:rpc RPC: {"method":"getblock","parameters":["00000000000000afbdcd08667b023fd4c08c26b32b043b0315e60d36cd3b7589"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.915Z btcexp:rpc getBlockByHash: 000000000000010400be71ee952cd948c7ebf178e6a906a243c329a7a060a4b7
btc-rpc-explorer_1  | 2020-07-02T10:46:33.915Z btcexp:rpc RPC: {"method":"getblock","parameters":["000000000000010400be71ee952cd948c7ebf178e6a906a243c329a7a060a4b7"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.916Z btcexp:rpc getBlockByHash: 00000000000000f8cdc55f4e0a9192b3ab5642f2895eb2ce6300874f65386642
btc-rpc-explorer_1  | 2020-07-02T10:46:33.916Z btcexp:rpc RPC: {"method":"getblock","parameters":["00000000000000f8cdc55f4e0a9192b3ab5642f2895eb2ce6300874f65386642"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.918Z btcexp:rpc getBlockByHash: 00000000000000b0304212f209ca63e6589aaf35aa26843db2031d14a4e1328b
btc-rpc-explorer_1  | 2020-07-02T10:46:33.918Z btcexp:rpc RPC: {"method":"getblock","parameters":["00000000000000b0304212f209ca63e6589aaf35aa26843db2031d14a4e1328b"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.919Z btcexp:rpc getBlockByHash: 00000000000000d048223a4c22a07f8eb199486555e02a02bf36b95e335355ae
btc-rpc-explorer_1  | 2020-07-02T10:46:33.919Z btcexp:rpc RPC: {"method":"getblock","parameters":["00000000000000d048223a4c22a07f8eb199486555e02a02bf36b95e335355ae"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.920Z btcexp:rpc getBlockByHash: 00000000000000fe5e366942e861003153dc9f7f0311e4e782593c58b266f6a7
btc-rpc-explorer_1  | 2020-07-02T10:46:33.920Z btcexp:rpc RPC: {"method":"getblock","parameters":["00000000000000fe5e366942e861003153dc9f7f0311e4e782593c58b266f6a7"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.922Z btcexp:rpc getBlockByHash: 00000000000000aed613ba1f0a6af88b1b7c8a0ad7067ef086d3db14e39a09a0
btc-rpc-explorer_1  | 2020-07-02T10:46:33.922Z btcexp:rpc RPC: {"method":"getblock","parameters":["00000000000000aed613ba1f0a6af88b1b7c8a0ad7067ef086d3db14e39a09a0"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.923Z btcexp:rpc getBlockByHash: 00000000000000804ef903a4bb2c7b66b19a2776b4b46d74cfe3878d17c468e3
btc-rpc-explorer_1  | 2020-07-02T10:46:33.923Z btcexp:rpc RPC: {"method":"getblock","parameters":["00000000000000804ef903a4bb2c7b66b19a2776b4b46d74cfe3878d17c468e3"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:33.929Z btcexp:rpc getBlockByHash: 000000000000006e990a4ff90101c12d9ba09f1d09b0397b53f82b54ca5eb0d9
btc-rpc-explorer_1  | 2020-07-02T10:46:33.929Z btcexp:rpc RPC: {"method":"getblock","parameters":["000000000000006e990a4ff90101c12d9ba09f1d09b0397b53f82b54ca5eb0d9"]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.066Z btcexp:rpc getRawTransaction: 975fcb23085f781534acee3203a10685d46ed1fae7ac588f42a15ec33b737791
btc-rpc-explorer_1  | 2020-07-02T10:46:34.066Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["975fcb23085f781534acee3203a10685d46ed1fae7ac588f42a15ec33b737791",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.068Z btcexp:rpc getRawTransaction: 34892691ed6570e35b59ee4fa1fb94b41cd11c2fc5590c2761e8196b230a9989
btc-rpc-explorer_1  | 2020-07-02T10:46:34.068Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["34892691ed6570e35b59ee4fa1fb94b41cd11c2fc5590c2761e8196b230a9989",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.070Z btcexp:rpc getRawTransaction: 197374d18dd79ef59194ec89d47b747669fe061eb37ee6f3096997f4e064f9da
btc-rpc-explorer_1  | 2020-07-02T10:46:34.070Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["197374d18dd79ef59194ec89d47b747669fe061eb37ee6f3096997f4e064f9da",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.072Z btcexp:rpc getRawTransaction: e9fa3700c16f5e1958146df90591d1307b48ffc1e63c0f533e877c4c686b9028
btc-rpc-explorer_1  | 2020-07-02T10:46:34.072Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["e9fa3700c16f5e1958146df90591d1307b48ffc1e63c0f533e877c4c686b9028",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.080Z btcexp:rpc getRawTransaction: 1f61a6d1c5854cc70266fc971017a9ff1f86d4f23589424d21015c8f884c9fc5
btc-rpc-explorer_1  | 2020-07-02T10:46:34.081Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["1f61a6d1c5854cc70266fc971017a9ff1f86d4f23589424d21015c8f884c9fc5",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.085Z btcexp:rpc getRawTransaction: 8cb047472c04715c94051bfab97a0e113f340c84dec32f3c8aafd1da1494431b
btc-rpc-explorer_1  | 2020-07-02T10:46:34.085Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["8cb047472c04715c94051bfab97a0e113f340c84dec32f3c8aafd1da1494431b",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.087Z btcexp:rpc getRawTransaction: e0c477bac8c20dc40400a50a66f6eefb1843f78844e16fb11f928a55c48e61d0
btc-rpc-explorer_1  | 2020-07-02T10:46:34.087Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["e0c477bac8c20dc40400a50a66f6eefb1843f78844e16fb11f928a55c48e61d0",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.092Z btcexp:rpc getRawTransaction: c5901662b7478415ed2906ec9358a0a46498897e39d62944f8cce8d2e70928a3
btc-rpc-explorer_1  | 2020-07-02T10:46:34.092Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["c5901662b7478415ed2906ec9358a0a46498897e39d62944f8cce8d2e70928a3",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.094Z btcexp:rpc getRawTransaction: d6215d0e1bd654cb38a8ffa34f615d058f039a175305691a4bc8e3390a4b4140
btc-rpc-explorer_1  | 2020-07-02T10:46:34.094Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["d6215d0e1bd654cb38a8ffa34f615d058f039a175305691a4bc8e3390a4b4140",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.309Z btcexp:rpc getRawTransaction: ea8d7f940f011aa2b97d0e8956633f950ee2b2dada25c5b1733761d597023aa5
btc-rpc-explorer_1  | 2020-07-02T10:46:34.309Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["ea8d7f940f011aa2b97d0e8956633f950ee2b2dada25c5b1733761d597023aa5",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:34.312Z btcexp:rpc getRawTransaction: 8ce0dd9c5d1a19e20fccbdf81fa01572df5ef719d8f5b8c6188d40ed37adf91b
btc-rpc-explorer_1  | 2020-07-02T10:46:34.312Z btcexp:rpc RPC: {"method":"getrawtransaction","parameters":["8ce0dd9c5d1a19e20fccbdf81fa01572df5ef719d8f5b8c6188d40ed37adf91b",1]}
btc-rpc-explorer_1  | 2020-07-02T10:46:36.356Z btcexp:actionPerformace Finished action '/' in 3760 ms
btc-rpc-explorer_1  | 2020-07-02T10:46:53.795Z btcexp:actionPerformace Finished action '/changelog' in 252 ms
btc-rpc-explorer_1  | 2020-07-02T10:47:24.900Z btcexp:actionPerformace Finished action '/changelog' in 513 ms
btc-rpc-explorer_1  | 2020-07-02T10:47:33.990Z btcexp:rpc RPC: {"method":"validateaddress","parameters":["2N7m4LmHym3hLe48LswoZ9NncMPK1pp6RnT"]}
btc-rpc-explorer_1  | 2020-07-02T10:47:34.062Z btcexp:electrumx getAddressTxids=[]
btc-rpc-explorer_1  | 2020-07-02T10:47:34.063Z btcexp:electrumx getAddressBalance=[]
btc-rpc-explorer_1  | 2020-07-02T10:47:34.063Z btcexp:rpc RPC: getblockchaininfo
btc-rpc-explorer_1  | 2020-07-02T10:47:34.063Z btcexp:error Error 2397wgs0sgse: TypeError: Cannot read property 'result' of undefined, json: {"userData":{"address":"2N7m4LmHym3hLe48LswoZ9NncMPK1pp6RnT","sort":"desc","limit":10,"offset":0}}
btc-rpc-explorer_1  | 2020-07-02T10:47:34.065Z btcexp:errorVerbose Stack: TypeError: Cannot read property 'result' of undefined
btc-rpc-explorer_1  |     at /workspace/app/api/electrumAddressApi.js:122:23
btc-rpc-explorer_1  |     at <anonymous>
btc-rpc-explorer_1  | 2020-07-02T10:47:34.065Z btcexp:error Error 21307ws70sg: TypeError: Cannot read property 'result' of undefined, json: {"userData":{"address":"2N7m4LmHym3hLe48LswoZ9NncMPK1pp6RnT","sort":"desc","limit":10,"offset":0}}
btc-rpc-explorer_1  | 2020-07-02T10:47:34.065Z btcexp:errorVerbose Stack: TypeError: Cannot read property 'result' of undefined
btc-rpc-explorer_1  |     at /workspace/app/api/electrumAddressApi.js:137:26
btc-rpc-explorer_1  |     at <anonymous>
btc-rpc-explorer_1  | 2020-07-02T10:47:35.422Z btcexp:actionPerformace Finished action '/address/2N7m4LmHym3hLe48LswoZ9NncMPK1pp6RnT' in 1410 ms
btc-rpc-explorer_1  | 2020-07-02T10:47:55.988Z btcexp:actionPerformace Finished action '/changelog' in 501 ms
btc-rpc-explorer_1  | 2020-07-02T10:48:26.939Z btcexp:actionPerformace Finished action '/changelog' in 346 ms

@schildbach
Copy link
Contributor Author

schildbach commented Jul 2, 2020

I tried again and can connect from the btc-rpc-explorer container to the ElectrumX container: nc 192.168.160.4:51001

I assume at that point in time ElectrumX is not ready to accept connections and btc-rpc-explorer is only trying three times (in less than a second). I think connection attempts should be spread out to like once per 5 seconds (optionally: exponential backoff) and basically continue forever, as ElectrumX can take a long time (days!) if they chain isn't up to date.

@schildbach
Copy link
Contributor Author

I just checked the ElectrumX log and even for a fully synched blockchain it takes a good two minutes from starting the container until it starts listening.

@janoside
Copy link
Owner

janoside commented Jul 2, 2020

@schildbach Ok, there are some more changes and they might have this fixed for you. The changes are around the connection/re-connection logic and include a 10s delay between reconnect attempts and some improvements to error handling and error display. Again, the code has not been included in a release yet so you'll need to update from source. And for these changes to take effect please also be sure you run npm up or npm install to make sure you have the latest version of dependencies (most importantly the electrum-client package that I forked and have made changes to).

Please let me know what you see.

@schildbach
Copy link
Contributor Author

Finally, it works! I get this the in the log:

btc-rpc-explorer_1  | 2020-07-03T09:03:32.525Z btcexp:electrumx Electrum reconnecting...
btc-rpc-explorer_1  | 2020-07-03T09:03:32.537Z btcexp:electrumx Connected to ElectrumX @ electrumx:51001 (["ElectrumX 1.15.0","1.4"])
btc-rpc-explorer_1  | 2020-07-03T09:03:32.537Z btcexp:electrumx Error connecting to Electrum: [object Object]

I'm not sure what the error says, but nevertheless i was able to fetch the history of an address! Thanks!

@janoside
Copy link
Owner

janoside commented Jul 3, 2020

Fixed in v2.0.2.

@janoside janoside closed this as completed Jul 3, 2020
@2pac1
Copy link

2pac1 commented Mar 14, 2021

In version:
App Details
version: 2.1.0
commit: 2112d6e
released: 2020-12-15 (changelog)
+
electrs

when trying to access genesis block: IP-address:3002/address/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa

I am shown :

Error retrieving transaction history (#1)
{
"e": "failed to get confirmed status",
"status": "rejected"
}
Error retrieving transaction history (#2)
{
"e": "failed to get confirmed status",
"status": "rejected"
}

That is normal due to amount of transactions and default settings?

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

6 participants
@janoside @schildbach @scientastic @cd2357 @2pac1 and others