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 (current height "+boost::lexical_cast<std::string>(height())+")").c_str()));
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>(offsets[i])+", count "+boost::lexical_cast<std::string>(get_num_outputs(amount))+"), but key does not exist (current height "+boost::lexical_cast<std::string>(height())+")").c_str()));
}
elseif(get_result)
throw0(DB_ERROR(lmdb_error("Error attempting to retrieve an output pubkey from the db",get_result).c_str()));