started looking into showing alt blcoks

This commit is contained in:
moneroexamples 2017-05-31 13:50:15 +08:00
parent f5d9f993fd
commit 58272e3a73
1 changed files with 9 additions and 9 deletions

View File

@ -490,15 +490,15 @@ namespace xmreg
{"show_cache_times" , show_cache_times}
};
// std::list<block> 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<block> 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