erigon-pulse/core/state/util.go
Igor Mandrigin fd77eaf86a
Staged Sync: Execution phase should use "plain state" (#548)
* introduce PlainStateReader with fallbacks

* no 10.000 changes in tests

* even less iterations

* remove even more iterations

* add `go run ./cmd/geth --syncmode staged --plainstate` flag

* fix serialization calls

* make a more sensible file default

doesn’t affect anything, because this flag is always overriden when parsing CLI. but still.
2020-05-15 08:52:45 +01:00

8 lines
124 B
Go

package state
import "bytes"
func cleanUpTrailingZeroes(value []byte) []byte {
return bytes.TrimLeft(value[:], "\x00")
}