When constructing a new transaction, I have reached the function cryptonote_core/cryptonote_tx_utils.cpp/construct_tx_with_tx_key() and I am trying to understand where the decoys came from? How and when are they selected?


The fake outputs are selected by the wallet in the wallet2::get_outs function, in src/wallet/wallet2.cpp.

https://github.com/monero-project/monero/blob/master/src/wallet/wallet2.cpp, currently starting at line 6411.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.