Bitcoin Forum
April 25, 2024, 02:04:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: New coins from old backup wallet.dat what gives?  (Read 1427 times)
Blackout (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile WWW
August 28, 2011, 07:35:19 AM
 #1

Ok so I regularly backup my wallet.dat and I also have some other wallet.dat savings where I created a new wallet and sent it coins then offlined it.

Since I spent a bunch of bitcoins lately by wallet was at 0 so just out of curiosity I renamed the wallet.dat backup.wallet.dat and then grabbed my last backup when I had like 25 btc in it

The 25 btc are there? What gives?

It's the same wallet key just a backup should this not be.. I should still see 0 right?

And no, this is not one of my savings wallets with transferred money this is just a daily backup before I spent the 25.


http://blackout.com
Insane writings for an Outsane world: http://blackoutsblog.com

Blackout Radio on android or iphone DL TuneIn APP & search for Blackout Radio http://tunein.com/tuner/?StationId=136506

https://secure.btcontilt.com/register.php?referred=Blackout (BTC Poker)
1714053846
Hero Member
*
Offline Offline

Posts: 1714053846

View Profile Personal Message (Offline)

Ignore
1714053846
Reply with quote  #2

1714053846
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
defxor
Hero Member
*****
Offline Offline

Activity: 530
Merit: 500


View Profile
August 28, 2011, 07:42:16 AM
 #2

Ok so I regularly backup my wallet.dat and I also have some other wallet.dat savings where I created a new wallet and sent it coins then offlined it.

Since I spent a bunch of bitcoins lately by wallet was at 0 so just out of curiosity I renamed the wallet.dat backup.wallet.dat and then grabbed my last backup when I had like 25 btc in it

The 25 btc are there? What gives?

It's the same wallet key just a backup should this not be.. I should still see 0 right?

And no, this is not one of my savings wallets with transferred money this is just a daily backup before I spent the 25.



It's likely just tricking you, not understanding the keys it has have been used from another copy. Run the client with -rescan
helloworld
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
August 28, 2011, 07:47:24 AM
 #3

Even if it shows 0.25 it's a dupe... so it'll just go to nowhere if you try to spend it... the network will see it as a double spend and it'll be unconfirmed forever.
Blackout (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile WWW
August 28, 2011, 03:08:02 PM
 #4

Not .25  25 btc.

I thought maybe the network needed to just update the blocks.

I don't understand the point of backing up wallets then.. say I backup my wallet everyday, or week or whatever,
but between the last backup and the latest, I have spent some coins... and then my computer blows up
and I install the last backup...  I thought the network was supposed to detect my key and automatically bring me back to the proper amount of coins I should have... if it just give me an invalid wallet... isn't this just as bad
as losing all your coins?

I don't get it.  This is why I tried this only when I had 0 coins... I figured it might initially show the last coin account from the backup wallet but then update itself through the network to the real amount of coins that specific wallet key is supposed to have?  Isn't that how it's supposed to work?

Am I doing something wrong?  Note these are not two separately created wallets - I have those.. this is the same wallet, just a backup of a day earlier.

http://blackout.com
Insane writings for an Outsane world: http://blackoutsblog.com

Blackout Radio on android or iphone DL TuneIn APP & search for Blackout Radio http://tunein.com/tuner/?StationId=136506

https://secure.btcontilt.com/register.php?referred=Blackout (BTC Poker)
defxor
Hero Member
*****
Offline Offline

Activity: 530
Merit: 500


View Profile
August 28, 2011, 03:15:53 PM
 #5

Am I doing something wrong?  Note these are not two separately created wallets - I have those.. this is the same wallet, just a backup of a day earlier.

The Bitcoin terminology is the problem. They're not wallets, they're keyrings with a lot of keys. Initially your keyring gets populated with 100 keys, all able to unlock 100 vaults. Whenever you use one key, another one gets added (and none removed) from your keyring.

Thus even your oldest backup contains the keys to the next 100 transactions (=vault contents) you do. That the client can become confused when you start switching keyrings back and forth is not a problem - just run -rescan.
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
August 28, 2011, 04:30:26 PM
 #6

Not .25  25 btc.

I thought maybe the network needed to just update the blocks.

I don't understand the point of backing up wallets then.. say I backup my wallet everyday, or week or whatever,
but between the last backup and the latest, I have spent some coins... and then my computer blows up
and I install the last backup...  I thought the network was supposed to detect my key and automatically bring me back to the proper amount of coins I should have... if it just give me an invalid wallet... isn't this just as bad
as losing all your coins?

I don't get it.  This is why I tried this only when I had 0 coins... I figured it might initially show the last coin account from the backup wallet but then update itself through the network to the real amount of coins that specific wallet key is supposed to have?  Isn't that how it's supposed to work?

Am I doing something wrong?  Note these are not two separately created wallets - I have those.. this is the same wallet, just a backup of a day earlier.

Every transactions is logged in the blockchain. So, everytime you use the bitcoin client it check the private keys in your wallet with the blockchain and find your bitcoins.

If you spent that bitcoins then try a -rescan

As for regularly backupping it, the problem is that if you use a different address everytime then your wallet will contain more private keys. If your backuped wallet is an OLD one, it may not have the new keys. So, if you lose your wallet and you use the backuped one, it doesn't have the recent keys and you lose the BTC attached to these recent keys. A bad thing

evoorhees
Legendary
*
Offline Offline

Activity: 1008
Merit: 1021


Democracy is the original 51% attack


View Profile
August 28, 2011, 05:31:44 PM
 #7

Run the client with -rescan


This "-rescan" thing is awful. I'm a bitcoin enthusiast, and have spent many hours learning how it works from a variety of perspectives. Yet, I have zero idea what "-rescan" is, why it's necessary, or how to do it.

This is the kind of thing that totally confuses and puts off average people. If this function is important (and I assume it is because I've seen it mentioned quite a bit on the forums) then the official client should enable it as an easy option, with a friendly explanation. Perhaps the devs are already working on this?

In any case, two versions of a wallet file should not show differing balances. These things which are confusing for enthusiasts are show-stoppers for the public.
Blackout (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile WWW
August 28, 2011, 05:35:09 PM
 #8

Oddly it suddenly fixed itself on it's own without a -rescan

This was NOT an old old wallet.. just a few hours prior to spending 25 btc and I just wnted to see how it would handle it and figured it was better to experiment when I had no coins in the wallet than to experiment when i did.

Now it appears back to normal and has just some newly mined coins in it.... the spent 25 vanished but for a bit it looked like they were there.


http://blackout.com
Insane writings for an Outsane world: http://blackoutsblog.com

Blackout Radio on android or iphone DL TuneIn APP & search for Blackout Radio http://tunein.com/tuner/?StationId=136506

https://secure.btcontilt.com/register.php?referred=Blackout (BTC Poker)
defxor
Hero Member
*****
Offline Offline

Activity: 530
Merit: 500


View Profile
August 28, 2011, 05:41:08 PM
 #9

This "-rescan" thing is awful

Absolutely agree. What it does is "verify that what my wallet thinks is actually true" by going through the transaction blockchain.

This was NOT an old old wallet.. just a few hours prior to spending 25 btc

"Old" = not the up to date one.

I think you'll find it easier if you use the keyring+vaults metaphore instead (since that's what it is). Your wallet never "contains" bitcoins.
joulesbeef
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


moOo


View Profile
August 28, 2011, 06:01:56 PM
 #10

I despite the term wallet for the bitcoin keyring, for the specific reason that it misleads people into how it all works.

thinking of it as a wallet, would have people backing it up after each transaction, to keep it up to date.. instead of backing up every 75-90 keys(sorry i dont want to get close to 100 without an updated backup)

I only have one real world wallet, if it gets stolen i lost what it contains, but it can only be used by one person at a time.

now if my real world keys get copied, people can come in my house at any time and steal my stuff, and many people can use the same keys at a time(of course they can only use the coins once)


so yeah, it isnt a wallet, it is a key, your coins arent on your pc they are on the blockchain.. i wished one of the alternative coins would have changed that at the very least.

mooo for rent
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
August 28, 2011, 06:08:37 PM
 #11

I don't understand the point of backing up wallets then.. say I backup my wallet everyday, or week or whatever,
but between the last backup and the latest, I have spent some coins... and then my computer blows up
and I install the last backup...  I thought the network was supposed to detect my key and automatically bring me back to the proper amount of coins I should have...
You're focusing on something that isn't the issue. The issue is whether or not you can spend your coins by any method. The reason for the backup is to make it *possible* for you to recover your coins.

Quote
if it just give me an invalid wallet... isn't this just as bad
as losing all your coins?
Is dropping $100 bill on your floor as bad as having it burned to bits? No. The former is easily recoverable. The latter is fatal.

Quote
I don't get it.  This is why I tried this only when I had 0 coins... I figured it might initially show the last coin account from the backup wallet but then update itself through the network to the real amount of coins that specific wallet key is supposed to have?  Isn't that how it's supposed to work?
You are focusing on an irrelevant detail. What matters is whether it's possible for you to recover the coins. The cosmetic issue of whether it takes an extra step or two is minor.

A backup wallet backs up your keys. With your keys, you can spend your coins. You are not screwed, and that's what is important.

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
Blackout (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile WWW
August 28, 2011, 08:47:07 PM
 #12

So what is the frequency of which you should backup your keys in your wallet.dat file?

Is a key used for every transaction?

So if you have gone past 100 transactions and you have an old backup - it's usless because you have gone beyond those keys?

Am I getting this now or no?

http://blackout.com
Insane writings for an Outsane world: http://blackoutsblog.com

Blackout Radio on android or iphone DL TuneIn APP & search for Blackout Radio http://tunein.com/tuner/?StationId=136506

https://secure.btcontilt.com/register.php?referred=Blackout (BTC Poker)
defxor
Hero Member
*****
Offline Offline

Activity: 530
Merit: 500


View Profile
August 28, 2011, 09:06:00 PM
 #13

So what is the frequency of which you should backup your keys in your wallet.dat file?

Is a key used for every transaction?

So if you have gone past 100 transactions and you have an old backup - it's usless because you have gone beyond those keys?

Am I getting this now or no?


The default client generates a new key for every transaction, yes. However, the old keys are still the ones opening the vaults to the transactions they were part of - so it would only be "useless" for transactions using newer keys that weren't there when you made that backup. Of course, newer backups would take care of those as well.

Personally I use a tool that makes new encrypted backups whenever the wallet file changes (=new transactions/keys), and I can travel back in time to any previous wallet version.

The official client could indeed explain how this works in a better way.

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!