Skip to content

Commit 9f291fa

Browse files
committed
node-SDK: Update hfc setDeployWaitTime description
The secs parameter is of type number. It will accept values that seem invalid but Node.js actually enforces a minimum and maximum value in setTimeout, so any value will work. Need to make this clear in the documentation. https://jira.hyperledger.org/browse/FAB-126 Change-Id: Ia3e99037df45476492f3792ed23ca154fed95903 Signed-off-by: Caroline Daughtrey <[email protected]>
1 parent 5925f57 commit 9f291fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdk/node/src/hfc.ts

+5
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,11 @@ export class Chain {
552552

553553
/**
554554
* Set the deploy wait time in seconds.
555+
* Node.js will automatically enforce a
556+
* minimum and maximum wait time. If the
557+
* number of seconds is larger than 2147483,
558+
* less than 1, or not a number,
559+
* the actual wait time used will be 1 ms.
555560
* @param secs
556561
*/
557562
setDeployWaitTime(secs:number):void {

0 commit comments

Comments
 (0)