forked from TrueCloudLab/neoneo-go
9673a04009
Problem: with StateRootInHeader setting on only one header of height N+1 can be added to the chain of height N, because we need local stateroot to verify headers (which is calculated for the last stored block N). Thus, adding chunk of headers starting from the current chain's heigh is impossible and (*Blockchain).AddHeaders doesn't have much sense. Solution: verify header.PrevStateRoot only for header N+1. Rest of the headers should be added without PrevStateRoot verification. |
||
---|---|---|
.. | ||
callbacks.go | ||
module.go | ||
prometheus.go | ||
store.go | ||
validators.go |