From 58272e3a73840880fde5fcb1c2b70b2e43cdd6c4 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Wed, 31 May 2017 13:50:15 +0800 Subject: [PATCH 1/4] started looking into showing alt blcoks --- src/page.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/page.h b/src/page.h index 3b45186..c92e3bd 100644 --- a/src/page.h +++ b/src/page.h @@ -490,15 +490,15 @@ namespace xmreg {"show_cache_times" , show_cache_times} }; -// std::list atl_blks; -// -// if (core_storage->get_alternative_blocks(atl_blks)) -// { -// for (const block& alt_blk: atl_blks) -// { -// //cout << "alt_blk: " << get_block_height(alt_blk) << endl; -// } -// } + std::list atl_blks; + + if (core_storage->get_alternative_blocks(atl_blks)) + { + for (const block& alt_blk: atl_blks) + { + cout << "alt_blk tx: " << alt_blk.tx_hashes.size() << endl; + } + } context.emplace("txs", mstch::array()); // will keep tx to show From fa5b20b13038370fa5a0729e7e0a619cccb3effb Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Thu, 1 Jun 2017 11:19:09 +0800 Subject: [PATCH 2/4] easylogging removed as dependency --- CMakeLists.txt | 1 - README.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index de22f5c..c693c9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,6 @@ set(LIBRARIES common mnemonics epee - easylogging ${Boost_LIBRARIES} pthread unbound diff --git a/README.md b/README.md index c73f71d..bdf9f29 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ git clone https://github.com/monero-project/monero cd monero/ # checkout last monero version -git checkout -b v0.10.3.1 +git checkout -b last_release v0.10.3.1 make ``` From 95167aab89ce82bd05aa3129e30a8a31d40f7f0b Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Wed, 31 May 2017 13:50:15 +0800 Subject: [PATCH 3/4] started looking into showing alt blcoks --- src/page.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/page.h b/src/page.h index 0bedc6c..e524b30 100644 --- a/src/page.h +++ b/src/page.h @@ -425,15 +425,15 @@ namespace xmreg {"show_cache_times" , show_cache_times} }; -// std::list atl_blks; -// -// if (core_storage->get_alternative_blocks(atl_blks)) -// { -// for (const block& alt_blk: atl_blks) -// { -// //cout << "alt_blk: " << get_block_height(alt_blk) << endl; -// } -// } + std::list atl_blks; + + if (core_storage->get_alternative_blocks(atl_blks)) + { + for (const block& alt_blk: atl_blks) + { + cout << "alt_blk tx: " << alt_blk.tx_hashes.size() << endl; + } + } context.emplace("txs", mstch::array()); // will keep tx to show From eccff9fa5d6082c428f5bb70b729e6f75ff62b47 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Fri, 9 Jun 2017 11:38:09 +0800 Subject: [PATCH 4/4] "get_alternative_blocks(atl_blks) returned false" added --- src/page.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/page.h b/src/page.h index e524b30..9a02e37 100644 --- a/src/page.h +++ b/src/page.h @@ -434,6 +434,10 @@ namespace xmreg cout << "alt_blk tx: " << alt_blk.tx_hashes.size() << endl; } } + else + { + cerr << "get_alternative_blocks(atl_blks) returned false" << endl; + } context.emplace("txs", mstch::array()); // will keep tx to show