neo-go/pkg/core/stateroot
Anna Shaleva 9673a04009 core: allow to add several headers with StateRootInHeader on
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.
2021-06-30 11:56:05 +03:00
..
callbacks.go stateroot: broadcast state on new blocks 2021-03-09 13:51:11 +03:00
module.go core: allow to add several headers with StateRootInHeader on 2021-06-30 11:56:05 +03:00
prometheus.go stateroot: move state-root related logic to core/stateroot 2021-03-09 13:48:29 +03:00
store.go stateroot: reject validated root if it doesn't match local one 2021-03-27 00:33:11 +03:00
validators.go stateroot: broadcast state on new blocks 2021-03-09 13:51:11 +03:00