Skip to content

Commit

Permalink
Change SDK deploy Txid to hash
Browse files Browse the repository at this point in the history
Modify the transaction id for a deployment transaction
to the chaincode hash. The Txid was being incorrectly
set to a generated UUID.

Fixes FAB-288

Change-Id: I69736e05e2240b79ae3bb5bf378abf519ebbf993
Signed-off-by: Anna D Derbakova <adderbak@us.ibm.com>
  • Loading branch information
Mr. Angry committed Sep 13, 2016
1 parent cc111e2 commit f6ae4af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/node/src/hfc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1757,10 +1757,10 @@ export class TransactionContext extends events.EventEmitter {
tx.setPayload(chaincodeDeploymentSpec.toBuffer());

//
// Set the transaction UUID
// Set the transaction ID
//

tx.setTxid(sdk_util.GenerateUUID());
tx.setTxid(hash);

//
// Set the transaction timestamp
Expand Down

0 comments on commit f6ae4af

Please sign in to comment.