diff --git a/catapult-sdk/src/model/status.js b/catapult-sdk/src/model/status.js index 8487f2a8a..c0d9f8997 100644 --- a/catapult-sdk/src/model/status.js +++ b/catapult-sdk/src/model/status.js @@ -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'; @@ -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'; diff --git a/catapult-sdk/test/model/status_spec.js b/catapult-sdk/test/model/status_spec.js index 58a14d3eb..6c00fbb50 100644 --- a/catapult-sdk/test/model/status_spec.js +++ b/catapult-sdk/test/model/status_spec.js @@ -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');