hyper-multisig-cli 1.6.0 → 1.6.1
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 +9 -5
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -29,6 +29,8 @@ const cmdRequest = command(
|
|
|
29
29
|
const cmdVerify = command(
|
|
30
30
|
'verify',
|
|
31
31
|
description('Verify multisig'),
|
|
32
|
+
flag('--start <start>', 'Start length'),
|
|
33
|
+
flag('--blobs-start <blobsStart>', 'Blobs start length'),
|
|
32
34
|
flag(
|
|
33
35
|
'--first-commit',
|
|
34
36
|
'Set when this is the first commit to the multisig target, so it skips those checks'
|
|
@@ -141,7 +143,8 @@ async function request() {
|
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
async function verify() {
|
|
144
|
-
const { firstCommit, peerUpdateTimeout, skipTargetWellSeeded } =
|
|
146
|
+
const { start, blobsStart, firstCommit, peerUpdateTimeout, skipTargetWellSeeded } =
|
|
147
|
+
cmdVerify.flags
|
|
145
148
|
const request = cmdVerify.args.request
|
|
146
149
|
const responses = cmdVerify.rest || []
|
|
147
150
|
if (!request) throw new Error('Invalid command')
|
|
@@ -154,8 +157,8 @@ async function verify() {
|
|
|
154
157
|
let runner
|
|
155
158
|
if (type === 'core') {
|
|
156
159
|
const srcCore = store.get({ key: idEnc.decode(srcKey) })
|
|
157
|
-
runner = multisig.
|
|
158
|
-
|
|
160
|
+
runner = multisig.verifyCore(publicKeys, namespace, srcCore, request, responses, {
|
|
161
|
+
start,
|
|
159
162
|
skipTargetChecks: firstCommit,
|
|
160
163
|
skipTargetWellSeeded,
|
|
161
164
|
peerUpdateTimeout: peerUpdateTimeout,
|
|
@@ -164,8 +167,9 @@ async function verify() {
|
|
|
164
167
|
})
|
|
165
168
|
} else {
|
|
166
169
|
const srcDrive = new Hyperdrive(store, idEnc.decode(srcKey))
|
|
167
|
-
runner = multisig.
|
|
168
|
-
|
|
170
|
+
runner = multisig.verifyDrive(publicKeys, namespace, srcDrive, request, responses, {
|
|
171
|
+
start,
|
|
172
|
+
blobsStart,
|
|
169
173
|
skipTargetChecks: firstCommit,
|
|
170
174
|
skipTargetWellSeeded,
|
|
171
175
|
peerUpdateTimeout: peerUpdateTimeout,
|