Open mrtestyboy781 opened 2 years ago
Is is possible that you might have imported key images while the hot wallet was connected to an untrusted daemon (that is, a daemon that was not on 127.0.0.1 and where --trusted-daemon was not specified, OR any daemon with --untrusted-daemon specified) ? If that it the case, then I understand why this would happen (first step to fixing it).
After looking some more, this only applies to hardware wallets, so this doens't appear to be your case.
It is possibly related to key image import, its something we have done in the past to re-sync watchonly wallet with offline signer
@mrtestyboy781 are these transfers with the issue self-spends back to your own subaddress by chance?
In this case they were not self-spends, it was...
main wallet -> 2 outputs 1 external output 1 change output
but it seems like your fix may solve the issue?
I don't believe that fix would solve this issue unfortunately then. Sounds like this may be something else
Issue
On two rare occasions (less than .01% of all payments) we have seen the wallet create a
transfer
where the change is counted as an incoming payment and is visible inget_bulk_payments
,get_transfers
, andget_transfer_by_txid
astype="in"
The change itself is using a payment id we haven't issued before, so it looks like an erroneous deposit to our wallet, when instead it's just change, and would normally not show up as an incoming payment.
The payment itself constructed in a view-only / offline setup, where
transfer
is used to create the unsigned tx, its send to offline wallet tosign_transfer
and broadcast later withsubmit_transfer
Monerod Version : v0.17.1.9
Details
Expected output
In a normal outgoing transfer, you would see
get_transfer_by_txid
returnNote
type=out
, andget_bulk_payments
would return nothing matching the txid, since change is ignored.Actual output
Now, for these transfers where change is counted as an incoming payment we see
Note
type=in
and inget_bulk_payments
we see an incoming transfer of42448162320000
listed