diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-06-19 12:41:07 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-06-19 12:41:07 -0500 |
| commit | 50bc95519e48e1ca3398e697cf65b15289e23c66 (patch) | |
| tree | 2b73c217750c59b899d53f7a4fe58eb1597370a9 /src/cryptonote_core | |
| parent | f62399b88da9f50638031286eb4f56c462d2263d (diff) | |
| parent | 16e209e08dcb0e8ee49115071809e6540dc57ec1 (diff) | |
| download | monzero-core-50bc95519e48e1ca3398e697cf65b15289e23c66.tar.gz monzero-core-50bc95519e48e1ca3398e697cf65b15289e23c66.tar.xz monzero-core-50bc95519e48e1ca3398e697cf65b15289e23c66.zip | |
Merge pull request #3828
16e209e core: lock incoming tx lock when checking the txpool and chain (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index cd1b015ea..7fc81a87d 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -675,6 +675,7 @@ namespace cryptonote bool core::handle_incoming_txs(const std::list<blobdata>& tx_blobs, std::vector<tx_verification_context>& tvc, bool keeped_by_block, bool relayed, bool do_not_relay) { TRY_ENTRY(); + CRITICAL_REGION_LOCAL(m_incoming_tx_lock); struct result { bool res; cryptonote::transaction tx; crypto::hash hash; crypto::hash prefix_hash; bool in_txpool; bool in_blockchain; }; std::vector<result> results(tx_blobs.size()); |
