Skip to content

Commit

Permalink
Merge pull request #2113 from bitshares/cli-history-block-numbers
Browse files Browse the repository at this point in the history
Show block numbers in account history in CLI
  • Loading branch information
abitmore authored Mar 1, 2020
2 parents 5cee6e5 + 68f450b commit 1dd4dd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/wallet/wallet_results.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ std::map<string,std::function<string(fc::variant,const fc::variants&)>> wallet_a
operation_history_object& i = d.op;
auto b = _remote_db->get_block_header(i.block_num);
FC_ASSERT(b);
ss << i.block_num << " ";
ss << b->timestamp.to_iso_string() << " ";
i.op.visit(operation_printer(ss, *this, i));
ss << " \n";
Expand All @@ -67,6 +68,7 @@ std::map<string,std::function<string(fc::variant,const fc::variants&)>> wallet_a
operation_history_object& i = d.op;
auto b = _remote_db->get_block_header(i.block_num);
FC_ASSERT(b);
ss << i.block_num << " ";
ss << b->timestamp.to_iso_string() << " ";
i.op.visit(operation_printer(ss, *this, i));
ss << " \n";
Expand All @@ -88,6 +90,7 @@ std::map<string,std::function<string(fc::variant,const fc::variants&)>> wallet_a
operation_history_object& i = d.op;
auto b = _remote_db->get_block_header(i.block_num);
FC_ASSERT(b);
ss << i.block_num << " ";
ss << b->timestamp.to_iso_string() << " ";
i.op.visit(operation_printer(ss, *this, i));
ss << " transaction_id : ";
Expand Down

0 comments on commit 1dd4dd1

Please sign in to comment.