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

Commit

Permalink
copy nonce trits to state
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul D Handy committed Sep 18, 2017
1 parent 404cf16 commit 6e1c05e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pearldiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ const prepare = (transactionTrytes, minWeightMagnitude) => {
var curl = new Curl();
let transactionTrits = Converter.trits(transactionTrytes);
curl.absorb(transactionTrits, 0, Const.TRANSACTION_LENGTH - Const.HASH_LENGTH);
transactionTrits.slice(Const.TRANSACTION_LENGTH - Const.HASH_LENGTH, Const.TRANSACTION_LENGTH).forEach((v,i) => { curl.state[i] = v; });
states = SearchInit.toPair(curl.state);
return states;
}
Expand Down

0 comments on commit 6e1c05e

Please sign in to comment.