`mining_in_logarithmic_space_constant_difficulty.py` specific issues
Optimization:
Could just copy.deepcopy
the blocks we actually change.
Correctness:
- missing
level_min
usage maybe involving multiple levels having more than2 * m
blocks. Could solve this issue by making acopy.deepcopy
inuparrow
settinglevel_min
but this seems heavy. Maybe there is no problem, as it's just blocks the latest m above blocks. Should verify if not updatinglevel_min
isn't problematic. It seems that with and withoutcopy.deepcopy
both compressed blockchains only start to differ at their last 100 blocks. Could useprint(hash(tuple(Π)))
to get the precise first difference height, but as I consider current code more correct, can just skip comparing with the previous one. - TODO: step-by-step
Edited by LOISON Benjamin