mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 07:52:25 +00:00
core: remove any tx pubkey from extra before adding one
This will happen when signing a transaction from a cold wallet, and we don't want the placeholder the hot wallet put in it.
This commit is contained in:
parent
d72376d467
commit
23d80b15fd
1 changed files with 1 additions and 0 deletions
|
@ -480,6 +480,7 @@ namespace cryptonote
|
||||||
|
|
||||||
tx.extra = extra;
|
tx.extra = extra;
|
||||||
keypair txkey = keypair::generate();
|
keypair txkey = keypair::generate();
|
||||||
|
remove_field_from_tx_extra(tx.extra, typeid(tx_extra_pub_key));
|
||||||
add_tx_pub_key_to_extra(tx, txkey.pub);
|
add_tx_pub_key_to_extra(tx, txkey.pub);
|
||||||
tx_key = txkey.sec;
|
tx_key = txkey.sec;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue