File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,13 @@ exports.plugin = {
1111 defaults : require ( './defaults' ) ,
1212 alias : 'forger' ,
1313 async register ( container , options ) {
14- const forgerManager = await new ForgerManager ( options )
15-
14+ const forgerManager = new ForgerManager ( options )
1615 const forgers = await forgerManager . loadDelegates ( options . bip38 , options . password )
1716
17+ // Don't keep bip38 password in memory
18+ delete process . env . ARK_FORGER_PASSWORD
19+ delete options . password
20+
1821 container . resolvePlugin ( 'logger' ) . info ( `ForgerManager started with ${ forgers . length } forgers` )
1922
2023 forgerManager . startForging ( )
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ module.exports = async (options) => {
2121 networkStart : options . networkStart
2222 } ,
2323 '@arkecosystem/core-forger' : {
24- bip38 : options . bip38 ,
24+ bip38 : options . bip38 || process . env . ARK_FORGER_BIP38 ,
2525 address : options . address ,
26- password : options . password
26+ password : options . password || process . env . ARK_FORGER_PASSWORD
2727 }
2828 }
2929 } )
You can’t perform that action at this time.
0 commit comments