aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-05-30 21:12:44 +0200
committerRiccardo Spagni <ric@spagni.net>2017-05-30 21:12:44 +0200
commit545e2b003c6a4930e9f18e6d5696c2cd85a5cb22 (patch)
tree3c156bab193a4d1c01ef20a2764b4439f01e3699 /src/rpc
parentMerge pull request #2015 (diff)
parentMove txpool to the database (diff)
downloadmonero-545e2b003c6a4930e9f18e6d5696c2cd85a5cb22.tar.xz
Merge pull request #1982
b52abd13 Move txpool to the database (moneromooo-monero)
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/core_rpc_server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 76a69fbf6..53cfedc04 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -1608,13 +1608,13 @@ namespace cryptonote
}
crypto::hash txid = *reinterpret_cast<const crypto::hash*>(txid_data.data());
- cryptonote::transaction tx;
- bool r = m_core.get_pool_transaction(txid, tx);
+ cryptonote::blobdata txblob;
+ bool r = m_core.get_pool_transaction(txid, txblob);
if (r)
{
cryptonote_connection_context fake_context = AUTO_VAL_INIT(fake_context);
NOTIFY_NEW_TRANSACTIONS::request r;
- r.txs.push_back(cryptonote::tx_to_blob(tx));
+ r.txs.push_back(txblob);
m_core.get_protocol()->relay_transactions(r, fake_context);
//TODO: make sure that tx has reached other nodes here, probably wait to receive reflections from other nodes
}