mirror of
https://github.com/monero-project/monero.git
synced 2024-12-25 04:59:43 +00:00
core: don't add empty additional pub keys field to extra
Saves a couple bytes per tx
This commit is contained in:
parent
8d511f3c24
commit
523084bc79
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,6 @@ namespace cryptonote
|
|||
}
|
||||
|
||||
remove_field_from_tx_extra(tx.extra, typeid(tx_extra_additional_pub_keys));
|
||||
add_additional_tx_pub_keys_to_extra(tx.extra, additional_tx_public_keys);
|
||||
|
||||
LOG_PRINT_L2("tx pubkey: " << txkey.pub);
|
||||
if (need_additional_txkeys)
|
||||
|
@ -401,6 +400,7 @@ namespace cryptonote
|
|||
LOG_PRINT_L2("additional tx pubkeys: ");
|
||||
for (size_t i = 0; i < additional_tx_public_keys.size(); ++i)
|
||||
LOG_PRINT_L2(additional_tx_public_keys[i]);
|
||||
add_additional_tx_pub_keys_to_extra(tx.extra, additional_tx_public_keys);
|
||||
}
|
||||
|
||||
//check money
|
||||
|
|
Loading…
Reference in a new issue