Skip to content

Commit 5870a24

Browse files
whizzzkidlidel
authored andcommitted
feat: ⬆️ Upgrade to cid-v1
1 parent b0dcad7 commit 5870a24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/daemon/config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const getGatewayPort = (config) => getHttpPort(config.Addresses.Gateway)
150150
*/
151151
function migrateConfig (ipfsd) {
152152
// Bump revision number when new migration rule is added
153-
const REVISION = 5
153+
const REVISION = 6
154154
const REVISION_KEY = 'daemonConfigRevision'
155155
const CURRENT_REVISION = store.get(REVISION_KEY, 0)
156156

@@ -231,6 +231,10 @@ function migrateConfig (ipfsd) {
231231
}
232232
}
233233

234+
if (CURRENT_REVISION < 6) {
235+
ipfsd.api.files.chcid('/', { cidVersion: 1 })
236+
}
237+
234238
if (changed) {
235239
try {
236240
writeConfigFile(ipfsd, config)

0 commit comments

Comments
 (0)