Bitcoin Forum
July 07, 2024, 02:22:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Re-Sync QT Clients to Blockchain?  (Read 650 times)
ranlo (OP)
Legendary
*
Offline Offline

Activity: 1974
Merit: 1007



View Profile
July 12, 2013, 07:28:25 AM
 #1

Alright, I'm lost as to what to do here. Let's say someone has a few clients and keeps multiple wallets on each. They swap out the wallet.dat file when needed, so there is cold storage and a hot wallet.

Now... they update the client and download the blockchain, everything goes great.

They swap the wallets out to make a payment... oh wait, the other wallet is not showing any balances because it is starting its sync from where the last one left off (at the latest block). So the blockchain info is right, the client is not.

How does one go about making a QT client re-read the blockchain file to get the correct balance information?

This is not Bitcoin-specific, but with others like FTC, WDC, etc. that all use the QT.

https://nanogames.io/i-bctalk-n/
Message for info on how to get kickbacks on sites like Nano (above) and CryptoPlay!
honolululu
Member
**
Offline Offline

Activity: 103
Merit: 10



View Profile
July 12, 2013, 07:37:30 AM
 #2

you need to run with the -rescan option.

In windows, probably a quicker way but, create shortcut to Qt

Right click shortcut and click properties

add -rescan to end of Target box entry outside of the quotes

open shortcut and wait

Good luck!
ranlo (OP)
Legendary
*
Offline Offline

Activity: 1974
Merit: 1007



View Profile
July 12, 2013, 07:41:50 AM
 #3

you need to run with the -rescan option.

In windows, probably a quicker way but, create shortcut to Qt

Right click shortcut and click properties

add -rescan to end of Target box entry outside of the quotes

open shortcut and wait

Good luck!

Thank you so much! I'm going to try this right now, Smiley.

https://nanogames.io/i-bctalk-n/
Message for info on how to get kickbacks on sites like Nano (above) and CryptoPlay!
ranlo (OP)
Legendary
*
Offline Offline

Activity: 1974
Merit: 1007



View Profile
July 12, 2013, 07:43:39 AM
 #4

Just wanted to update. IT WORKED. Thank you so much, <3!

https://nanogames.io/i-bctalk-n/
Message for info on how to get kickbacks on sites like Nano (above) and CryptoPlay!
ranlo (OP)
Legendary
*
Offline Offline

Activity: 1974
Merit: 1007



View Profile
July 12, 2013, 07:50:13 AM
Last edit: July 12, 2013, 08:04:03 AM by ranlo
 #5

Ugh, worked for FTC. It's not working for LTC... it says there's no function.

Edit: I got it. For anyone that doesn't know, you'll have to use cmd (or a bat file) to go into your Litecoin client directory and then do it from there. This is because Windows' icons won't allow pending anything to the end if it's in quotes it appears... but if you use cmd/bat you can do it directly.

https://nanogames.io/i-bctalk-n/
Message for info on how to get kickbacks on sites like Nano (above) and CryptoPlay!
Foxpup
Legendary
*
Offline Offline

Activity: 4410
Merit: 3062


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
July 12, 2013, 10:21:09 AM
 #6

This is because Windows' icons won't allow pending anything to the end if it's in quotes it appears...
For future reference, note that if the name of the .exe file is in quotes, any parameters must be listed outside the quotes, eg:
Code:
"bitcoin-qt.exe" -rescan
Anything inside the quotes is treated as though it were part of the filename as opposed to a parameter (the whole reason for using quotes in the first place is to allow for filenames containing spaces, which would otherwise result in only the part before the space being recognised as the filename, with the rest of the filename being treated as a parameter list).

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
ranlo (OP)
Legendary
*
Offline Offline

Activity: 1974
Merit: 1007



View Profile
July 12, 2013, 01:40:29 PM
 #7

This is because Windows' icons won't allow pending anything to the end if it's in quotes it appears...
For future reference, note that if the name of the .exe file is in quotes, any parameters must be listed outside the quotes, eg:
Code:
"bitcoin-qt.exe" -rescan
Anything inside the quotes is treated as though it were part of the filename as opposed to a parameter (the whole reason for using quotes in the first place is to allow for filenames containing spaces, which would otherwise result in only the part before the space being recognised as the filename, with the rest of the filename being treated as a parameter list).

Ahhh, got you. Thanks for the help! Learn something new every day, :p. I've never altered the targets of shortcuts before.

https://nanogames.io/i-bctalk-n/
Message for info on how to get kickbacks on sites like Nano (above) and CryptoPlay!
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!