go-ipfs-config: core: Add config option for datastore read rehashing
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Jun 24, 2016 at 22:10 UTC
6135edf075f54b019b6cf04b79d84d6200a81e4a
1 file changed
+3
-2
config/datastore.go
+3
-2
@@ -15,8 +15,9 @@ type Datastore struct {
15
StorageGCWatermark int64 // in percentage to multiply on StorageMax
16
GCPeriod string // in ns, us, ms, s, m, h
17
18
- Params *json.RawMessage
19
- NoSync bool
18
+ Params *json.RawMessage
19
+ NoSync bool
20
+ HashOnRead bool
21
}
22
23
func (d *Datastore) ParamData() []byte {