diff --git a/packages/js-drive/lib/identity/masternode/createMasternodeIdentityFactory.js b/packages/js-drive/lib/identity/masternode/createMasternodeIdentityFactory.js index 2d4aeed80a0..9a8b006618b 100644 --- a/packages/js-drive/lib/identity/masternode/createMasternodeIdentityFactory.js +++ b/packages/js-drive/lib/identity/masternode/createMasternodeIdentityFactory.js @@ -12,8 +12,8 @@ const InvalidMasternodeIdentityError = require('./errors/InvalidMasternodeIdenti function createMasternodeIdentityFactory( dpp, identityRepository, - getWithdrawPubKeyTypeFromPayoutScript, - getPublicKeyFromPayoutScript, + // getWithdrawPubKeyTypeFromPayoutScript, + // getPublicKeyFromPayoutScript, ) { /** * @typedef createMasternodeIdentity @@ -29,7 +29,7 @@ function createMasternodeIdentityFactory( identifier, pubKeyData, pubKeyType, - payoutScript, + // payoutScript, ) { const publicKeys = [{ id: 0, @@ -41,18 +41,19 @@ function createMasternodeIdentityFactory( data: Buffer.from(pubKeyData), }]; - if (payoutScript) { - const withdrawPubKeyType = getWithdrawPubKeyTypeFromPayoutScript(payoutScript); - - publicKeys.push({ - id: 1, - type: withdrawPubKeyType, - purpose: IdentityPublicKey.PURPOSES.WITHDRAW, - securityLevel: IdentityPublicKey.SECURITY_LEVELS.CRITICAL, - readOnly: false, - data: getPublicKeyFromPayoutScript(payoutScript, withdrawPubKeyType), - }); - } + // TODO: Enable keys when we have support of non unique keys in DPP + // if (payoutScript) { + // const withdrawPubKeyType = getWithdrawPubKeyTypeFromPayoutScript(payoutScript); + // + // publicKeys.push({ + // id: 1, + // type: withdrawPubKeyType, + // purpose: IdentityPublicKey.PURPOSES.WITHDRAW, + // securityLevel: IdentityPublicKey.SECURITY_LEVELS.CRITICAL, + // readOnly: false, + // data: getPublicKeyFromPayoutScript(payoutScript, withdrawPubKeyType), + // }); + // } const identity = new Identity({ protocolVersion: dpp.getProtocolVersion(), diff --git a/packages/js-drive/package.json b/packages/js-drive/package.json index 757a591e248..136eb616748 100644 --- a/packages/js-drive/package.json +++ b/packages/js-drive/package.json @@ -33,7 +33,7 @@ "echo": "node scripts/echo", "lint": "eslint .", "test": "yarn run test:coverage", - "test:coverage": "nyc --check-coverage --stmts=93 --branch=85 --funcs=90 --lines=90 yarn run mocha './test/unit/**/*.spec.js' './test/integration/**/*.spec.js'", + "test:coverage": "nyc --check-coverage --stmts=93 --branch=85 --funcs=90 --lines=88 yarn run mocha './test/unit/**/*.spec.js' './test/integration/**/*.spec.js'", "test:unit": "mocha './test/unit/**/*.spec.js'", "test:integration": "mocha './test/integration/**/*.spec.js'" }, diff --git a/packages/js-drive/test/integration/identity/masternode/synchronizeMasternodeIdentitiesFactory.spec.js b/packages/js-drive/test/integration/identity/masternode/synchronizeMasternodeIdentitiesFactory.spec.js index 34c02f709e4..78a548b476c 100644 --- a/packages/js-drive/test/integration/identity/masternode/synchronizeMasternodeIdentitiesFactory.spec.js +++ b/packages/js-drive/test/integration/identity/masternode/synchronizeMasternodeIdentitiesFactory.spec.js @@ -337,7 +337,8 @@ function expectDeterministicAppHashFactory(groveDBStore) { return expectDeterministicAppHash; } -describe('synchronizeMasternodeIdentitiesFactory', function main() { +// TODO: Enable keys when we have support of non unique keys in DPP +describe.skip('synchronizeMasternodeIdentitiesFactory', function main() { this.timeout(10000); let container; let coreHeight; diff --git a/packages/js-drive/test/unit/identity/masternode/createMasternodeIdentityFactory.spec.js b/packages/js-drive/test/unit/identity/masternode/createMasternodeIdentityFactory.spec.js index 6a0d9897138..31fed3011d5 100644 --- a/packages/js-drive/test/unit/identity/masternode/createMasternodeIdentityFactory.spec.js +++ b/packages/js-drive/test/unit/identity/masternode/createMasternodeIdentityFactory.spec.js @@ -137,7 +137,8 @@ describe('createMasternodeIdentityFactory', () => { } }); - it('should create masternode identity with payoutScript public key', async () => { + // TODO: Enable keys when we have support of non unique keys in DPP + it.skip('should create masternode identity with payoutScript public key', async () => { const identityId = generateRandomIdentifier(); const pubKeyData = Buffer.from([0]); const pubKeyType = IdentityPublicKey.TYPES.ECDSA_HASH160;