Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1298 from GolosChain/1297-operation-dump-transfer…
Browse files Browse the repository at this point in the history
…s-comments-add-date

Add timestamp to comments and transfers in operation dump #1297
  • Loading branch information
afalaleev committed May 16, 2019
2 parents ca3216b + 861bab3 commit e2019bf
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -50,6 +50,8 @@ class operation_dump_visitor {
auto& b = write_op_header("transfers", 0);

fc::raw::pack(b, op);

fc::raw::pack(b, _block.timestamp);
}

auto operator()(const comment_operation& op) -> result_type {
Expand All @@ -64,6 +66,8 @@ class operation_dump_visitor {

auto meta = golos::plugins::tags::get_metadata(op.json_metadata, TAGS_NUMBER, TAG_MAX_LENGTH);
fc::raw::pack(b, meta);

fc::raw::pack(b, _block.timestamp);
}

auto operator()(const delete_comment_operation& op) -> result_type {
Expand Down

0 comments on commit e2019bf

Please sign in to comment.