From 624553dc4478770197bbe622e86d4c16578f5208 Mon Sep 17 00:00:00 2001 From: Bret Harrison Date: Mon, 2 Oct 2017 14:41:37 -0400 Subject: [PATCH] [FAB-6061] NodeSDK - rewrites user keys NodeSDK will rewrite user keys when doing a getUserContext(). The call to setUserContext should be turn this off. Change-Id: I26064c8b4e3ae61c0bbbe833dbd7f2c8ba166b2f Signed-off-by: Bret Harrison --- fabric-client/lib/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric-client/lib/Client.js b/fabric-client/lib/Client.js index f65830495a..97df06b87f 100644 --- a/fabric-client/lib/Client.js +++ b/fabric-client/lib/Client.js @@ -1271,7 +1271,7 @@ var Client = class extends BaseClient { function(userContext) { if (userContext) { logger.debug('Requested user "%s" loaded successfully from the state store on this Client instance: name - %s', name, name); - return self.setUserContext(userContext, false); + return self.setUserContext(userContext, true); //skipPersistence as we just got it from there } else { logger.debug('Requested user "%s" not loaded from the state store on this Client instance: name - %s', name, name); return null;