Bitcoin Forum
January 20, 2017, 06:26:24 PM *
News: Latest stable version of Bitcoin Core: 0.13.2  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: rescan  (Read 599 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 ?
1484936784
Hero Member
*
Offline Offline

Posts: 1484936784

View Profile Personal Message (Offline)

Ignore
1484936784
Reply with quote  #2

1484936784
Report to moderator
1484936784
Hero Member
*
Offline Offline

Posts: 1484936784

View Profile Personal Message (Offline)

Ignore
1484936784
Reply with quote  #2

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

Posts: 1484936784

View Profile Personal Message (Offline)

Ignore
1484936784
Reply with quote  #2

1484936784
Report to moderator
1484936784
Hero Member
*
Offline Offline

Posts: 1484936784

View Profile Personal Message (Offline)

Ignore
1484936784
Reply with quote  #2

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

Activity: 1344


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 wallets instead.
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1036


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!