mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-12 05:59:23 +00:00
monero: scan all tx pub keys (not additional) for every tx
wallet2's behavior is explained more fully here: https://github.com/UkoeHB/monero/issues/27
This commit is contained in:
@@ -350,7 +350,7 @@ impl Scanner {
|
||||
return Timelocked(tx.prefix.timelock, vec![]);
|
||||
};
|
||||
|
||||
let Some((tx_key, additional)) = extra.keys() else {
|
||||
let Some((tx_keys, additional)) = extra.keys() else {
|
||||
return Timelocked(tx.prefix.timelock, vec![]);
|
||||
};
|
||||
|
||||
@@ -371,7 +371,9 @@ impl Scanner {
|
||||
}
|
||||
let output_key = output_key.unwrap();
|
||||
|
||||
for key in [Some(Some(&tx_key)), additional.as_ref().map(|additional| additional.get(o))] {
|
||||
let additional = additional.as_ref().map(|additional| additional.get(o));
|
||||
|
||||
for key in tx_keys.iter().map(|key| Some(Some(key))).chain(core::iter::once(additional)) {
|
||||
let key = match key {
|
||||
Some(Some(key)) => key,
|
||||
Some(None) => {
|
||||
|
||||
Reference in New Issue
Block a user