We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 364d1d2 commit 5fed9d9Copy full SHA for 5fed9d9
container-manager/src/gen/gen_xdpos.js
@@ -288,17 +288,20 @@ function genGenesisInputFileXdpos(keys) {
288
let masternodesowner = ''
289
Object.keys(keys).forEach(function (k) {
290
const v = keys[k];
291
- if (k === "Owner") {
292
- masternodesowner = v["0x"];
293
- } else {
+ if (k.startsWith("key")) {
294
masternodes.push(v["0x"]);
+ } else if (k === "Owner"){
+ masternodesowner = v["0x"];
295
+ } else if (k === "Foundation") {
296
+ foundationaddress = v["0x"];
297
}
298
});
299
300
const out = {
301
name: config.network_name,
302
masternodesowner: masternodesowner,
303
masternodes,
304
+ foundationwalletaddress: foundationaddress,
305
chainid: config.network_id,
306
};
307
0 commit comments