Bitcoin Forum
January 16, 2018, 02:30:27 PM *
News: Electrum users must upgrade to 3.0.5 if they haven't already. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: rescan  (Read 673 times)
ArsenShnurkov
Legendary
*
Offline Offline

Activity: 1386



View Profile
September 27, 2011, 04:07:09 PM
 #1

How do bitcoin client determines duting rescan
which bitcoin addresses belongs to his wallet, and which are not?

Does he uses the list of adresses in the wallet itself,
or does he extracts addresses from the blockchain ?

Which lines of code should one see ?
1516113027
Hero Member
*
Offline Offline

Posts: 1516113027

View Profile Personal Message (Offline)

Ignore
1516113027
Reply with quote  #2

1516113027
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1516113027
Hero Member
*
Offline Offline

Posts: 1516113027

View Profile Personal Message (Offline)

Ignore
1516113027
Reply with quote  #2

1516113027
Report to moderator
1516113027
Hero Member
*
Offline Offline

Posts: 1516113027

View Profile Personal Message (Offline)

Ignore
1516113027
Reply with quote  #2

1516113027
Report to moderator
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
September 27, 2011, 05:40:52 PM
 #2

I'm sure it must consult the wallet, and I remember there being an IsMine() in the code

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1050


View Profile WWW
September 27, 2011, 06:02:54 PM
 #3

For each txout script encountered in the stored block chain, a test is done to verify whether our wallet is able to provide a matching txin script, or uses such a script as input. If so, it is added to the wallet.

aka sipa, core dev team

Tips and donations: 1KwDYMJMS4xq3ZEWYfdBRwYG2fHwhZsipa
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!