-
Notifications
You must be signed in to change notification settings - Fork 119
History and balance mismatch #534
Comments
I had this while testing. It happened to me because two joinmarket transactions actually belonged to the "" account instead of "joinmarket-wallet-whatever". When I made it search "" as well as the other account, all transactions appears. https://github.com/JoinMarket-Org/joinmarket/blob/master/wallet-tool.py#L293 You could try debugging by adding a likely wallet name to the list of accounts to search. Maybe you used two joinmarket wallets in the lifetime of that wallet.dat. Ideally there's be a way to obtain all wallet transactions regardless of which account they're in. |
I havent used multiple joinmarket wallets. there is only "" and "joinmarket-wallet-random" as accounts. |
i just checked and saw i deleted the yigen logfile some time ago, i'll have to recover it for proper results. this would cause less utxo in history and also much less balance (which both are the case). |
wallet-tool history doesnt read from the yigen log file at all. It only reads from the blockchain. You can delete your log file and wallet-tool history will work in exactly the same way Reopening |
i also have a case where this happend, i moved some coins via the sendpayment.py and the transaction is missing in the history and now the balance differ |
It's confirmed I assume(?) |
Yes it is, i am on console only, but with the normal joinmarket command where i can see all the addresses in the different mix depths and balances. There is the right balance. Its console only i don't think bitcoin-qt would work there or? |
I'd say I see it ~60% of the time when running Also, which might be related(?), when I was trying to add notifications somewhat like here. I've noticed that my Basically, while $ grep "potentially earned" logs/*.log | wc -l
A_NONZERO_NUMBER then just $ grep "earned" logs/*.log | grep -v "potentially" | wc -l
0 |
That's very strange mmDamian, obviously you're getting unconfirmed notifies but not confirmed notifies, so -walletnotify isn't the problem. I wonder if there's a crash or bug somewhere in confirm_fun(), maybe your log file can tell us what happened? |
@chris-belcher Here are some scrubbed logs that do contain Also, something I should probably also mention, is that I'm using pruned Bitcoin Core. |
@meeDamian Double check your -walletnotify config. I'm 80% sure that's the problem. Since the 'potentially earned' print can happen even if your -walletnotify config is wrong. I use a pruned node too, that shouldn't make a difference. |
This is my
I've restarted all: bitcoin node, joinmarket and machine couple of times since applying that config. |
I don't know but for some reason the notify messages are not reaching joinmarket. |
Ok, my machine was allergic to @chris-belcher But getting back to the original problem, do you thinks this could've been the cause behind balances mismatch? |
I doubt it, since wallet-tool history doesn't depend on walletnotify working. If the balance mismatch happens every time, try changing this line https://github.com/JoinMarket-Org/joinmarket/blob/master/wallet-tool.py#L310 EDIT: it moves over time, here's the link with the SHA Line 399 in 8c2b6d8
Make it and see if it fixes it |
I only have one wallet there. After doing some digging through, it seems that it only shows if there's a tx in-between being broadcast and confirmed. My best guess would be that, while the wallet, based on its memory pool(?), has already increased its total In which case only the |
I just hit this. I had a previous wallet, but I immediately deleted it It began after the very first coinjoin. It happens every time I run history. The relevant log from yield-generator-basic.py on commit 05b758c, various data replaced with dashes.
|
Update: I ran history again after at least one more coinjoin, and did not hit this error. |
We should at least make the error message less scary. |
@chris-belcher not to be a nag, but could you please use SHAs when linking to GH since master moves over time? Per: #534 (comment) Thanks, you rock! |
That line is this: Line 399 in 8c2b6d8
I also edited that comment above. |
I've tried the history mode of wallet-tool and it came up with this (values replaced with meaningful text)
The text was updated successfully, but these errors were encountered: