Bitcoin Forum

Bitcoin => Electrum => Topic started by: edwardalb on January 23, 2021, 04:32:04 PM



Title: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: edwardalb on January 23, 2021, 04:32:04 PM
This is my first post on here so forgive me in advance if i dont use the proper etiquet.
I am having an issue with my Electrum wallet. To save time i will let you know the wallet is usede on tails and the PGP was verified before download so the wallet is verified.

I have 5 transactions that show confirmed and with payout IDs. Checked them on the blockchain and NONE of the addresses payment was sent to belong to my wallet.
Addresses are generated by master public key. None of the addresses that funds were sent to belong to my wallet, When i search the transactions in electrum they say "tranmsaction unrelated to your wallet"

PAYOUT IDS
2daf74321ef36ceac2ea73fd8df815dc9bc490762aa4f0ffde2fbfba14bcbbfa
bdbcae17694c05d9b65072bb42050ef2124a9db523bfce72bfc7fc4de5a1201b
ca2b7d4270a87e6c15d519f8b755e424cff7390ad43fa3e399a5e415f30fdbe3
9638f3c00867d77172909fa08bcb3ecd0e34d974014f6c377e586cfecd6cca94
baf4053149d1e7d2b727de82c331d1b53f1ba82d6f2bf20570b18b57fdc21569

Also very alarming, The next 5 addresses that are suppose to be generated by my master
None of them belong to my electrum wallet

Any help would be appreciated.


Title: Re: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: NeuroticFish on January 23, 2021, 04:38:19 PM
Question: Does your wallet addresses start with bc1* and the coins you expect were sent to addresses starting with 1* ?

If so, you may have to re-generate your wallet with a different derivation path (legacy instead of bech).

PS. Was the seed created by Electrum? What wallet did use to get the payment addresses? What wallet was sending those coins?


Title: Re: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: ranochigo on January 23, 2021, 04:45:24 PM
Question: Does your wallet addresses start with bc1* and the coins you expect were sent to addresses starting with 1* ?
The seed should tell Electrum what kind of seed it is, well assuming it was generated with Electrum. For the master public key, xpub and zpub are different and will result in legacy and bech32 addresses respectively.

@OP, can you see if the xpub on your tails and xpub on the wallet with your master public key is the same? It's located in Wallet>Information. The addresses should be the same for the same xpub, it cannot deviate without a deliberate change in the derivation path.


Title: Re: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: o_e_l_e_o on January 24, 2021, 05:07:19 AM
A master public key will always generate the correct addresses at the correct derivation path. If the addresses you have generated do not match the addresses in your full wallet, then you either have the wrong master public key, or you (or the service/wallet you imported your master public key) has done something strange to the derivation paths. Check if the master public keys match - if they don't, it's the former, and if they do, then it is the latter.

If they don't match, then you will have to try to figure out where you copied the other master public key from. Did you set up any other wallets at the same time? Did you set up any other accounts at different derivation paths of the same seed phrase? Did you set up any wallets using an additional passphrase?

What wallet or service are you using to generate address from your master public key? Is it simply another Electrum wallet?


Title: Re: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: nc50lc on January 24, 2021, 12:02:10 PM
Is your Electrum wallet 2FA?
Because if it is, then its "master public key" when used alone wont produce the same addresses as your 2fa Electrum's 2-of-3 multisig addresses.

No? Then you need to provide some info about the wallet/service where you've imported or generated the addresses using your "master".


Title: Re: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: edwardalb on January 24, 2021, 07:27:31 PM
Ok thank you all for the responses. The wallet is Electrum V 4.0.9, Running ot tails as an Appimage. wallet info is
STANDARD
P2PKH
BIP32

Master starts with XPUB
der path M

All addresses start with 1 then random after that
Master key matches the key I have on the providers website. but where it says "Next 5 addreses generated by your public key"
None of those addresses match my wallet.

Thanks again guys


Title: Re: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: o_e_l_e_o on January 24, 2021, 08:45:48 PM
Master key matches the key I have on the providers website. but where it says "Next 5 addreses generated by your public key"
None of those addresses match my wallet.
Have you previously generated a lot of addresses on the provider's website? Since the master public keys match, it might be that you are generating the correct addresses but they are beyond the default limit of what is displayed in your Electrum wallet. You could try telling your wallet to generate the next 100 or so addresses, and check to see if the addresses you sent coins to show up. Go to the "Console" tab (you might need to first click "View -> Show Console"), and enter the following line of code:

Code:
[wallet.create_new_address(False) for i in range(100)]

This will generate the next 100 addresses for your wallet. Then go to the "Addresses" tab and check to see if the addresses you used are now visible.

If not, then I think the next thing to explore would be different derivation paths.


Title: Re: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: HCP on January 24, 2021, 08:50:45 PM
Master key matches the key I have on the providers website. but where it says "Next 5 addreses generated by your public key"
None of those addresses match my wallet.
In which case... it's most likely that the provider is not using the same derivation path as Electrum...

For instance... from this xpub from Electrum:
Code:
xpub661MyMwAqRbcFFuDRX7BMSzUcPukXGRQE7Wqmy2YiekQS56meYFDke48usmCpiYo6ZGkNjRQKnMSMnXrsPaezthU3uyWwj27CxxTs8NYgqF
https://talkimg.com/images/2023/11/15/zsLQv.png


Electrum uses the derivation path: m/0/x to generate the addresses... so the first address I see in Electrum is: 1JmZPy7YG4TRMovrSpN4RLAGcGYuhcAbso
https://talkimg.com/images/2023/11/15/zscfH.png


You can confirm on: https://iancoleman.io/bip39/

Put the xpub into the "BIP32 Root Key"... click BIP32 Tab... set "client" to Custom, set BIP32 derivation path to: m/0
https://talkimg.com/images/2023/11/15/zsh8g.png


You will then see the address at the bottom:
https://talkimg.com/images/2023/11/15/zs4AI.png


Does the service provider give any hints on what the derivation path they are using for xpub's is? ??? If not, you might need to experiment with your xpub and the iancoleman BIP39 tool above to figure it out. :-\

Are you able to advise which provider you're using? ???


Title: Re: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: edwardalb on January 24, 2021, 11:24:58 PM
HOLLY SHIT! This worked:
[wallet.create_new_address(False) for i in range(100)]

The money just popped up

What an amazing community. Thank you so much.


Title: Re: Funds confirmed on block-not arriving in wallet (Other issues)
Post by: o_e_l_e_o on January 24, 2021, 11:57:05 PM
Thank you so much.
No worries. Glad you got it fixed.

For future reference, you can repeat the command I gave you to generate more addresses should the same thing happen again. You can also use the following command to change your gap limit:

Code:
wallet.change_gap_limit(50)

The gap limit is the number of addresses your wallet will generate from the last used address (or the number of addresses it will generate in total if it detects no used addresses). It sounds like the provider you used generated a bunch of addresses from your master public key which it never actually used, so by the time you reached an address you did use, it was beyond Electrum's gap limit and so the wallet did not detect it automatically until we forced it to generate 100 new addresses. The standard gap limit is 20 - the command above increases it to 50 (you could make this number 100 if you wanted, but the more addresses you generate the slower your wallet becomes so don't be tempted to generate thousands of addresses for no reason). By increasing it to 50 or 100, Electrum will automatically look for 50 or 100 addresses past the last one you used, rather than just 20, so it should prevent this from happening again in the future.

Running the above command also has the added benefit of removing the unsightly red background to the additional addresses we generated. The red background simply highlights that those addresses are beyond your current gap limit.