bitshares / bitshares-core

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

Add block_time and is_virtual fields to operation_history_object #2642

Closed abitmore closed 1 year ago

abitmore commented 1 year ago

PR for #487 (note: this PR depends on #2639).

Note: this triggers auto-replay.

Adds 2 fields to operation_history_object

   class operation_history_object : public abstract_object<operation_history_object>
   {
         operation         op;
         operation_result  result;
         /** the block that caused this operation */
         uint32_t          block_num = 0;
         /** the transaction in the block */
         uint16_t          trx_in_block = 0;
         /** the operation within the transaction */
         uint16_t          op_in_trx = 0;
         /** any virtual operations implied by operation in block */
         uint32_t          virtual_op = 0;
         /** Whether this is a virtual operation */
         bool              is_virtual = false;
         /** The timestamp of the block that caused this operation */
         time_point_sec    block_time;
   };
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication