hyper-multisig-cli 1.6.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.js +8 -7
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -101,7 +101,7 @@ async function request() {
|
|
|
101
101
|
const { force, peerUpdateTimeout } = cmdRequest.flags
|
|
102
102
|
if (!length) throw new Error('Invalid command')
|
|
103
103
|
|
|
104
|
-
const { type, publicKeys, namespace, srcKey, quorum, store, swarm } = await setup()
|
|
104
|
+
const { type, publicKeys, namespace, srcKey, quorum, legacy, store, swarm } = await setup()
|
|
105
105
|
const multisig = new Multisig(store, swarm)
|
|
106
106
|
|
|
107
107
|
let request
|
|
@@ -112,7 +112,7 @@ async function request() {
|
|
|
112
112
|
force,
|
|
113
113
|
peerUpdateTimeout: peerUpdateTimeout,
|
|
114
114
|
quorum,
|
|
115
|
-
legacy
|
|
115
|
+
legacy // legacy requests compat with hypercore-sign v3
|
|
116
116
|
})
|
|
117
117
|
.done()
|
|
118
118
|
request = res.request
|
|
@@ -122,7 +122,7 @@ async function request() {
|
|
|
122
122
|
force,
|
|
123
123
|
peerUpdateTimeout: peerUpdateTimeout,
|
|
124
124
|
quorum,
|
|
125
|
-
legacy
|
|
125
|
+
legacy // legacy requests compat with hypercore-sign v3
|
|
126
126
|
})
|
|
127
127
|
|
|
128
128
|
req.on('getting-src-blobs', () => {
|
|
@@ -413,7 +413,7 @@ async function setup(opts = {}) {
|
|
|
413
413
|
|
|
414
414
|
const { withReplication = true } = opts
|
|
415
415
|
|
|
416
|
-
const { type, publicKeys, namespace, srcKey, bootstrap, quorum } = await loadConfig(
|
|
416
|
+
const { type, publicKeys, namespace, srcKey, bootstrap, quorum, legacy } = await loadConfig(
|
|
417
417
|
configPath,
|
|
418
418
|
opts
|
|
419
419
|
)
|
|
@@ -425,7 +425,7 @@ async function setup(opts = {}) {
|
|
|
425
425
|
swarm = res.swarm
|
|
426
426
|
}
|
|
427
427
|
|
|
428
|
-
return { type, publicKeys, namespace, srcKey, quorum, store, swarm }
|
|
428
|
+
return { type, publicKeys, namespace, srcKey, quorum, legacy, store, swarm }
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
/**
|
|
@@ -439,7 +439,8 @@ async function loadConfig(configPath, opts = {}) {
|
|
|
439
439
|
srcKey,
|
|
440
440
|
bootstrap,
|
|
441
441
|
quorum = null,
|
|
442
|
-
multisigKey = null
|
|
442
|
+
multisigKey = null,
|
|
443
|
+
legacy = true
|
|
443
444
|
} = JSON.parse(await fs.readFile(configPath, 'utf-8'))
|
|
444
445
|
|
|
445
446
|
const { srcKeyRequired = true } = opts
|
|
@@ -469,7 +470,7 @@ async function loadConfig(configPath, opts = {}) {
|
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
472
|
|
|
472
|
-
return { type, publicKeys, namespace, srcKey, bootstrap, quorum }
|
|
473
|
+
return { type, publicKeys, namespace, srcKey, bootstrap, quorum, legacy }
|
|
473
474
|
}
|
|
474
475
|
|
|
475
476
|
/**
|