Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

ISSUE-229: Remove check consistency code, test and related docs#234

Merged
kwek20 merged 2 commits into
iotaledger-archive:devfrom
ezienecker:feature/ISSUE-229-removal-of-checkConsistency
Oct 11, 2020
Merged

ISSUE-229: Remove check consistency code, test and related docs#234
kwek20 merged 2 commits into
iotaledger-archive:devfrom
ezienecker:feature/ISSUE-229-removal-of-checkConsistency

Conversation

@ezienecker
Copy link
Copy Markdown

Description of change

Preparation for #229

Type of change

Choose a type of change, and delete any options that are not relevant.

  • Enhancement (a non-breaking change which remove functionality)
  • Documentation Fix

How the change has been tested

run mvn clean install

Change checklist

Add an x to the boxes that are relevant to your changes, and delete any items that are not.

  • My code follows the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests using ginkgo that prove my fix is effective or that my feature works -> not needed
  • New and existing unit tests pass locally with my changes -> not needed

Copy link
Copy Markdown
Contributor

@kwek20 kwek20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also remove CheckConsistencyResponse.java? Thanks for the fix!

Comment thread docs/iota-java/isPromotable.md Outdated
@@ -20,11 +20,6 @@ Checks if a transaction hash is promotable
|:---------------|:--------|
| [ArgumentException](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/error/ArgumentException.java) | when we can't get the consistency of this transaction |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the exception here?

* @see #checkConsistency(String...)
*/
@Document
public boolean isPromotable(Transaction tail) throws ArgumentException {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this method doesnt throw it anymore

@@ -1628,7 +1626,6 @@ public boolean isPromotable(Transaction tail) throws ArgumentException {
* @return <tt>true</tt> if it is, otherwise <tt>false</tt>
* @throws ArgumentException when we can't get the consistency of this transaction
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method still throws it, but replace explanation to "When we cant find the transaction"

@kwek20
Copy link
Copy Markdown
Contributor

kwek20 commented Oct 11, 2020

@ezienecker

@ezienecker
Copy link
Copy Markdown
Author

@kwek20 done

@kwek20 kwek20 merged commit a047fa4 into iotaledger-archive:dev Oct 11, 2020
@kwek20
Copy link
Copy Markdown
Contributor

kwek20 commented Oct 11, 2020

Legend!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants