Skip to content

Commit 1dd4dd1

Browse files
authored
Merge pull request #2113 from bitshares/cli-history-block-numbers
Show block numbers in account history in CLI
2 parents 5cee6e5 + 68f450b commit 1dd4dd1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/wallet/wallet_results.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ std::map<string,std::function<string(fc::variant,const fc::variants&)>> wallet_a
5050
operation_history_object& i = d.op;
5151
auto b = _remote_db->get_block_header(i.block_num);
5252
FC_ASSERT(b);
53+
ss << i.block_num << " ";
5354
ss << b->timestamp.to_iso_string() << " ";
5455
i.op.visit(operation_printer(ss, *this, i));
5556
ss << " \n";
@@ -67,6 +68,7 @@ std::map<string,std::function<string(fc::variant,const fc::variants&)>> wallet_a
6768
operation_history_object& i = d.op;
6869
auto b = _remote_db->get_block_header(i.block_num);
6970
FC_ASSERT(b);
71+
ss << i.block_num << " ";
7072
ss << b->timestamp.to_iso_string() << " ";
7173
i.op.visit(operation_printer(ss, *this, i));
7274
ss << " \n";
@@ -88,6 +90,7 @@ std::map<string,std::function<string(fc::variant,const fc::variants&)>> wallet_a
8890
operation_history_object& i = d.op;
8991
auto b = _remote_db->get_block_header(i.block_num);
9092
FC_ASSERT(b);
93+
ss << i.block_num << " ";
9194
ss << b->timestamp.to_iso_string() << " ";
9295
i.op.visit(operation_printer(ss, *this, i));
9396
ss << " transaction_id : ";

0 commit comments

Comments
 (0)