oxen-io / oxen-core

Oxen core repository, containing oxend and oxen cli wallets
https://oxen.io
Other
313 stars 119 forks source link

Sweep all transactions are not showing in export transfers #1219

Open tokerato opened 4 years ago

tokerato commented 4 years ago

Originally performed a sweep_all function to a different address i.e from wallet_A performed "sweep_all wallet_B" -- When exporting transfers from wallet_A the sweep all transactions are missing.

Steps to reproduce v7.1.9 -- importing key image into view wallet (x2 as per https://github.com/loki-project/loki-core/issues/639) -- export_transfers -- Sweep_all TX's missing

Doy-lee commented 4 years ago

Describe the bug When a wallet executes sweep_all and key images are exported. Watch only wallets importing the key images will not show sweep_all transactions in export_transfers all.

To Reproduce

./lokid --data-dir . --offline --testnet --fixed-difficulty 1
./loki-wallet-cli --testnet  --generate-new-wallet wallet --password '' --mnemonic-language English
start_mining
stop_mining
refresh
sweep_all
start_mining
stop_mining
refresh
export_key_images keyimages
save_watch_only

./loki-wallet-cli --testnet  --wallet-file wallet-watchonly --password '' --mnemonic-language English
refresh
import_key_images keyimages
import_key_images keyimages //  NOTE: Import twice, this is intended to work-around a bug in #639 
export_transfers

Observe output0.csv does not show corresponding outgoing transactions.