As of 0.0.5
, op results contain a timestamp
field. This field was missing because it's not really part of the op, but it makes sense to add it so if your app actually needs it, there's no need to do an additional look up. In steemd
, account history already has it for similar reasons.
In addition to this change, I had to switch to internal handling of the operation streams. This is primarily because timestamp
is not available unless requesting the entire block, which is abstracted away by steem-ruby
. This results in a slight performance improvement because I can ask for the entire block without needing to request block headers (fewer API calls).
So, the only change clients will see is the addition of timestamp
in the result, for example, from redis-cli
, if we wanted to get an op:
$ redis-cli
127.0.0.1:6379> get steem:31069068:ea222fa499b8f284e31c2ca92d876696941b94d2:0:custom_json
"{\"type\":\"custom_json_operation\",\"value\":{\"required_auths\":[],\"required_posting_auths\":[\"lottoshi\"],\"id\":\"drugwars\",\"json\":\"{\\\"author\\\":\\\"lottoshi\\\",\\\"type\\\":\\\"fight\\\",\\\"payload\\\":{\\\"target\\\":\\\"piaristmonk\\\",\\\"units\\\":[{\\\"key\\\":\\\"knifer\\\",\\\"amount\\\":1},{\\\"key\\\":\\\"bazooka\\\",\\\"amount\\\":6},{\\\"key\\\":\\\"big_mama\\\",\\\"amount\\\":3},{\\\"key\\\":\\\"mercenary\\\",\\\"amount\\\":5},{\\\"key\\\":\\\"bouncer\\\",\\\"amount\\\":93},{\\\"key\\\":\\\"ninja\\\",\\\"amount\\\":2},{\\\"key\\\":\\\"gunman\\\",\\\"amount\\\":36},{\\\"key\\\":\\\"rowdy\\\",\\\"amount\\\":146},{\\\"key\\\":\\\"hitman\\\",\\\"amount\\\":5},{\\\"key\\\":\\\"sniper\\\",\\\"amount\\\":22}]}}\"},\"timestamp\":\"2019-03-11T20:20:54\"}"
Special thanks to @emrebeyler for requesting this change. It's great to know that devs are using this tool in their projects.
To update your gem:
gem update meeseeker
Previous posts: