When scanning for outputs used in a set of incoming blocks,
we expect that some of the inputs in their transactions will
not be found in the blockchain, as they could be in previous
blocks in that set. Those outputs will be scanned there at
a later point. In this case, we add a flag to control wehther
an output not being found is expected or not.
throw1(OUTPUT_DNE((std::string("Attempting to get output pubkey by global index (amount ")+boost::lexical_cast<std::string>(amount)+", index "+boost::lexical_cast<std::string>(index)+", count "+boost::lexical_cast<std::string>(get_num_outputs(amount))+"), but key does not exist").c_str()));
}
elseif(get_result)
throw0(DB_ERROR(lmdb_error("Error attempting to retrieve an output pubkey from the db",get_result).c_str()));