Skip to content

Commit

Permalink
Add new member into cache
Browse files Browse the repository at this point in the history
Current node SDK will create a new member object if
it is not in cache and restore state from persistence,
but it does not add new member in cache.

Change-Id: Ifb7b17e8e40c1b4afe59acefa020eb3f0760ed59
Signed-off-by: grapebaba <281165273@qq.com>
  • Loading branch information
GrapeBaBa committed Sep 2, 2016
1 parent 2552dd0 commit e64fb9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/node/src/hfc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ export class Chain {
member = new Member(name, self);
member.restoreState(function (err) {
if (err) return cb(err);
self.members[name]=member;
cb(null, member);
});
}
Expand Down

0 comments on commit e64fb9d

Please sign in to comment.