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

Commit

Permalink
Merge branch 'dev' of github.com:nemtech/catapult-rest into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rg911 committed Mar 13, 2021
2 parents 43138f8 + ae772ff commit d917012
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions catapult-sdk/src/model/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const toStringInternal = code => {
case 0x8043000C: return 'Failure_Core_Zero_Public_Key';
case 0x8043000D: return 'Failure_Core_Nonzero_Internal_Padding';
case 0x8043000E: return 'Failure_Core_Address_Collision';
case 0x8043000F: return 'Failure_Core_Importance_Block_Mismatch';
case 0x80430010: return 'Failure_Core_Unexpected_Block_Type';
case 0x80430065: return 'Failure_Core_Invalid_Link_Action';
case 0x80430066: return 'Failure_Core_Link_Already_Exists';
case 0x80430067: return 'Failure_Core_Inconsistent_Unlink_Data';
Expand Down Expand Up @@ -169,15 +171,15 @@ const toStringInternal = code => {
case 0x80FE0001: return 'Failure_Consumer_Empty_Input';
case 0x80FE0002: return 'Failure_Consumer_Block_Transactions_Hash_Mismatch';
case 0x41FE0003: return 'Neutral_Consumer_Hash_In_Recency_Cache';
case 0x80FE0004: return 'Failure_Consumer_Remote_Chain_Too_Many_Blocks';
case 0x80FE0005: return 'Failure_Consumer_Remote_Chain_Improper_Link';
case 0x80FE0006: return 'Failure_Consumer_Remote_Chain_Duplicate_Transactions';
case 0x80FE0007: return 'Failure_Consumer_Remote_Chain_Unlinked';
case 0x80FE0008: return 'Failure_Consumer_Remote_Chain_Difficulties_Mismatch';
case 0x80FE0009: return 'Failure_Consumer_Remote_Chain_Score_Not_Better';
case 0x80FE000A: return 'Failure_Consumer_Remote_Chain_Too_Far_Behind';
case 0x80FE000B: return 'Failure_Consumer_Remote_Chain_Too_Far_In_Future';
case 0x80FE000C: return 'Failure_Consumer_Batch_Signature_Not_Verifiable';
case 0x80FE0004: return 'Failure_Consumer_Remote_Chain_Improper_Link';
case 0x80FE0005: return 'Failure_Consumer_Remote_Chain_Duplicate_Transactions';
case 0x80FE0006: return 'Failure_Consumer_Remote_Chain_Unlinked';
case 0x80FE0007: return 'Failure_Consumer_Remote_Chain_Difficulties_Mismatch';
case 0x80FE0008: return 'Failure_Consumer_Remote_Chain_Score_Not_Better';
case 0x80FE0009: return 'Failure_Consumer_Remote_Chain_Too_Far_Behind';
case 0x80FE000A: return 'Failure_Consumer_Remote_Chain_Too_Far_In_Future';
case 0x80FE000B: return 'Failure_Consumer_Batch_Signature_Not_Verifiable';
case 0x80FE000C: return 'Failure_Consumer_Remote_Chain_Improper_Importance_Link';
case 0x80450001: return 'Failure_Extension_Partial_Transaction_Cache_Prune';
case 0x80450002: return 'Failure_Extension_Partial_Transaction_Dependency_Removed';
case 0x80450003: return 'Failure_Extension_Read_Rate_Limit_Exceeded';
Expand Down
2 changes: 1 addition & 1 deletion catapult-sdk/test/model/status_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('status', () => {
// Assert:
expect(status.toString(0x80410003)).to.equal('Failure_Aggregate_Too_Many_Cosignatures');
expect(status.toString(0x80FF0001)).to.equal('Failure_Chain_Unlinked');
expect(status.toString(0x80FE0005)).to.equal('Failure_Consumer_Remote_Chain_Improper_Link');
expect(status.toString(0x80FE0005)).to.equal('Failure_Consumer_Remote_Chain_Duplicate_Transactions');
expect(status.toString(0x80430005)).to.equal('Failure_Core_Nemesis_Account_Signed_After_Nemesis_Block');
expect(status.toString(0x80450001)).to.equal('Failure_Extension_Partial_Transaction_Cache_Prune');
expect(status.toString(0x81490001)).to.equal('Failure_Hash_Already_Exists');
Expand Down

0 comments on commit d917012

Please sign in to comment.