MultiversX Tracker is Live!

How does Bitcoin Core know about a new address created in a different wallet?

Bitcoin Stack Exchange

Bitcoin News / Bitcoin Stack Exchange 166 Views

Modern wallets will pre-generate a lot of keys instead of generating them when you ask for them. For example, you might have used 10 addresses from your wallet, but your wallet actually has 110 addresses because it pre-generated 100 of them. When you ask for a new address, it gives you the oldest one it has pre-generated, and schedules to have a replacement for that address to be generated and added to the lookahead pool at a later time.

This serves two functions. When restoring a backup, your backup may be out of date and you may have used some of the pre-generated addresses. With the pre-generated addresses, your wallet can scan the blockchain for those addresses and be able to see all of your funds.

The second is when the private keys are encrypted. When a new key is generated, it will need to be encrypted, and so your passphrase will need to be provided. With the pre-generated lookahead pool, your wallet can retrieve a pre-generated address and provide it to you without needing to enter your passphrase. Then the next time you enter your passphrase, the lookahead pool can be topped up.

With that in mind, what happened is that exporting your private keys from Electrum also exported all of the keys that are in the pre-generated lookahead pool. These were then imported to Bitcoin Core. When you asked for a new address, an address was taken from the lookahead and so Bitcoin Core was able to see the transaction because the entire lookahead was imported. If you had imported private keys, you would have been able to spend those funds.

If you keep requesting addresses from Electrum, eventually you will reach a point where the lookahead at the time of your import to Bitcoin Core is exhausted and you will start getting addresses which Bitcoin Core does not know about.


Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments