Closed antiochp closed 6 years ago
Mmmh they're set by the miner here:
And checked by the blockchain validation pipeline:
Or did I misunderstand your question?
Oh I see it now -
We call block.validate()
before we set the sumtree roots.
I had some debug logging in the block.validate()
and was really surprised to see the roots zeroed out (they just hadn't been set yet).
We default the "roots" to
ZERO_HASH
inBlockHeader::new()
-And we never update them to anything.
Q) Should we be setting these somewhere? Maybe more importantly - should we be verifying them somewhere?