bitshares / bitshares-core

BitShares Blockchain node and command-line wallet
https://bitshares.github.io/
Other
1.17k stars 643 forks source link

Improve performance of account history wallet APIs by using the block_time field in operation_history_object #2643

Closed abitmore closed 1 year ago

abitmore commented 1 year ago

User Story

We are adding a block_time field in the operation_history_object class in #2642.

For better performance, in CLI wallet we should use that field instead of calling get_block_header to get the timestamps.

I'm adding this to the 7.0 milestone to avoid a compatibility issue, although technically it is not a hard fork change. Because API nodes running older versions won't return the new field, connecting a new CLI wallet to an old API node won't work (see https://github.com/bitshares/bitshares-core/issues/1307 for an example). Making the change along with a protocol upgrade release will guarantee that all API nodes will be running the new version.

Other client applications should update similarly.

Impacts Describe which portion(s) of BitShares Core may be impacted by your request. Please tick at least one box.

CORE TEAM TASK LIST

abitmore commented 1 year ago

Done via #2644.