diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-30 09:45:55 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-30 09:48:00 +0100 |
| commit | 5d91b26c0f8ab95aba984c97b8aed093601de8e7 (patch) | |
| tree | 1d781d6b0b2ab1b8374d8fd2fe9af07210069f5b /src/cryptonote_core/cryptonote_core.cpp | |
| parent | ab594cfee94dff87bb7039724563f6177a892b8b (diff) | |
| download | monzero-core-5d91b26c0f8ab95aba984c97b8aed093601de8e7.tar.gz monzero-core-5d91b26c0f8ab95aba984c97b8aed093601de8e7.tar.xz monzero-core-5d91b26c0f8ab95aba984c97b8aed093601de8e7.zip | |
blockchain: skip checking tx semantics in embedded block hash range
If the txes are bad, this'll be picked up by the block hash mismatch
since the tx merkle root is part of the block hash.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 4cfa52441..7d8ebebd5 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -564,7 +564,11 @@ namespace cryptonote rv.outPk[n].dest = rct::pk2rct(boost::get<txout_to_key>(tx.vout[n].target).key); } - if(!check_tx_semantic(tx, keeped_by_block)) + if (keeped_by_block && get_blockchain_storage().is_within_compiled_block_hash_area()) + { + MTRACE("Skipping semantics check for tx kept by block in embedded hash area"); + } + else if(!check_tx_semantic(tx, keeped_by_block)) { LOG_PRINT_L1("WRONG TRANSACTION BLOB, Failed to check tx " << tx_hash << " semantic, rejected"); tvc.m_verifivation_failed = true; |
