AntelopeIO / leap

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

Increment `finalizer_policy`'s `generation` when `set_finalizers` is executed. #2388

Closed greg7mdp closed 2 months ago

greg7mdp commented 2 months ago

Resolves #2345

The finalizer_policy struct in contracts does not have a generation member. In this PR, when the set_finalizers host function is executed, we increment the generation number of the finalizer_policy to the the active policy generation number plus one.