hyper-multisig 0.1.0 → 0.1.2
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/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -143,7 +143,7 @@ class HyperMultisig {
|
|
|
143
143
|
const { length } = SignRequest.decode(z32.decode(request))
|
|
144
144
|
|
|
145
145
|
if (!force) {
|
|
146
|
-
runner.emit('verify-committable-start')
|
|
146
|
+
runner.emit('verify-committable-start', srcCore.key, core.key)
|
|
147
147
|
await MultisigUtil.verifyCoreCommittable(srcCore, core, length, {
|
|
148
148
|
skipTargetChecks,
|
|
149
149
|
peerUpdateTimeout
|
|
@@ -174,7 +174,7 @@ class HyperMultisig {
|
|
|
174
174
|
commit: !dryRun
|
|
175
175
|
})
|
|
176
176
|
|
|
177
|
-
if (!force) {
|
|
177
|
+
if (!force && !dryRun) {
|
|
178
178
|
runner.emit('verify-committed-start', core.key)
|
|
179
179
|
await MultisigUtil.verifyCoreCommitted(core, { minPeers: minFullCopies })
|
|
180
180
|
}
|
|
@@ -211,7 +211,7 @@ class HyperMultisig {
|
|
|
211
211
|
const blobsLength = content.length
|
|
212
212
|
|
|
213
213
|
if (!force) {
|
|
214
|
-
runner.emit('verify-committable-start')
|
|
214
|
+
runner.emit('verify-committable-start', srcDrive.db.core.key, core.key)
|
|
215
215
|
await MultisigUtil.verifyCoreCommittable(srcDrive.db.core, core, length, {
|
|
216
216
|
skipTargetChecks,
|
|
217
217
|
peerUpdateTimeout,
|
|
@@ -255,7 +255,7 @@ class HyperMultisig {
|
|
|
255
255
|
{ end: length, blobsEnd: blobsLength, commit: !dryRun }
|
|
256
256
|
)
|
|
257
257
|
|
|
258
|
-
if (!force) {
|
|
258
|
+
if (!force && !dryRun) {
|
|
259
259
|
runner.emit('verify-committed-start', core.key)
|
|
260
260
|
await MultisigUtil.verifyCoreCommitted(core)
|
|
261
261
|
await MultisigUtil.verifyCoreCommitted(blobsCore)
|