Skip to content

Commit

Permalink
GH-5 Use uint16_t for index type of diff since max_finalizers fit
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed May 8, 2024
1 parent ad7e9a7 commit 7495f2a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

namespace eosio::chain {

using finalizers_differ = fc::ordered_diff<finalizer_authority>;
using finalizers_diff_t = fc::ordered_diff<finalizer_authority>::diff_result;
static_assert(std::numeric_limits<uint16_t>::max() <= config::max_finalizers);
using finalizers_differ = fc::ordered_diff<finalizer_authority, uint16_t>;
using finalizers_diff_t = finalizers_differ::diff_result;

struct finalizer_policy_diff {
uint32_t generation = 0; ///< sequentially incrementing version number
Expand Down

0 comments on commit 7495f2a

Please sign in to comment.