This check is not being activated which is causing the error.
After an investigation I could check that the iter_prefix_values, method used to get the active_recoveries, actually calls the next keys method, so I started doing some speculations and wrote few tests.
The problem happens when you insert few keys and values under a transaction
Describe the bug
Storage root must match that calculated
.remove_recovery
)This check is not being activated which is causing the error.
After an investigation I could check that the
iter_prefix_values
, method used to get theactive_recoveries
, actually calls thenext keys
method, so I started doing some speculations and wrote few tests.The problem happens when you insert few keys and values under a transaction
and if you try to get the next key it will return
nil
instead of a actual valid key