don't loose nil value

This commit is contained in:
alex.sharov 2023-03-16 10:22:53 +07:00
parent e143f7756f
commit dc740cdf9d

View File

@ -207,6 +207,11 @@ func (c *Collector) Load(db kv.RwTx, toBucket string, loadFunc LoadFunc, args Tr
}
return nil
}
if bucket == "PlainState" {
if len(v) == 0 {
fmt.Printf("etl load: empty val: %x, %x, %d, %t\n", k, v, c.bufType, v == nil)
}
}
if canUseAppend {
if isDupSort {
if err := cursor.(kv.RwCursorDupSort).AppendDup(k, v); err != nil {