Skip to content

Commit

Permalink
ecpairing exceptions should consume all gas
Browse files Browse the repository at this point in the history
  • Loading branch information
cdetrio authored and holgerd77 committed Sep 11, 2017
1 parent 969c88a commit d0096e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/precompiled/08-bn128_pairing.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ module.exports = function (opts) {
console.log('exception in ecPairing precompile is expected, ignore previous panic...')
// console.log(e)
results.return = Buffer.alloc(0)
results.gasUsed = opts.gasLimit
results.exceptionError = error.OUT_OF_GAS
results.exception = 0
}

Expand Down

0 comments on commit d0096e5

Please sign in to comment.