-
Notifications
You must be signed in to change notification settings - Fork 454
Add functionality for handling exceptions present in the blockchain - Closes #3181 #3195
Add functionality for handling exceptions present in the blockchain - Closes #3181 #3195
Conversation
…o 3181-handle_exceptions
…o 3181-handle_exceptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me in general, just minor issues!
Also, GJ adding integration tests for exceptions =)
framework/src/modules/chain/logic/check_transaction_against_exceptions.js
Show resolved
Hide resolved
@@ -31,7 +31,7 @@ describe('system test (type 3) - voting with duplicate submissions', () => { | |||
let t = 0; | |||
|
|||
/* eslint-disable no-loop-func */ | |||
while (i < 30) { | |||
while (i < 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think i've seen this before too, but probably want to put it back to 30?
framework/test/mocha/integration/transactions/exceptions/duplicate_signatures.js
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,200 @@ | |||
const expect = require('chai').expect; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const expect = require('chai').expect; | |
const { expect } = require('chai'); |
Also, header required
@@ -0,0 +1,272 @@ | |||
const expect = require('chai').expect; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const expect = require('chai').expect; | |
const { expect } = require('chai'); |
Also, header required
|
||
const exceptions = global.exceptions; | ||
|
||
describe('exceptions for multisingature transactions', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multisignature
…3181-handle_exceptions
…o 3181-handle_exceptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general
- Need to merge feature branch into this one
- Tests are using same DB so they do not run in parallel so when calling
localCommon.beforeBlock(
make sure to use different strings for thetype
parameter for this function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only one concern regarding ordering of errors
framework/src/modules/chain/logic/check_transaction_against_exceptions.js
Show resolved
Hide resolved
ad4052e
to
8a61721
Compare
e41743b
into
feature/improve_transactions_processing_efficiency
What was the problem?
The exceptions in the testnet and mainnet were not handled in the new implementation of transaction processing.
How did I fix it?
Added exception handling logic for various type of exceptions defined in testnet.
How to test it?
Run integration tests for transactions/exceptions/
Review checklist