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

Ledger Live can't reach SatStack even though both can reach Bitcoind #58

Open
ali-raheem opened this issue Sep 14, 2021 · 3 comments
Open
Labels
question Further information is requested

Comments

@ali-raheem
Copy link

Setting up SatStack doesn't work, Ledger live can't reach SatStack running on the same Windows 10 computer, despite SatStack being able to reach bitcoind and Ledger Live also reaching bitcoind (all are running on the sample windows 10 computer).

The bitcoin node is fully synced, going through the wizard on Ledger Live it detects the bitcoin node, it goes through importing wallets from my nano S.

SatStack sets up the wallet in bitcoind and finishes computing circulating supply and #RunTheNumbers finishes succesfully.

`PS D:\satstack_0.12.0_Windows-amd64> .\lss.exe
[2021/09/14 - 23:50:28] INFO Ledger SatStack (lss) v0.12.0 arch=windows amd64 build= commit= runtime=go1.15.5
[2021/09/14 - 23:50:28] INFO Config file detected path=C:\Users\Ali Raheem/AppData/Roaming/Ledger Live/lss.json
[2021/09/14 - 23:50:28] INFO Warming up...
[2021/09/14 - 23:51:08] INFO Created new wallet wallet=satstack
[2021/09/14 - 23:51:08] INFO RPC connection established blockFilter=true chain=main pruned=false txindex=true


/ With e-currency based on cryptographic
| proof, without the need to trust a third |
| party middleman, money can be secure and |
| transactions effortless. |
| |
\ -- Satoshi Nakamoto, 2009 /

    \   ^__^
     \  (₿₿)\_______
        (__)\       )\/\
            ||----w |
            ||     ||

[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.

  • using env: export GIN_MODE=release
  • using code: gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET /timestamp --> github.com/ledgerhq/satstack/httpd/handlers.GetTimestamp.func1 (3 handlers)
[GIN-debug] GET /control/descriptors/import --> github.com/ledgerhq/satstack/httpd/handlers.ImportAccounts.func1 (3 handlers)
[GIN-debug] POST /control/descriptors/has --> github.com/ledgerhq/satstack/httpd/handlers.HasDescriptor.func1 (3 handlers)
[GIN-debug] GET /blockchain/:version/explorer/_health --> github.com/ledgerhq/satstack/httpd/handlers.GetHealth.func1 (3 handlers)
[GIN-debug] GET /blockchain/:version/explorer/status --> github.com/ledgerhq/satstack/httpd/handlers.GetStatus.func1 (3 handlers)
[GIN-debug] GET /blockchain/:version/btc/fees --> github.com/ledgerhq/satstack/httpd/handlers.GetFees.func1 (3 handlers)
[GIN-debug] GET /blockchain/:version/btc/blocks/:block --> github.com/ledgerhq/satstack/httpd/handlers.GetBlock.func1 (3 handlers)
[GIN-debug] GET /blockchain/:version/btc/transactions/:hash/hex --> github.com/ledgerhq/satstack/httpd/handlers.GetTransactionHex.func1 (3 handlers)
[GIN-debug] POST /blockchain/:version/btc/transactions/send --> github.com/ledgerhq/satstack/httpd/handlers.SendTransaction.func1 (3 handlers)
[GIN-debug] GET /blockchain/:version/btc/addresses/:addresses/transactions --> github.com/ledgerhq/satstack/httpd/handlers.GetAddresses.func1 (3 handlers)
[2021/09/14 - 23:51:09] INFO worker: Initial Block Download complete blockHash=00000000000000000003d02ba86eacf2fa0cc9a49a2f0ec0cb6a0f73991fcf31 blockHeight=700577
[2021/09/14 - 23:51:09] INFO worker: Computing circulating supply...
[2021/09/15 - 00:01:58] INFO worker: #RunTheNumbers successful actualSupply=18815906.29248658 BTC expectedSupply=18816106.25 BTC height=700577
`

... 2021-09-14T22:51:04Z init message: Loading wallet… 2021-09-14T22:51:04Z [satstack] Wallet File Version = 10500 2021-09-14T22:51:04Z [satstack] Keys: 0 plaintext, 0 encrypted, 0 w/ metadata, 0 total. Unknown wallet records: 0 2021-09-14T22:51:07Z [satstack] Wallet completed loading in 3870ms 2021-09-14T22:51:08Z [satstack] setKeyPool.size() = 0 2021-09-14T22:51:08Z [satstack] mapWallet.size() = 0 2021-09-14T22:51:08Z [satstack] m_address_book.size() = 0 2021-09-14T22:51:10Z FlushStateToDisk: write coins cache to disk (7579 coins, 1075kB) started 2021-09-14T22:51:10Z FlushStateToDisk: write coins cache to disk (7579 coins, 1075kB) completed (0.02s) 2021-09-14T22:51:10Z New outbound peer connected: version: 70015, blocks=700577, peer=3 (outbound-full-relay) 2021-09-14T22:51:41Z New outbound peer connected: version: 70015, blocks=700577, peer=4 (outbound-full-relay) 2021-09-14T22:51:43Z P2P peers available. Skipped DNS seeding. 2021-09-14T22:51:43Z dnsseed thread exit 2021-09-14T22:51:50Z New outbound peer connected: version: 70015, blocks=700577, peer=5 (outbound-full-relay) 2021-09-14T22:52:01Z New outbound peer connected: version: 70015, blocks=700577, peer=7 (outbound-full-relay) 2021-09-14T22:52:03Z New outbound peer connected: version: 70016, blocks=700577, peer=6 (outbound-full-relay) 2021-09-14T22:52:13Z New outbound peer connected: version: 70016, blocks=700578, peer=8 (outbound-full-relay) 2021-09-14T22:52:21Z New outbound peer connected: version: 70015, blocks=700577, peer=10 (outbound-full-relay) 2021-09-14T22:52:47Z New outbound peer connected: version: 70016, blocks=700578, peer=11 (outbound-full-relay) 2021-09-14T22:55:32Z UpdateTip: new best=00000000000000000002e36dc5d06cfd85b2590e2f13abe6b17a70c7d58935d2 height=700578 version=0x20000004 log2_work=93.069393 tx=670449502 date='2021-09-14T22:51:41Z' progress=0.999999 cache=2.6MiB(19536txo) 2021-09-14T22:55:44Z Imported mempool transactions from disk: 1904 succeeded, 1655 failed, 0 expired, 0 already there, 0 waiting for initial broadcast 2021-09-14T22:55:44Z loadblk thread exit

But Ledger Live just shows

"Could not reach SatStack" with the spinning circle.

I have tried reinstalling SatStack, LedgerLive, removing all accounts. Rebooting.

@ali-raheem
Copy link
Author

Is there a command I could run to check if I can access the rest API SatStack should expose? localhost:20000/timestamp for example just times out.

@xanoni
Copy link
Contributor

xanoni commented Oct 11, 2021

@ali-raheem the rescanning takes a while ... you should see something like this in your bitcoind logs:

[satstack] Still rescanning. At block XXXXXX. Progress=0.XXXXXX

@adrienlacombe
Copy link
Contributor

@ali-raheem do you still have the issue?

@adrienlacombe adrienlacombe added the question Further information is requested label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants