diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-10-19 08:57:03 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-10-19 09:11:10 +0100 |
commit | 523084bc79946745ec226987b19c43d8cbbe22f3 (patch) | |
tree | 36c561bf76d513d55b831c6e3809993c1994dd25 /src | |
parent | Merge pull request #2601 (diff) | |
download | monero-523084bc79946745ec226987b19c43d8cbbe22f3.tar.xz |
core: don't add empty additional pub keys field to extra
Saves a couple bytes per tx
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index 586df9079..2b1cb3502 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -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 |