aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-08-15 18:46:19 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-08-15 18:46:19 +0100
commit378d004b375ec6f6be594f15d8bccd54821df4ed (patch)
tree85189bf65e4c2c7961f21343dc53906d333292cf /src/cryptonote_core
parentblockchain: update cumulative size after block addition (diff)
downloadmonero-378d004b375ec6f6be594f15d8bccd54821df4ed.tar.xz
blockchain: mark two places where the new code differs from the old
And I'd like a comment from tewinget or someone else
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 695be9f4e..be0a4a6d7 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -2368,6 +2368,8 @@ bool Blockchain::handle_block_to_main_chain(const block& bl, const crypto::hash&
bool add_tx_to_pool = false;
TIME_MEASURE_FINISH(t3);
+// XXX old code adds miner tx here
+
int tx_index = 0;
// Iterate over the block's transaction hashes, grabbing each
// from the tx_pool and validating them. Each is then added
@@ -2379,6 +2381,7 @@ bool Blockchain::handle_block_to_main_chain(const block& bl, const crypto::hash&
uint64_t fee = 0;
TIME_MEASURE_START(aa);
+// XXX old code does not check whether tx exists
if (m_db->tx_exists(tx_id))
{
LOG_PRINT_L1("Block with id: " << id << " attempting to add transaction already in blockchain with id: " << tx_id);