moontreeapp / moontree

Primary Mono Repo
6 stars 5 forks source link

transaction downloaded but not unspents #627

Closed lastmeta closed 2 years ago

lastmeta commented 2 years ago

Describe The Bug

on a mainnet wallet I import it and I know it has a small amount of RVN, but it gives me no assets screen. so I inspect the transactions in the database and txs are there, vouts are there, vins are there. unspents are not... investigating

To Reproduce

make a new wallet, back it up, get rvn, wipe data, restart, import wallet.

Expected Behavior

behave like testnet

lastmeta commented 2 years ago

this transaction shows that when I sent an asset, https://rvn.cryptoscope.io/tx/?txid=8806143ca063d9be3669789e6d9dc9b7915176acf9933009734f8d7628d48d24 the change address was RLCLNjupZdVhgxSNAiDHeYny9ewZNFEC4q which is hdindex 0. this must have been derived when we received an asset because by default the code, I just verified, is starting our address derivation at 1. https://learnmeabitcoin.com/technical/derivation-paths shows we should be starting at 0.

Therefore I will change the code to start at 0 and that should solve this issue.

lastmeta commented 2 years ago

ps the tx I saw were for the asset transfer, not the rvn I was holding