Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
before(done => {
delegates = library.rewiredModules.delegates.__get__('self');
__private = library.rewiredModules.delegates.__get__('__private');
genesis1Keypair = lisk.getPrivateAndPublicKeyBytesFromPassphrase(
genesis1.passphrase
);
genesis2Keypair = lisk.getPrivateAndPublicKeyBytesFromPassphrase(
genesis2.passphrase
);
genesis3Keypair = lisk.getPrivateAndPublicKeyBytesFromPassphrase(
genesis3.passphrase
);
__private.keypairs = {};
__private.keypairs[genesis1.publicKey] = genesis1Keypair;
__private.keypairs[genesis2.publicKey] = genesis2Keypair;
__private.keypairs[genesis3.publicKey] = genesis3Keypair;
originalGenerateDelegateList = delegates.generateDelegateList;
before(done => {
delegates = library.rewiredModules.delegates.__get__('self');
__private = library.rewiredModules.delegates.__get__('__private');
genesis1Keypair = lisk.getPrivateAndPublicKeyBytesFromPassphrase(
genesis1.passphrase
);
genesis2Keypair = lisk.getPrivateAndPublicKeyBytesFromPassphrase(
genesis2.passphrase
);
genesis3Keypair = lisk.getPrivateAndPublicKeyBytesFromPassphrase(
genesis3.passphrase
);
__private.keypairs = {};
__private.keypairs[genesis1.publicKey] = genesis1Keypair;
__private.keypairs[genesis2.publicKey] = genesis2Keypair;
__private.keypairs[genesis3.publicKey] = genesis3Keypair;
originalGenerateDelegateList = delegates.generateDelegateList;
done();
});
before(done => {
delegates = library.rewiredModules.delegates.__get__('self');
__private = library.rewiredModules.delegates.__get__('__private');
genesis1Keypair = lisk.getPrivateAndPublicKeyBytesFromPassphrase(
genesis1.passphrase
);
genesis2Keypair = lisk.getPrivateAndPublicKeyBytesFromPassphrase(
genesis2.passphrase
);
genesis3Keypair = lisk.getPrivateAndPublicKeyBytesFromPassphrase(
genesis3.passphrase
);
__private.keypairs = {};
__private.keypairs[genesis1.publicKey] = genesis1Keypair;
__private.keypairs[genesis2.publicKey] = genesis2Keypair;
__private.keypairs[genesis3.publicKey] = genesis3Keypair;
originalGenerateDelegateList = delegates.generateDelegateList;
done();
});