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

Commit

Permalink
add exceptions to skip validation for transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
spkjp committed Oct 10, 2018
1 parent c2a398c commit c476524
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 c476524

Please sign in to comment.