BitShares Forum

Other => Graveyard => KeyID => Topic started by: gnarl on October 04, 2014, 07:09:33 pm

Title: Wallet troubleshooting
Post by: gnarl on October 04, 2014, 07:09:33 pm
I have a problem with a vote transaction, my balance disappeared after voting.

I imported my pts and was checking out the Keyid wallet, and voted for a new account I had just registered.
I did a vote_all and vote_random successfully, and then after setting up a delegate tried vote_random again. This transaction send my entire balance away.
The transaction says username > self, but the full amount of my balance has been gone since yesterday.

Troubleshooting
I have tried rescan, wallet_rescan_blockchain, and restarts which did not help.
wallet_get_pending_transaction_errors  showed me the error, the vote that sent my entire balance is now an Expired Transaction.
"code": 31010, "name": "expired_transaction",

blockchain_get_transaction can list it, but wallet_recover_transaction gives this error: RPC Server Error: JSON Parse error: Unterminated string
The rpc and blockchain log files are empty, or I would provide more info.

Any ideas on recovering the transaction?
Title: Re: Wallet troubleshooting - balance missing after voting
Post by: gnarl on October 06, 2014, 04:32:55 am
I have found errors that may help track this down.

There are 2 errors in the default.log
Message from GUI: rpc error: In method 'wallet_get_transaction_fee': Assert Exception (10)
arec.valid():  (500)         Utilities.cpp:2820141005T231354.637282        th_a:?unnamed?         
log_message ] Message from GUI: js error: JSON Parse error: Unterminated string parse@[native code]

This error is logged running> wallet_recover_transaction ######## accountname
rebroadcasting... client.cpp:106620141006T034942.462359        th_a:?unnamed?         
log_message ] Message from GUI: js error: undefined is not an object (evaluating 'c.balances[d].BTSX.amount')

Blockchain logs are all 0 byte, does logging need to be enabled somewhere?

Any suggestions would be great.


Title: Re: Wallet troubleshooting
Post by: xeroc on October 06, 2014, 12:09:26 pm
if you have a delegate in the wallet .. the software does not scan transactions ..

doe sth like. wallet_delegate_set_transaction_scanning false

And do a rescan
Title: Re: Wallet troubleshooting
Post by: gnarl on October 06, 2014, 08:04:34 pm
if you have a delegate in the wallet .. the software does not scan transactions ..

doe sth like. wallet_delegate_set_transaction_scanning false

And do a rescan

Thank you very much!

This command fixed the vote transaction:  wallet_set_transaction_scanning true
The "-> to Self" part of the Vote_all transaction appeared immediately, and my entire balance is back.

This is a pretty serious defect on the heart-attack scale. If I can reproduce it where should I file it?


Title: Re: Wallet troubleshooting
Post by: xeroc on October 06, 2014, 08:24:11 pm
Its not a bug .. its on purpose for delegate accounts for timing reasons ... GUI users should NEVER have a delegate active .. thats why you cannot register as delegate in more recent GUI versions .. still available in cli though
Title: Re: Wallet troubleshooting
Post by: gnarl on October 07, 2014, 03:45:25 am
Its not a bug .. its on purpose for delegate accounts for timing reasons ... GUI users should NEVER have a delegate active .. thats why you cannot register as delegate in more recent GUI versions .. still available in cli though

Its a known issue? Ok.

This seems like it might happen again. A startup log entry that indicates transaction scanning is off once you have created a delegate might help users with troubleshootng.

In case anyone else has a missing balance\transaction problem and you get an error running:wallet_recover_transaction  ######## accountname, then try: wallet_set_transaction_scanning true.

Thanks again,
Gnarl