wizardsardine / liana

The missing safety net for your coins
https://wizardsardine.com/liana
BSD 3-Clause "New" or "Revised" License
304 stars 50 forks source link

Could not get derivation index for coin .... #1188

Open pythcoiner opened 1 month ago

pythcoiner commented 1 month ago

playing w/ regtest i hit this issue:

step to reproduce:

2024-07-10T15:16:33.146866Z  INFO liana::bitcoin::d:288: Checking the connection to bitcoind.

  2024-07-10T15:16:33.148279Z  INFO liana::bitcoin::d:290: Connection to bitcoind checked.

  2024-07-10T15:16:33.149437Z  INFO liana:248: Loading our watchonly wallet on bitcoind.

  2024-07-10T15:16:33.150942Z  INFO liana:251: Watchonly wallet loaded on bitcoind and sanity checked.

  2024-07-10T15:16:33.151407Z  INFO liana:385: Bitcoin poller started.

  2024-07-10T15:16:33.152173Z  INFO liana::bitcoin::poller:113: Block chain synchronization progress: 100.00% (0 blocks / 0 headers)

  2024-07-10T15:17:03.213159Z ERROR liana::bitcoin::poller::looper:82: Could not get derivation index for coin '721d4ec68c80a9b2c783cb1cfb684660214e6308f0aceb74f2a5b74697d92669:0' (address: 'bcrt1qpegf7sc5xes38u5cuup8w6wuyqwm2t8zkcagcwr87kdvndcdc2jqure7hs')

  2024-07-10T15:17:03.213216Z ERROR liana::bitcoin::poller::looper:82: Could not get derivation index for coin '8a0322653cba20df2f2826f8e3960adc9d38c63c251015f8854067b04887acda:0' (address: 'bcrt1q8kxnj20zljz9fqr4kr9h3xzkw39srhrcppace94v6myhfwym26wq6e2rpn')

  2024-07-10T15:17:03.213233Z ERROR liana::bitcoin::poller::looper:82: Could not get derivation index for coin '08155d9304706e7b0921ad7d7d0a5a0f327b11b4442e1ad83f6e7f9b19f0bba5:0' (address: 'bcrt1qx8e3t6x8m299ag376calyzlhzzcutahck3ta0v5g24py6zxgnfksx752z3')

  2024-07-10T15:17:03.213247Z ERROR liana::bitcoin::poller::looper:82: Could not get derivation index for coin '8cdd3b4fb39988ed984f7455c1a2fdbaf4b6e78eeb72605d5945fef77bce665a:0' (address: 'bcrt1qcxjmet6vvygg0pltwvh99jv88frj97d8luls74vrxcfuh598usjswx5eea')

 ...

  2024-07-10T15:17:03.214898Z ERROR liana::bitcoin::poller::looper:82: Could not get derivation index for coin '1c26ca55b80389f7b9cef2f33e1533ab7ec1691d2f5bf3de5d77e365eee1b0dc:0' (address: 'bcrt1qkznzfe85d80mtxejg3gcj2n9668w26nmvzjy6g6zamkvrjeq3npqsjdvss')

  2024-07-10T15:17:03.214908Z ERROR liana::bitcoin::poller::looper:82: Could not get derivation index for coin '5ce90eae8f4c7ebe3787118b1b751209bc0bffc5d3d4aeeeb9ea07e19eed32ea:0' (address: 'bcrt1qw387j86m3vmhhpkr6qtz0zlv60rzdfdfh2feeevrtszmxu3luv5skrn6sn')
pythcoiner commented 1 month ago

then i restart a new chain + new wallet and generate 20 block per batch (reusing index 0-19) wallet is stuck at 9190.625 + 275 unconfirmed:

image

looks like the DB hold max 200 coins (dumb user)

darosior commented 1 month ago

I'm having trouble following what's happening here. You first generate 500 blocks, paying to a Liana wallet address in the coinbase transaction of each block, right? All those payments are detected (after maturity), right? Then you "restart a new chain", which i interpret as reorg'ing back to genesis, right? Then when you say "+ new wallet", do you mean you create a new Liana wallet for the same descriptor? Then i don't understand "20 block per batch". Nor the results.

pythcoiner commented 1 month ago

ok more details, they are 2 different tests on 2 differents regtests, 2 differents wallets.

First test:

Second test:

I think they are 2 differents issues, but will investigate in the week.