diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:24:58 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:24:58 +0200 |
| commit | 6db8a60a18c3678824016234b2153b4b0f0dbbdd (patch) | |
| tree | 7a36b079ad838f6d8046844e3a7596027f12bfdf /tests/core_proxy/core_proxy.cpp | |
| parent | a4151bed586f40bc7f194b3e2151aa4d06de8919 (diff) | |
| parent | 158c3ecff3a1e760b8d307c1ad29c029f669a265 (diff) | |
| download | monzero-core-6db8a60a18c3678824016234b2153b4b0f0dbbdd.tar.gz monzero-core-6db8a60a18c3678824016234b2153b4b0f0dbbdd.tar.xz monzero-core-6db8a60a18c3678824016234b2153b4b0f0dbbdd.zip | |
Merge pull request #2149
158c3ecf core: thread most of handle_incoming_tx (moneromooo-monero)
f57ee382 cryptonote_protocol: retry stale spans early (moneromooo-monero)
90df52e1 cryptonote_protocol: light cleanup (moneromooo-monero)
84e23156 cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages (moneromooo-monero)
5be43fcd cryptonote_protocol_handler: sync speedup (moneromooo-monero)
Diffstat (limited to 'tests/core_proxy/core_proxy.cpp')
| -rw-r--r-- | tests/core_proxy/core_proxy.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/core_proxy/core_proxy.cpp b/tests/core_proxy/core_proxy.cpp index c12b8e9a7..366937e1d 100644 --- a/tests/core_proxy/core_proxy.cpp +++ b/tests/core_proxy/core_proxy.cpp @@ -185,6 +185,19 @@ bool tests::proxy_core::handle_incoming_tx(const cryptonote::blobdata& tx_blob, return true; } +bool tests::proxy_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) +{ + tvc.resize(tx_blobs.size()); + size_t i = 0; + for (const auto &tx_blob: tx_blobs) + { + if (!handle_incoming_tx(tx_blob, tvc[i], keeped_by_block, relayed, do_not_relay)) + return false; + ++i; + } + return true; +} + bool tests::proxy_core::handle_incoming_block(const cryptonote::blobdata& block_blob, cryptonote::block_verification_context& bvc, bool update_miner_blocktemplate) { block b = AUTO_VAL_INIT(b); |
