AntelopeIO / leap

C++ implementation of the Antelope protocol
Other
113 stars 69 forks source link

IF: Use enum to track which action receipt digest to calculate #2329

Closed heifner closed 3 months ago

heifner commented 3 months ago

Suggested alternative for tacking which digest to caculate. Even better I think would be to create:

struct action_receipt_digests {
   enum class store_action_digests { legacy, savanna, both };
   // add() etc
   store_action_digests          action_digests_to_store;
   std::optional<digests_t>      executed_action_receipt_digests_l;
   std::optional<digests_t>      executed_action_receipt_digests_s;
};
heifner commented 3 months ago

struct was added.

ericpassmore commented 3 months ago

Note:start group: IF category: INTERNALS summary: Improve digest tracking using enums. Note:end