Explorar el Código

ethdb: reset the batch size too on reset

Péter Szilágyi hace 7 años
padre
commit
3e89b80ccb
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      ethdb/database.go

+ 1 - 0
ethdb/database.go

@@ -301,6 +301,7 @@ func (b *ldbBatch) ValueSize() int {
 
 func (b *ldbBatch) Reset() {
 	b.b.Reset()
+	b.size = 0
 }
 
 type table struct {