Merge pull request #565
79beed2tests: fix various tests by using parameters better suited to monero (moneromooo-monero)d0a8362tests: fix some double spending tests (moneromooo-monero)2358d0dtests: use 255 as a "too high" block version (moneromooo-monero)f33a88cblockchain: fix a few block addition bugs (moneromooo-monero)a9ff11cblockchain: fix an off by one error in unlocked time check (moneromooo-monero)f294be3blockchain: reinstate double spending checks in check_tx_inputs (moneromooo-monero)737b6d6blockchain: make some flag twiddling code closer to the original (moneromooo-monero)81cb0fcblockchain: fix bitflipping test with quantized block rewards (moneromooo-monero)22ddf09blockchain: add missing m_tx_pool.on_blockchain_dec (moneromooo-monero)d837c0cblockchain: fix switch to alternative blockchain for more than one block (moneromooo-monero)5cec076blockchain: add a missing validity check to rollback_blockchain_switching (moneromooo-monero)3cabdb5core: catch exceptions from get_output_key (moneromooo-monero)5eef645db: throw when given a non txout_to_key output to add (moneromooo-monero)
This commit is contained in:
@@ -695,6 +695,10 @@ void BlockchainLMDB::add_output(const crypto::hash& tx_hash, const tx_out& tx_ou
|
||||
if (mdb_put(*m_write_txn, m_output_keys, &k, &data, 0))
|
||||
throw0(DB_ERROR("Failed to add output pubkey to db transaction"));
|
||||
}
|
||||
else
|
||||
{
|
||||
throw0(DB_ERROR("Wrong output type: expected txout_to_key"));
|
||||
}
|
||||
|
||||
m_num_outputs++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user