Modifying constructor for validator-state structures.
(change-validator-state x [:round <round>] [:dag <dag>] [:buffer <buffer>] [:endorsed <endorsed>] [:last <last>] [:blockchain <blockchain>] [:committed <committed>] [:timer <timer>])
This is an often useful alternative to make-validator-state.
We construct a new validator-state structure that is a copy of
This is an ordinary
Macro:
(defmacro change-validator-state (x &rest args) (std::change-aggregate 'validator-state x args '((:round . validator-state->round) (:dag . validator-state->dag) (:buffer . validator-state->buffer) (:endorsed . validator-state->endorsed) (:last . validator-state->last) (:blockchain . validator-state->blockchain) (:committed . validator-state->committed) (:timer . validator-state->timer)) 'change-validator-state 'nil))