3

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?

user36303
  • 34,858
  • 2
  • 57
  • 123
adsl
  • 315
  • 1
  • 8

1 Answers1

1

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.

jtgrassie
  • 19,111
  • 4
  • 14
  • 51
user36303
  • 34,858
  • 2
  • 57
  • 123