Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Merge pull request #117 from ArkEcosystem/block-exceptions
Browse files Browse the repository at this point in the history
Add exceptions
  • Loading branch information
Kristjan Kosic authored Oct 12, 2018
2 parents 9ef1254 + c476524 commit 5ed2c36
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion helpers/exceptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ module.exports = {
],
balance:[
"608c7aeba0895da4517496590896eb325a0b5d367e1b186b1c07d7651a568b9e"
]
],
blocks: [
"2220204643144799909",
"12932134768278785054",
"5100737560399219173",
"9919055269822630432"
]
};
5 changes: 5 additions & 0 deletions logic/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ Transaction.prototype.verify = function (trs, sender, requester, cb) {
cb = requester;
}

// Skip validation for exceptions
if (exceptions.blocks.indexOf(trs.blockId) !== -1) {
return self.checkConfirmed(trs, cb);
}

// Get transaction id
var txId;

Expand Down

0 comments on commit 5ed2c36

Please sign in to comment.