Post
Topic
Board Wallet software
Re: Weird bug in bitcoin core qt for some people, is there a command to remedy?
by
Yamane_Keto
on 31/03/2024, 14:59:05 UTC
When you restore from and older wallet.dat file sometimes all the new received addresses you have generated on your more updated wallet.dat are for some reason now labelled as change addresses so are kind of invisible to a novice user.
By design, the wallet believes that payment addresses are actual change, but they are not fixed so that each transaction does not appear multiple times.

You can solve this problem by deleting this line https://github.com/bitcoin/bitcoin/blob/d0f81a96d9c158a9226dc946bdd61d48c4d42959/src/wallet/wallet.cpp#L1756

Code:
if (pwallet->IsChange(txout))

and recompile

You can see discussions on this topic here https://github.com/bitcoin/bitcoin/issues/16160