Bitcoin Forum
May 01, 2024, 09:23:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: rescan  (Read 750 times)
ArsenShnurkov (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1000



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 ?
1714598622
Hero Member
*
Offline Offline

Posts: 1714598622

View Profile Personal Message (Offline)

Ignore
1714598622
Reply with quote  #2

1714598622
Report to moderator
1714598622
Hero Member
*
Offline Offline

Posts: 1714598622

View Profile Personal Message (Offline)

Ignore
1714598622
Reply with quote  #2

1714598622
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714598622
Hero Member
*
Offline Offline

Posts: 1714598622

View Profile Personal Message (Offline)

Ignore
1714598622
Reply with quote  #2

1714598622
Report to moderator
1714598622
Hero Member
*
Offline Offline

Posts: 1714598622

View Profile Personal Message (Offline)

Ignore
1714598622
Reply with quote  #2

1714598622
Report to moderator
1714598622
Hero Member
*
Offline Offline

Posts: 1714598622

View Profile Personal Message (Offline)

Ignore
1714598622
Reply with quote  #2

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

Activity: 1386
Merit: 1136


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: 1072
Merit: 1174


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.

I do Bitcoin stuff.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!