Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from LiskHQ/0.9.10-multisig-unconfirmed-bug
Browse files Browse the repository at this point in the history
Move cb to last argument for blocks/chain/applyBlock
  • Loading branch information
4miners authored Oct 16, 2017
2 parents 231e5ab + 13edb60 commit 0208233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/blocks/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,12 @@ __private.applyTransaction = function (block, transaction, sender, cb) {
* @emits SIGTERM
* @param {Object} block Full normalized block
* @param {boolean} broadcast Indicator that block needs to be broadcasted
* @param {Function} cb Callback function
* @param {boolean} saveBlock Indicator that block needs to be saved to database
* @param {Function} cb Callback function
* @return {Function} cb Callback function from params (through setImmediate)
* @return {Object} cb.err Error if occurred
*/
Chain.prototype.applyBlock = function (block, broadcast, cb, saveBlock) {
Chain.prototype.applyBlock = function (block, broadcast, saveBlock, cb) {
// Prevent shutdown during database writes.
modules.blocks.isActive.set(true);

Expand Down
2 changes: 1 addition & 1 deletion modules/blocks/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ Verify.prototype.processBlock = function (block, broadcast, saveBlock, cb) {
// * Block and transactions have valid values (signatures, block slots, etc...)
// * The check against database state passed (for instance sender has enough LSK, votes are under 101, etc...)
// We thus update the database with the transactions values, save the block and tick it
modules.blocks.chain.applyBlock(block, broadcast, cb, saveBlock);
modules.blocks.chain.applyBlock(block, broadcast, saveBlock, cb);
}
});
};
Expand Down

0 comments on commit 0208233

Please sign in to comment.