@@ -278,14 +278,9 @@ function validatePK(private_key) {
278278}
279279
280280function genGenesisInputFileXdpos ( keys ) {
281- // config.network_name,
282- // config.network_id,
283- // config.num_subnet,
284- // config.foundation_address,
285- // config.reward_yield,
286- // config.stake_threshold
287281 const masternodes = [ ] ;
288- let masternodesowner = ''
282+ let masternodesowner = '' ;
283+ let foundationaddress = '' ;
289284 Object . keys ( keys ) . forEach ( function ( k ) {
290285 const v = keys [ k ] ;
291286 if ( k . startsWith ( "key" ) ) {
@@ -305,9 +300,6 @@ function genGenesisInputFileXdpos(keys) {
305300 chainid : config . network_id ,
306301 } ;
307302
308- if ( config . xdpos . foundation_address != "" ) {
309- out [ "foundationaddress" ] = config . xdpos . foundation_address ;
310- }
311303 if ( config . xdpos . stake_threshold != "" ) {
312304 out [ "stakethreshold" ] = config . xdpos . stake_threshold ;
313305 }
@@ -384,9 +376,6 @@ function genXdposCompose(machine_id, num, start_num = 1) {
384376
385377function genXdposKeys ( ) {
386378 const keys = { } ;
387- console . log ( "genXdposKeys called" ) ;
388- console . log ( config . keys )
389- // const num = config.keys.subnets_addr.length
390379 for ( let i = 0 ; i < config . keys . subnets_addr . length ; i ++ ) {
391380 const key = `key${ i + 1 } ` ;
392381 const private_key = config . keys . subnets_pk [ i ] ;
0 commit comments