emarkproject / eMark

https://deutsche-emark.org
MIT License
24 stars 36 forks source link

Calling "listtransactions" causes daemon to crash #6

Closed rcondron closed 7 years ago

rcondron commented 10 years ago

Every time I attempt to call "listtransactions" eMarkd crashes without fail.

Debug.log states:

CWalletTx::GetAmounts: Unknown transaction type found, txid 1ceb2c5f7bc0c4a864afbfcb52dcb707765aea95c03912b92380eb5ace13819a

Crypto2 commented 10 years ago

That transaction doesn't look like it's in the blockchain, how was it generated?

rcondron commented 10 years ago

Don't know... the TXid isn't in our pool database either. I've deleted the eMark database and tried downloading the chain fresh and I get the following error:


EXCEPTION: St13runtime_error
CDB() : can't open database file wallet.dat, error -30973
eMark in ThreadStakeMinter()

terminate called after throwing an instance of 'std::runtime_error' what(): CDB() : can't open database file wallet.dat, error -30973


Version 1.0 seems to work fine with our wallet.dat but the new version doesn't seem to like it.

Crypto2 commented 10 years ago

Does the coin sync and run if you move the wallet.dat elsewhere? It may have some corruption in it or something; not that many internals were changed in the coin.

rcondron commented 10 years ago

Seems to sync and run without my wallet... looks like when I upgraded it corrupted my wallet.dat... now I need to figure out how to recover the private keys from the old wallet.

Crypto2 commented 10 years ago

You can use bitcointools, or if you want you can email to me and I can try to recover it. mrdata@crypto2.net

rcondron commented 10 years ago

I was able to salvage the old wallet and keep the client running long enough to dump the private keys. I am good to go now.