Bitcoin Forum
December 13, 2024, 07:18:27 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: RPC accounts are not working Properly  (Read 144 times)
ironfeast (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
October 27, 2018, 07:34:59 AM
 #1

Hi there,

I have made an altcoin as a college project. The coin is based on litecon 0.8. I am using it with RPC feature using cli wallet for last 2 months and have around 150 users who do some minor and major transactions each day. Everything was working fine until I ecrypted my wallet. After 2 days of encryptiom i realized that RPC is not working due to encryption (as wallet needs to be unlocked for performing any action). So I restored 2 days old wallet.dat file.

Now theoritically I knew that if I restore old wallet.dat it won't affect any balance. But all of sudden some balances are negative (like from 98 it changed to -295962.45329679) and some balance have changed. I am looking for balances using listaccounts api call.

One last thing, I have a backup script which takes backup everyday. But wallet.dat file from different days is showing different balances.

Urgent Help needed, please help me.

psycodad
Legendary
*
Offline Offline

Activity: 1672
Merit: 1885


精神分析的爸


View Profile
October 27, 2018, 08:21:58 AM
 #2

..

Now theoritically I knew that if I restore old wallet.dat it won't affect any balance. But all of sudden some balances are negative (like from 98 it changed to -295962.45329679) and some balance have changed. I am looking for balances using listaccounts api call.

One last thing, I have a backup script which takes backup everyday. But wallet.dat file from different days is showing different balances.

Urgent Help needed, please help me.



Try to start your restored wallet with -rescan, this will rescan the chain for any transactions your wallet.db backup had missed.

HTH

ironfeast (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
October 27, 2018, 08:52:23 AM
 #3


Try to start your restored wallet with -rescan, this will rescan the chain for any transactions your wallet.db backup had missed.

HTH

I did added rescan=1 in my configuration file in data directory, but it seems to be going nowhere.
psycodad
Legendary
*
Offline Offline

Activity: 1672
Merit: 1885


精神分析的爸


View Profile
October 27, 2018, 10:02:30 AM
 #4


Try to start your restored wallet with -rescan, this will rescan the chain for any transactions your wallet.db backup had missed.

HTH

I did added rescan=1 in my configuration file in data directory, but it seems to be going nowhere.

Make sure you have restarted your wallet after that change and that the conf file you edited actually gets used. Check your debug.log for further hints.

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!