Open greymistcube opened 1 month ago
To be able to "read" PoW Blocks.
In post-sloth, IMO, we don't need able to read old PoW
blocks.
After sloth, we can easily cut out the block's height and It does not make lower chain security.
So, instead of being able to read PoW
blocks, how about a re-genesis on the NineChronicles and drop out old blocks?
Several things:
Block
s (and evaluations) and this is making a refactoring of API nearly impossible.
There is no real code path that is actually taken within
IActionEvaluator
for past PoWBlock
s.Block
, the unit tests can't be really considered proper.That is, we are dragging along what is essentially a dead piece of code more for show (and our own emotional comfort) but not for real substance. However, the following two functionalities must be kept.
Block
s.Block
bypasses numerous validations and the saidBlock
is not read in full (becauseDifficulty
related properties are discarded).[^1]Block
s in lib9c and above.In order to do so,
IActionEvaluator
, i.e.ActionEvaluator
, to be able to evaluate a PoWBlock
.Append()
for a PoWBlock
.Block
s.[^1]: Note that write is not part of the spec, as this is no longer possible.