diff options
author | Thomas Winget <tewinget@gmail.com> | 2014-11-01 21:13:15 -0400 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-01-04 19:39:40 -0800 |
commit | 9455e0cd58871812294ceeeef44b053aea8e0671 (patch) | |
tree | f59f5ff47283387a9b07e00915cf7a160fff56a5 | |
parent | very, VERY primitive blockchain converter (diff) | |
download | monero-9455e0cd58871812294ceeeef44b053aea8e0671.tar.xz |
~ didn't work, need hard path. debug print.
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_converter/blockchain_converter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/blockchain_converter/blockchain_converter.cpp b/src/blockchain_converter/blockchain_converter.cpp index 5dc937b3b..b18fd3525 100644 --- a/src/blockchain_converter/blockchain_converter.cpp +++ b/src/blockchain_converter/blockchain_converter.cpp @@ -38,6 +38,7 @@ #include "cryptonote_core/blockchain.h" #include "cryptonote_core/BlockchainDB_impl/db_lmdb.h" #include "cryptonote_core/tx_pool.h" +#include <iostream> using namespace cryptonote; @@ -51,8 +52,8 @@ struct fake_core fake_core() : m_pool(dummy), dummy(m_pool), m_storage(&m_pool) { - m_pool.init("~/.bitmonero"); - m_storage.init("~/.bitmonero", false); + m_pool.init("/home/user/.bitmonero"); + m_storage.init("/home/user/.bitmonero", false); } }; @@ -64,10 +65,11 @@ int main(int argc, char* argv[]) blockchain = new BlockchainLMDB(); - blockchain->open("~/.bitmonero"); + blockchain->open("/home/user/.bitmonero"); for (uint64_t i = 0; i < c.m_storage.get_current_blockchain_height(); ++i) { + if (i % 10 == 0) std::cout << "block " << i << std::endl; block b = c.m_storage.get_block(i); size_t bsize = c.m_storage.get_block_size(i); difficulty_type bdiff = c.m_storage.get_block_cumulative_difficulty(i); |