Skip to content

Commit d82ade9

Browse files
author
Simon Goldberg
committed
fix test and remove printed password from generateRPCAuth
1 parent fff4884 commit d82ade9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/bitcoin-core/generateRPCAuth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async function genRpcAuthStr(username, password, salt) {
7575
const str = `rpcauth=${rpcauth.username}:${rpcauth.salt}$${rpcauth.hash}`;
7676
const strEscapeCharacter = `rpcauth=${rpcauth.username}:${rpcauth.salt}\\$${rpcauth.hash}`;
7777
console.log(`Username: ${rpcauth.username}`);
78-
console.log(`Password: ${rpcauth.password}`);
78+
console.log("Password generated securely and stored in Secrets Manager");
7979
console.log(`rpcauth string with escape character: ${strEscapeCharacter}`); // Print the rpcauth string
8080

8181
// Write to bitcoin.conf

lib/bitcoin-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"lib": "lib"
88
},
99
"scripts": {
10-
"test": "echo \"Error: no test specified\" && exit 1"
10+
"test": "jest"
1111
},
1212
"keywords": [],
1313
"author": "",
@@ -20,4 +20,4 @@
2020
"cdk-nag": "^2.35.57",
2121
"constructs": "^10.4.2"
2222
}
23-
}
23+
}

0 commit comments

Comments
 (0)