mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #364
533acc3
blockchain_db: store key images for tx without outputs too (moneromooo-monero)
This commit is contained in:
commit
b210b304a3
@ -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
|
// iterate tx.vout using indices instead of C++11 foreach syntax because
|
||||||
// we need the index
|
// 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)
|
for (uint64_t i = 0; i < tx.vout.size(); ++i)
|
||||||
{
|
{
|
||||||
add_output(tx_hash, tx.vout[i], i, tx.unlock_time);
|
add_output(tx_hash, tx.vout[i], i, tx.unlock_time);
|
||||||
@ -74,7 +72,6 @@ void BlockchainDB::add_transaction(const crypto::hash& blk_hash, const transacti
|
|||||||
add_spent_key(boost::get<txin_to_key>(tx_input).k_image);
|
add_spent_key(boost::get<txin_to_key>(tx_input).k_image);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t BlockchainDB::add_block( const block& blk
|
uint64_t BlockchainDB::add_block( const block& blk
|
||||||
|
Loading…
Reference in New Issue
Block a user