@cryptotaxi247 / kubo / commits / 0d059a388

change block datastore prefix to "/b"

the prefix should be as short as possible, as this is a per-block overhead.

Juan Batiz-Benet committed Jan 11, 2015 at 19:33 UTC 0d059a3881aff3a95c276d235659d8ace11ae8e1
1 file changed +1 -1
blocks/blockstore/blockstore.go
+1 -1
@@ -19,7 +19,7 @@ import (
19 var log = eventlog.Logger("blockstore")
20
21 // BlockPrefix namespaces blockstore datastores
22 -var BlockPrefix = ds.NewKey("blocks")
22 +var BlockPrefix = ds.NewKey("b")
23
24 var ValueTypeMismatch = errors.New("The retrieved value is not a Block")
25