-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored the function that calculates the short_hash_id of a tyransaction given the txid and a nonce. Refacored the method that takes a mempool and a short tx id and verifies that there is that tx in the mempool. Now gives Some(tx, txid) in positive case, none otherwise. With all this machinery now we can identify the transactions sent in the declared mining job. The identified transaction are stored in a field of JobDeclaratorDownstream. It is also added a field that indicates how many transactions are unidentified. In the case this field is non zero, the JDS must send a ProvideMissingTransactions to the JDC.
- Loading branch information
Showing
4 changed files
with
77 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters