mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-29 07:07:16 +00:00
fd77eaf86a
* 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.
8 lines
124 B
Go
8 lines
124 B
Go
package state
|
|
|
|
import "bytes"
|
|
|
|
func cleanUpTrailingZeroes(value []byte) []byte {
|
|
return bytes.TrimLeft(value[:], "\x00")
|
|
}
|