diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-07-23 12:09:33 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:29:43 +0100 |
| commit | cf33e1a52a0cf20a7cec619d85d68f000b2e1f40 (patch) | |
| tree | f8230d6384ea0b6a3422a3f64cbc76880732052e /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 83ab3151e877882286afa071046d8b56dd495938 (diff) | |
| download | monzero-core-cf33e1a52a0cf20a7cec619d85d68f000b2e1f40.tar.gz monzero-core-cf33e1a52a0cf20a7cec619d85d68f000b2e1f40.tar.xz monzero-core-cf33e1a52a0cf20a7cec619d85d68f000b2e1f40.zip | |
rct: do not serialize public keys in outPk
They can be reconstructed from vout
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 880162ed2..511f50616 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -569,14 +569,6 @@ namespace cryptonote LOG_PRINT_RED_L1("tx with mismatched vout/outPk count, rejected for tx id= " << get_transaction_hash(tx)); return false; } - for (size_t n = 0; n < tx.vout.size(); ++n) - { - if (tx.rct_signatures.outPk[n].dest != boost::get<txout_to_key>(tx.vout[n].target).key) - { - LOG_PRINT_RED_L1("tx ringct public key does not match output public key for tx id= " << get_transaction_hash(tx)); - return false; - } - } } if(!check_money_overflow(tx)) |
