conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
=======
describe('when storageStub.entities.Block.begin fails', () => {
beforeEach(async () => {
storageStub.entities.Block.begin.rejects(new Error('db-tx_ERR'));
});
it('should call a callback with proper error message', async () => {
try {
await blocksChainModule.popLastBlock(
... |
<<<<<<<
=======
this.blocksChain = new BlocksChain({
storage: this.storage,
interfaceAdapters: this.interfaceAdapters,
roundsModule: this.roundsModule,
dposModule: this.dposModule,
slots: this.slots,
exceptions: this.exceptions,
genesisBlock: this.genesisBlock,
});
>>>>>>> |
<<<<<<<
Migration: new Migration(adapter),
=======
Peer: new Peer(adapter),
Transaction: new Transaction(adapter),
>>>>>>>
Migration: new Migration(adapter),
Peer: new Peer(adapter),
Transaction: new Transaction(adapter), |
<<<<<<<
var getTransactionByIdPromise = node.Promise.promisify(getTransactionById);
=======
/**
* Validate if the validation response contains error for a specific param
*
* @param {object} res - Response object got from server
* @param {string} param - Param name to check
*/
function expectSwaggerParamError (re... |
<<<<<<<
if (appConfig.coverage) {
var im = require('istanbul-middleware');
logger.debug('Hook loader for coverage - do not use in production environment!');
im.hookLoader(__dirname);
app.use('/coverage', im.createHandler());
}
=======
if (appConfig.coverage) {
var im = require('istanbul-... |
<<<<<<<
class AccountsRepository {
constructor (db, pgp) {
=======
class AccountsRepo {
constructor(db, pgp) {
>>>>>>>
class AccountsRepository {
constructor (db, pgp) {
<<<<<<<
countMemAccounts () {
return this.db.one(sql.countMemAccounts, [], a => +a.count);
=======
countMemAccounts() {
return this.d... |
<<<<<<<
=======
const Rules = require('../../../../../../src/modules/chain/api/ws/workers/rules');
const {
registeredTransactions,
} = require('../../../../common/registered_transactions');
const InitTransaction = require('../../../../../../src/modules/chain/logic/init_transaction');
const initTransaction = new Ini... |
<<<<<<<
var transactionTypes = require('../../helpers/transactionTypes.js');
=======
var crypto = require('crypto');
var transactionTypes = require('../../helpers/transaction_types.js');
>>>>>>>
var transactionTypes = require('../../helpers/transaction_types.js'); |
<<<<<<<
const Promise = require('bluebird');
const lisk = require('lisk-elements').default;
const accountFixtures = require('../../../fixtures/accounts');
const constants = require('../../../../config/mainnet/constants');
const randomUtil = require('../../../common/utils/random');
const waitFor = require('../../../comm... |
<<<<<<<
scope.logic.block.bindModules(scope.modules);
=======
this.channel.subscribe('lisk:state:updated', event => {
Object.assign(scope.applicationState, event.data);
});
>>>>>>>
scope.logic.block.bindModules(scope.modules);
this.channel.subscribe('lisk:state:updated', event => {
Object.a... |
<<<<<<<
checkIfCan(['nlu-data:w', 'stories:w'], projectId);
=======
>>>>>>>
checkIfCan(['nlu-data:w', 'stories:w'], projectId);
<<<<<<<
checkIfCan('nlu-data:w', getProjectIdFromModelId(modelId));
=======
>>>>>>>
checkIfCan('nlu-data:w', getProjectIdFromModelId(modelId));
<<<<<<<
... |
<<<<<<<
const _ = require('lodash');
const ip = require('ip');
const wsRPC = require('../api/ws/rpc/ws_rpc').wsRPC;
=======
const _ = require('lodash');
const ip = require('ip');
>>>>>>>
const _ = require('lodash');
const ip = require('ip');
<<<<<<<
=======
/**
* Normalizes headers.
*
* @param {Object} headers... |
<<<<<<<
library.storage.entities.Block.count({}, t),
library.storage.entities.Block.get({ height: 1 }, {}, t),
library.storage.entities.Round.getUniqueRounds(),
t.delegates.countDuplicatedDelegates(),
=======
t.blocks.count(),
t.blocks.getGenesisBlock(),
library.storage.entities.Round.getUniqueRo... |
<<<<<<<
var removeSpy;
var auxValidNonce;
=======
let removeSpy;
let validNonce;
>>>>>>>
let removeSpy;
let auxValidNonce;
<<<<<<<
for (var j = 0; j < 10; j++) {
var auxBlock = new Block();
blocksList.push(auxBlock);
=======
for (let j = 0; j < 10; j++) {
const block = ne... |
<<<<<<<
const {
uploadImage, deleteImage, uploadImageValidator, deleteImageValidator,
} = require('./images');
const {
restartRasa, restartRasaValidator,
} = require('./webhooks');
=======
const { version } = require('../package-lock.json')
>>>>>>>
const {
uploadImage, deleteImage, uploadImageValidator, ... |
<<<<<<<
const {
lookupPeerIPs,
createHttpServer,
createBus,
bootstrapStorage,
bootstrapCache,
createSocketCluster,
initLogicStructure,
initModules,
attachSwagger,
} = require('./init_steps');
=======
const { createSystemComponent } = require('../../components/system');
>>>>>>>
const { createSystemComponent ... |
<<<<<<<
// Transactions to rewind in case of error.
let appliedTransactions = {};
const undoUnconfirmedListStep = function(tx) {
return new Promise((resolve, reject) => {
modules.transactions.undoUnconfirmedList(err => {
if (err) {
// Fatal error, memory tables will be inconsistent
library.logger... |
<<<<<<<
const constants = require('../../../../../../framework/src/controller/schema/constants_schema');
const configurator = require('../../../../../src/controller/helpers/configurator');
=======
>>>>>>>
<<<<<<<
beforeEach(() => {
// Mock the method and return what ever came as parameter
configurator.getCo... |
<<<<<<<
if (modules.loader.syncing()) {
return setImmediate(cb);
}
const unconfirmedCount = self.countUnconfirmed();
=======
var unconfirmedCount = self.countUnconfirmed();
>>>>>>>
const unconfirmedCount = self.countUnconfirmed(); |
<<<<<<<
// TODO: Will be fixed in separate PR
// eslint-disable-next-line import/no-unresolved
const configSchema = require('../schema/config.js');
const Z_schema = require('./z_schema.js');
const deepFreeze = require('./deep_freeze_object.js');
=======
const configSchema = require('../schema/config');
const { ZSchem... |
<<<<<<<
const constants = require('../../helpers/constants.js');
const bignum = require('../../helpers/bignum.js');
=======
>>>>>>>
const bignum = require('../../helpers/bignum.js'); |
<<<<<<<
export const getAllTemplates = (projectId, language = '') => {
=======
const getAllTemplates = async (projectId, language = '') => {
>>>>>>>
export const getAllTemplates = async (projectId, language = '') => { |
<<<<<<<
if (__private.loaded && !self.syncing() && modules.blocks.lastReceipt.isStale()) {
library.sequence.add(function (sequenceCb) {
__private.sync(sequenceCb);
}, function (err) {
if (err) {
library.logger.error('Sync timer', err);
=======
if (
__private.loaded &&
!self.syncing() &&
... |
<<<<<<<
getActiveDelegatesForRound: jest
.fn()
.mockReturnValue(delegatePublicKeys),
},
Round: {
=======
getRoundDelegates: jest.fn().mockReturnValue(delegatePublicKeys),
>>>>>>>
getActiveDelegatesForRound: jest
.fn()
.mockReturnValue(delegatePublicKeys), |
<<<<<<<
const constants = require('../../../../../../framework/src/controller/schema/constants');
const applicationSchema = require('../../../../../src/controller/schema/application');
const constantsSchema = require('../../../../../src/controller/schema/constants');
=======
const configurator = require('../../../../... |
<<<<<<<
let txPool;
beforeEach(async () => {
sinonSandbox.spy(ProcessTransactions, 'composeProcessTransactionSteps');
txPool = new TransactionPool(
config.broadcasts.broadcastInterval,
config.broadcasts.releaseLimit,
=======
it('should create pool instance', async () => {
const tp = new Transac... |
<<<<<<<
conversation._id,
(event) => event.timestamp > oldestImport,
=======
(event) => event.timestamp > latestImport,
>>>>>>>
conversation._id,
(event) => event.timestamp > latestImport, |
<<<<<<<
=======
if (scope.config.network.enabled) {
// Lookup for peers ips from dns
scope.config.network.list = await lookupPeerIPs(
scope.config.network.list,
scope.config.network.enabled
);
// Listen to websockets
scope.webSocket = await createSocketCluster(scope);
await scope... |
<<<<<<<
this.registerModule(HttpAPIModule);
this.registerModule(NetworkModule, this.config.modules.network);
=======
this.registerModule(HttpAPIModule, {
constants: this.constants,
loadAsChildProcess: childProcessModules.includes(HttpAPIModule.alias),
});
>>>>>>>
this.registerModule(NetworkModule, ... |
<<<<<<<
const transactionTypes = require('../../helpers/transaction_types.js');
=======
const constants = require('../../helpers/constants.js');
>>>>>>>
const transactionTypes = require('../../helpers/transaction_types.js');
<<<<<<<
// Sort block's transactions
block.transactions = block.transactions.sort(a =... |
<<<<<<<
var constants = require('../../../helpers/constants');
var bignum = require('../../../helpers/bignum.js');
=======
const constants = require('../../../config/mainnet/constants');
>>>>>>>
var bignum = require('../../../helpers/bignum.js');
const constants = require('../../../config/mainnet/constants'); |
<<<<<<<
var RoundChanges = require('../helpers/round_changes.js');
=======
var RoundChanges = require('../helpers/RoundChanges.js');
var Promise = require('bluebird');
>>>>>>>
var RoundChanges = require('../helpers/round_changes.js');
var Promise = require('bluebird'); |
<<<<<<<
var transfer1 = lisk.transaction.transfer({
=======
const transaction = lisk.transaction.transfer({
>>>>>>>
const transfer1 = lisk.transaction.transfer({
<<<<<<<
var transfer2 = lisk.transaction.transfer({
=======
const transaction = lisk.transaction.transfer({
>>>>>>>
const... |
<<<<<<<
* Get round information from mem tables
* @return {Promise}
*/
getMemRounds() {
=======
* Get round information from mem tables.
*
* @return {Promise}
*/
getMemRounds () {
>>>>>>>
* Get round information from mem tables.
*
* @return {Promise}
*/
getMemRounds() {
<<<<<<<
* Remove a pa... |
<<<<<<<
var constants = require('../../../../../helpers/constants');
const bignum = require('../../../../../helpers/bignum.js');
=======
const constants = global.constants;
>>>>>>>
const bignum = require('../../../../../helpers/bignum.js');
const constants = global.constants; |
<<<<<<<
requester: keypair,
secondKeypair: secondKeypair,
data: req.body.data
=======
secondKeypair: secondKeypair
>>>>>>>
secondKeypair: secondKeypair,
data: req.body.data
<<<<<<<
});
} else {
modules.accounts.setAccountAndGet({publicKey: keypair.... |
<<<<<<<
describe('createTables', function () {
it('should create the tables', function (done) {
accountLogic.createTables(function (err, res) {
expect(err).to.not.exist;
expect(res).to.be.undefined;
done();
});
});
});
describe('removeTables', function () {
=======
describe('resetMemTables'... |
<<<<<<<
if (!appConfig.api.enabled) {
return cb();
}
return scope.network.server.listen(
=======
// Security vulnerabilities fixed by Node v8.14.0 - "Slowloris (cve-2018-12122)"
scope.network.server.headersTimeout =
appConfig.api.options.limits.headersTimeout;
// Disconnect ... |
<<<<<<<
=======
describe('#generateAccount', () => {
const expectedRessult = {
privateKey:
'7683ba873c5e5aa6c12df564a60a93a519e2a5682cf5358a6a5b9ccc70607e96d803281f421e35ca585682829119c270a094fa9a1da2edc3dd65a3dc0dc46497',
publicKey: 'd803281f421e35ca585682829119c270a094fa9a1da2edc3dd65a3dc0dc46497',
}... |
<<<<<<<
=======
applicationState,
registeredTransactions,
>>>>>>>
registeredTransactions,
<<<<<<<
const Transaction = require('../logic/transaction');
const Block = require('../logic/block');
const Account = require('../logic/account');
=======
const InitTransaction = require('../logic/init_transaction.js'... |
<<<<<<<
const { FEES } = __testContext.config.constants;
=======
const constants = __testContext.config.constants;
const exceptions = __testContext.config.exceptions;
>>>>>>>
const { FEES } = __testContext.config.constants;
const exceptions = __testContext.config.exceptions; |
<<<<<<<
{ chain: require('@liskhq/lisk-chain') },
{ loader: require('../../../src/application/node/loader') },
=======
{ blocks: require('@liskhq/lisk-blocks') },
>>>>>>>
{ chain: require('@liskhq/lisk-chain') }, |
<<<<<<<
var apiCodes = require('../../helpers/apiCodes.js');
var ApiError = require('../../helpers/apiError.js');
=======
var apiCodes = require('../../helpers/api_codes.js');
var ApiError = require('../../helpers/api_error.js');
var blockReward = require('../../logic/block_reward.js');
var constants = require('../..... |
<<<<<<<
const { Status: TransactionStatus } = require('@liskhq/lisk-transactions');
const slots = require('../../helpers/slots.js');
=======
const slots = require('../../helpers/slots');
>>>>>>>
const { Status: TransactionStatus } = require('@liskhq/lisk-transactions');
const slots = require('../../helpers/slots'); |
<<<<<<<
this.subSocket.once(eventName, data => {
setImmediate(cb, data);
=======
this.subSocket.on(eventName, data => {
cb(data);
>>>>>>>
this.subSocket.once(eventName, data => {
cb(data);
<<<<<<<
this.subSocket.sock.once(eventName, data => {
setImmediate(cb, data);
=======
// TODO:... |
<<<<<<<
(everyTransaction, callback) => {
var filter = {
id: everyTransaction.id,
=======
(transaction, callback) => {
const filter = {
id: transaction.id,
>>>>>>>
(everyTransaction, callback) => {
const filter = {
id: everyTransaction.id,
<<<<<<<
(everyTransaction, ... |
<<<<<<<
processorModule,
roundsModule,
=======
dposModule,
>>>>>>>
processorModule,
dposModule,
<<<<<<<
this.processorModule = processorModule;
this.roundsModule = roundsModule;
=======
this.dposModule = dposModule;
>>>>>>>
this.processorModule = processorModule;
this.dposModule = dposModul... |
<<<<<<<
forging: {
waitThreshold: 2,
},
=======
transactions: {
maxTransactionsPerQueue: 1000,
},
>>>>>>>
forging: {
waitThreshold: 2,
},
transactions: {
maxTransactionsPerQueue: 1000,
}, |
<<<<<<<
'mem_round',
'rounds_rewards',
=======
'peers',
>>>>>>>
'mem_round',
'rounds_rewards',
'peers', |
<<<<<<<
const constants = require('../helpers/constants.js');
const bignum = require('../helpers/bignum.js');
=======
>>>>>>>
const bignum = require('../helpers/bignum.js'); |
<<<<<<<
const networkHeight = await library.channel.invoke(
'chain:getNetworkHeight',
{
options: {
normalized: false,
},
}
);
const { height, broadhash } = library.applicationState;
const consensus =
(await library.channel.invoke('chain:getLastConsensus')) || 0;
const loaded = await... |
<<<<<<<
import { checkIfCan } from '../roles/roles';
import { ActivityCollection } from '../activity';
import { Deployments } from '../deployment/deployment.collection';
=======
import Activity from '../graphql/activity/activity.model';
>>>>>>>
import { checkIfCan } from '../roles/roles';
import { Deployments } from... |
<<<<<<<
var check = blocksVerify.verifyBlock(invalidBlock);
expect(check).to.equal(['Invalid block reward:', invalidBlock.reward, 'expected:', validBlock1.reward].join(' '));
done();
=======
blocksVerify.verifyBlock(invalidBlock, function (err) {
expect(err).to.equal(['Invalid block reward:', invalidB... |
<<<<<<<
* Validate Block Slot - Validates if block generator is valid delegate.
*
* @private
* @async
* @method validateBlockSlot
* @param {Object} block Full normalized block
* @param {Object} lastBlock Full normalized block
* @param {Function} cb Callback function
*/
__private.validateBlockSlot = functio... |
<<<<<<<
=======
var Bignum = require('../../../helpers/bignum.js');
var Vote = require('../../../logic/vote');
>>>>>>>
var Bignum = require('../../../helpers/bignum.js');
var Vote = require('../../../logic/vote'); |
<<<<<<<
=======
// Public methods
/**
* Checks if private constant syncIntervalId has value.
*
* @returns {boolean} True if syncIntervalId has value
*/
Loader.prototype.syncing = function() {
return !!__private.syncIntervalId;
};
/**
* Checks if `modules` is loaded.
*
* @returns {boolean} True if `modules` ... |
<<<<<<<
var busMessage = get('library.bus.message');
expect(busMessage.calledOnce).to.be.true;
return expect(busMessage.calledWith('finishRound', roundScope.round))
.to.be.true;
=======
const bus = get('library.bus.message');
expect(bus.calledOnce).to.be.true;
return expect(bus.cal... |
<<<<<<<
export function theSecondPassphraseIsProvidedViaStdIn() {
const { passphrase, secondPassphrase } = this.test.ctx;
inputUtils.getStdIn.resolves({ passphrase, data: secondPassphrase });
inputUtils.getPassphrase.onSecondCall().resolves(secondPassphrase);
}
export function thePassphraseAndTheSecondPassphraseAr... |
<<<<<<<
importTest("transactions newCrypto", './transactions/crypto/index.js');
=======
importTest("api", './api/liskApi.js');
importTest("api", './api/parseTransaction.js');
>>>>>>>
importTest("transactions newCrypto", './transactions/crypto/index.js');
importTest("api", './api/liskApi.js');
importTest("api"... |
<<<<<<<
import { check } from 'meteor/check';
import { can, checkIfCan } from '../../lib/scopes';
=======
import { can } from '../../lib/scopes';
import { GlobalSettingsSchema } from './globalSettings.schema';
>>>>>>>
import { can } from '../../lib/scopes';
import { GlobalSettingsSchema } from './globalSettings.sch... |
<<<<<<<
promises.push(creditAccountPromise(account.address, 1000 * node.normalizer));
promises.push(creditAccountPromise(accountMinimalFunds.address, constants.fees.secondsignature));
promises.push(creditAccountPromise(accountNoSecondPassword.address, constants.fees.secondsignature));
promises.push(creditAccoun... |
<<<<<<<
const { BFT } = require('./bft');
const { Synchronizer } = require('./synchronizer');
=======
>>>>>>>
const { Synchronizer } = require('./synchronizer'); |
<<<<<<<
=======
* Loads full blocks from database, used when rebuilding blockchain, snapshotting,
* see: loader.loadBlockChain (private).
*
* @param {number} blocksAmount - Amount of blocks
* @param {number} fromHeight - Height to start at
* @param {function} cb - Callback function
* @returns {function} cb - C... |
<<<<<<<
var config = require('../../data/config.json');
var Peer = require('../../../logic/peer');
var PeersLogic = require('../../../logic/peers');
var PeersModule = require('../../../modules/peers');
=======
var constants = require('../../../helpers/constants');
var generateMatchedAndUnmatchedBroadhashes = require(... |
<<<<<<<
const { DappTransaction } = require('@liskhq/lisk-transactions');
=======
const _ = require('lodash');
>>>>>>>
const { DappTransaction } = require('@liskhq/lisk-transactions');
const _ = require('lodash');
<<<<<<<
genesisBlock: {},
constants,
config: { components: { logger: null } },
=======
gen... |
<<<<<<<
init({ id, blockId, type, asset, dapp, inTransfer, delegateName }) {
=======
init({ id, blockId, type, asset, dapp, inTransfer, votes }) {
>>>>>>>
init({ id, blockId, type, asset, dapp, inTransfer, delegateName, votes }) {
<<<<<<<
case 2:
this.asset.delegate.username = delegateName || 'DummyDelega... |
<<<<<<<
config: self.options.config,
genesisBlock: { block: self.options.config.genesisBlock },
registeredTransactions: self.options.registeredTransactions,
=======
config: self.options,
genesisBlock: { block: self.options.genesisBlock },
>>>>>>>
config: self.options,
genesisBlock: { bloc... |
<<<<<<<
// System
this.logger.debug('Initiating system...');
this.system = createSystemComponent(systemConfig, this.logger, storage);
// Publish an event whenever the system headers are updated.
this.system.on('update', nodeInfo => {
this.channel.publish('chain:system:updateNodeInfo', nodeInfo);
... |
<<<<<<<
parseBlockToJson,
saveBlock,
=======
saveBlockStep,
undoBlockStep,
>>>>>>>
saveBlock,
<<<<<<<
=======
await undoBlockStep(this.dposModule, block, tx);
}
async save({ block, blockJSON, tx, skipSave }) {
await saveBlockStep(
this.storage,
this.dposModule,
block,
blockJSON,
skipSa... |
<<<<<<<
var modulesLoader = require('../../common/initModule').modulesLoader;
var Transaction = require('../../../logic/transaction.js');
var AccountLogic = require('../../../logic/account.js');
var AccountModule = require('../../../modules/accounts.js');
var Multisignature = rewire('../../../logic/multisignature.js')... |
<<<<<<<
=======
const { Application } = require('../framework/src');
>>>>>>> |
<<<<<<<
describe('#sendRequest with promise', function () {
it('should be able to use sendRequest as a promise for GET', function (done) {
lisk.api().sendRequest('blocks/getHeight', {}).then(function(result) {
(result).should.be.type('object');
(result.success).should.be.equal(true);
(result.height... |
<<<<<<<
accounts.forEach(account => {
block = fixtures.blocks.Block({
id: account.blockId,
previousBlock: block ? block.id : null,
height: blocks.length + 1,
});
=======
const blocks = [];
accounts.forEach((account, index) => {
if (index === 0) {
block = fixtures.blocks.GenesisBlock({
... |
<<<<<<<
// jest.mock('../../../../../../../src/modules/chain/blocks/verify');
=======
>>>>>>> |
<<<<<<<
receiveTransactions(seriesCb) {
=======
broadcastHeaders(seriesCb) {
// Notify all remote peers about our new headers
modules.transport.broadcastHeaders(seriesCb);
},
addDeletedTransactions(seriesCb) {
>>>>>>>
addDeletedTransactions(seriesCb) {
<<<<<<<
=======
transport: scope.mod... |
<<<<<<<
var data = 'extra information';
var transferTrs = node.lisk.transaction.createTransaction(node.gAccount.address, 112340000, transferAccount.password, null, data);
addTransaction(transferTrs, mergeResponseAndTransaction(transferTrs, cb));
=======
var transferTrs = node.lisk.transaction.createTr... |
<<<<<<<
/**
* Description.
*
* @func create_compression
* @memberof api/fittings
* @requires compression
* @requires debug
* @requires lodash
* @param {Object} fittingDef - Description of the param
* @param {Object} bagpipes - Description of the param
* @returns {function} {@link api/fittings.lisk_compression... |
<<<<<<<
const { BlockReward } = require('./block_reward');
const forkChoiceRule = require('./fork_choice_rule');
=======
const {
calculateSupply,
calculateReward,
calculateMilestone,
} = require('./block_reward');
>>>>>>>
const {
calculateSupply,
calculateReward,
calculateMilestone,
} = require('./block_reward... |
<<<<<<<
tasks[name] = function(tasksCb) {
var Instance = rewire(modulesInit[name]);
=======
tasks[name] = function(cb) {
const Instance = rewire(modulesInit[name]);
>>>>>>>
tasks[name] = function(tasksCb) {
const Instance = rewire(modulesInit[name]);
<<<<<<<
... |
<<<<<<<
const { MAX_SHARED_TRANSACTIONS } = global.constants;
=======
const {
MIN_BROADHASH_CONSENSUS,
MAX_PEERS,
MAX_SHARED_TRANSACTIONS,
} = global.constants;
>>>>>>>
const { MAX_SHARED_TRANSACTIONS } = global.constants;
<<<<<<<
transaction: scope.logic.transaction,
=======
initTransaction: scope.lo... |
<<<<<<<
=======
var transactionTypes = require('../../helpers/transaction_types');
>>>>>>>
require('../../helpers/transaction_types'); |
<<<<<<<
config: this.options,
=======
config: this.options.config,
applicationState,
>>>>>>>
config: this.options,
applicationState, |
<<<<<<<
return library.balancesSequence.add(async balancesSequenceCb => {
if (!nonce) {
library.logger.debug(
`Received transaction ${transaction.id} from public client`
);
} else {
library.logger.debug(
`Received transaction ${transaction.id} from network`
);
}
=======
return library.bala... |
<<<<<<<
// System
this.logger.debug('Initiating system...');
this.system = createSystemComponent(systemConfig, this.logger, storage);
if (!this.options.genesisBlock) {
=======
if (!this.options.config) {
>>>>>>>
if (!this.options.genesisBlock) { |
<<<<<<<
scenarios.network.peersBlackList(params);
scenarios.network.peerDisconnect(params);
=======
// When broadcasting is disabled, there are only
// two nodes available for testing sync only
// so skipping peer disconnect test
if (!broadcastingDisabled) {
scenarios.network.peer... |
<<<<<<<
var Round = rewire('../../../logic/round.js'); // eslint-disable-line
var DBSandbox = require('../../common/DBSandbox').DBSandbox;
=======
var Round = rewire('../../../logic/round.js');
var DBSandbox = require('../../common/db_sandbox').DBSandbox;
>>>>>>>
var Round = rewire('../../../logic/round.js'); // esl... |
<<<<<<<
=======
it('should throw AssertionError if broadhash undefined', async () => {
// Arrange
newState = {
broadhash: undefined,
height: '10',
};
const broadhashAssertionError = new AssertionError({
message: broadhashErrorMessage,
operator: '==',
expected: true,
ac... |
<<<<<<<
transfer.applyConfirmed(
validTransaction,
dummyBlock,
validSender,
err => {
expect(err).to.not.exist;
accountModule.getAccount(
{ address: validTransaction.recipientId },
(err, accountAfter) => {
expect(err).to.not.exist;
expect(acco... |
<<<<<<<
var multisigRegistration = lisk.transaction.registerMultisignature({
=======
const transaction = lisk.transaction.registerMultisignature({
>>>>>>>
const multisigRegistration = lisk.transaction.registerMultisignature({
<<<<<<<
var minimum = MULTISIG_CONSTRAINTS.MIN.MAXIMUM + 1;
var keysgrou... |
<<<<<<<
multisignature.calculateFee(transaction).isEqualTo('1000000000')
);
=======
multisignature.calculateFee(transaction).equals('1000000000')
).to.be.true;
>>>>>>>
multisignature.calculateFee(transaction).isEqualTo('1000000000')
).to.be.true;
<<<<<<<
multisignature.calculateFee(transact... |
<<<<<<<
exports.should = should;
=======
// See https://github.com/shouldjs/should.js/issues/41
Object.defineProperty(exports, 'should', { value: should });
>>>>>>>
Object.defineProperty(exports, 'should', { value: should }); |
<<<<<<<
const sortBy = require('../helpers/sort_by.js').sortBy;
const TransactionPool = require('../logic/transaction_pool.js');
=======
const TransactionPool = require('../logic/transaction_pool');
const Transfer = require('../logic/transfer');
const { TRANSACTION_TYPES } = global.constants;
>>>>>>>
const Transact... |
<<<<<<<
// Normalize transaction
const transaction = library.logic.initTransaction.dbRead(rows[i]);
// Set empty object if there are no transactions in block
blocks[block.id].transactions = blocks[block.id].transactions || {};
=======
// Normalize transaction
const transaction = library.logic.in... |
<<<<<<<
constructor(logger, block, storage, config) {
=======
constructor(logger, block, transaction, storage, config, channel) {
>>>>>>>
constructor(logger, block, storage, config, channel) { |
<<<<<<<
scenarios.stress.register(params);
scenarios.stress.vote(params);
it('there should exactly 180 established connections from 500[0-9] ports', done => {
// Each peer connected to 9 other pairs and have 2 connection for bi-directional communication
var expectedOutgoingConnections =... |
<<<<<<<
maxOutboundConnections: {
type: 'integer',
},
=======
emitPeerLimit: {
type: 'integer',
minimum: 1,
maximum: 100,
},
>>>>>>>
maxOutboundConnections: {
type: 'integer',
},
emitPeerLimit: {
type: 'integer',
minimum: 1,
maximum: 100,
},
<<<<<<<
maxOutboundConnections: ... |
<<<<<<<
LiskAPI.prototype.listStandyDelegates = function (limit, callback) {
var standByOffset = 101;
=======
LiskAPI.prototype.listStandbyDelegates = function (limit, callback) {
var standByOffset = +101 + +limit;
>>>>>>>
LiskAPI.prototype.listStandbyDelegates = function (limit, callback) {
var standByOffset = 1... |
<<<<<<<
await this._createSchema();
=======
this.registerEntity('Account', Account);
this.registerEntity('Block', Block);
this.registerEntity('Delegate', Delegate);
this.registerEntity('Migration', Migration);
this.registerEntity('Peer', Peer);
this.registerEntity('Round', Round);
this.registerEntity... |
<<<<<<<
const milestones = require('../helpers/milestones.js');
const bignum = require('../helpers/bignum.js');
=======
>>>>>>>
const bignum = require('../helpers/bignum.js'); |
<<<<<<<
/**
* Description.
*
* @func create_caches
* @memberof api/fittings
* @requires debug
* @requires helpers/swagger_module_registry.getCache
* @requires helpers/swagger_module_registry.getLogger
* @param {Object} fittingDef - Description of the param
* @param {Object} bagpipes - Description of the param
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.