Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Transaction Validator Documentation #1142

Merged
merged 25 commits into from
Nov 14, 2018

Conversation

GalRogozinski
Copy link
Contributor

Description

Document Transaction Validator

Fixes #1107

Type of change

  • Documentation Fix

src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
/**
* Does two things
* <ol>
* <li>Sets the minimum weight magnitude. We validate POW on a transaction we will ascertain that it has
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* <li>Sets the minimum weight magnitude. We validate POW on a transaction we will ascertain that it has
* <li>Sets the minimum weight magnitude (MWM). When we validate POW on a transaction, we validate that it has

src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
jakubcech and others added 17 commits November 12, 2018 16:57
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
@@ -29,14 +31,34 @@
private static final long MAX_TIMESTAMP_FUTURE = 2L * 60L * 60L;
private static final long MAX_TIMESTAMP_FUTURE_MS = MAX_TIMESTAMP_FUTURE * 1_000L;


//*****************fields for solidification thread*********************************//
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we agreed on (w/o enforcement) //////// :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:-)

src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
public void shutdown() throws InterruptedException {
shuttingDown.set(true);
newSolidThread.join();
}

/**
* @return the number of trailing 9s that have to be present in the transaction hash to validate that proof of work
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @return the number of trailing 9s that have to be present in the transaction hash to validate that proof of work
* @return the number of trailing 9s that have to be present in the transaction hash to validate that enough proof of work
```?

Copy link
Contributor Author

@GalRogozinski GalRogozinski Nov 13, 2018

Choose a reason for hiding this comment

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

changed to:

the minimal number of trailing 9s that have to be present at the end of the transaction hash in order to validate that sufficient proof of work has been done

src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
src/main/java/com/iota/iri/TransactionValidator.java Outdated Show resolved Hide resolved
* <li>Attempts to quickly solidify {@code transactionViewModel} by checking whether its direct parents
* are soild. If solid we add it to the queue transaction solidification thread to help it propagate the
* solidification to the approving child transactions</li>
* <li>Requests missing transactions that are needed to solidify {@code transactionViewModel}</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

these are only direct transactions, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, will add

alon-e and others added 6 commits November 13, 2018 18:52
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
Co-Authored-By: GalRogozinski <galrogogit@gmail.com>
@alon-e alon-e merged commit 569d3af into iotaledger:dev Nov 14, 2018
DyrellC pushed a commit to DyrellC/iri that referenced this pull request Nov 17, 2018
* Transaction Validator docs

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

* update ledger validator docs

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* Update src/main/java/com/iota/iri/TransactionValidator.java

Co-Authored-By: GalRogozinski <galrogogit@gmail.com>

* fix Transaction Validator documentation
@GalRogozinski GalRogozinski mentioned this pull request Dec 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants