Merge pull request #364

533acc3 blockchain_db: store key images for tx without outputs too (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2015-08-10 20:05:00 +02:00
commit b210b304a3
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -60,8 +60,6 @@ void BlockchainDB::add_transaction(const crypto::hash& blk_hash, const transacti
// iterate tx.vout using indices instead of C++11 foreach syntax because
// we need the index
if (tx.vout.size() != 0) // it may be technically possible for a tx to have no outputs
{
for (uint64_t i = 0; i < tx.vout.size(); ++i)
{
add_output(tx_hash, tx.vout[i], i, tx.unlock_time);
@ -75,7 +73,6 @@ void BlockchainDB::add_transaction(const crypto::hash& blk_hash, const transacti
}
}
}
}
uint64_t BlockchainDB::add_block( const block& blk
, const size_t& block_size