-
Notifications
You must be signed in to change notification settings - Fork 370
Transaction Validator Documentation #1142
Transaction Validator Documentation #1142
Conversation
/** | ||
* Does two things | ||
* <ol> | ||
* <li>Sets the minimum weight magnitude. We validate POW on a transaction we will ascertain that it has |
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.
* <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 |
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
@@ -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*********************************// |
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 thought we agreed on (w/o enforcement) ////////
:)
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.
:-)
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 |
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.
* @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 | |
```? |
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.
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
* <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> |
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.
these are only direct transactions, right?
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.
yeah, will add
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
Co-Authored-By: GalRogozinski <[email protected]>
* Transaction Validator docs * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * 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 <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * Update src/main/java/com/iota/iri/TransactionValidator.java Co-Authored-By: GalRogozinski <[email protected]> * fix Transaction Validator documentation
Description
Document
Transaction Validator
Fixes #1107
Type of change