Adding block data to LMDB BlockchainDB coded

Still needs testing (and need to write a few more unit tests), but
everything should be there.  Lots of unfortunate duplication,
but...well, I can't see a way around it using LMDB.

A couple of other minor changes in this commit, only slightly relevant.
This commit is contained in:
Thomas Winget 2014-10-23 19:47:36 -04:00 committed by warptangent
parent db00ce0173
commit a0af217d9a
3 changed files with 258 additions and 8 deletions

View file

@ -194,12 +194,20 @@ private:
MDB_dbi m_block_coins;
MDB_dbi m_txs;
MDB_dbi m_tx_heights;
MDB_dbi m_tx_outputs;
MDB_dbi m_spent;
MDB_dbi m_utxo;
MDB_dbi m_output_txs;
MDB_dbi m_output_indices;
MDB_dbi m_output_gindices;
MDB_dbi m_output_amounts;
MDB_dbi m_outputs;
MDB_dbi m_spent_keys;
bool m_open;
uint64_t m_height;
uint64_t m_num_outputs;
std::string m_folder;
txn_safe* m_write_txn;
};