-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.js
executable file
·73 lines (69 loc) · 1.56 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env node
const app = require('./lib/app');
const argv = require('yargs')
.usage('Usage: $0 [options]')
.options({
'accounts': {
default: 0,
describe: 'number of accounts to create / unlock',
type: 'number',
},
'password': {
default: 'left-hand-of-darkness',
describe: 'for geth accounts',
type: 'string',
},
'balance': {
default: 100,
describe: 'account starting balances (in ETH)',
type: 'number'
},
'gasLimit': {
default: 5900000,
describe: 'block gas limit target to mine towards',
type: 'number'
},
'launch': {
default: true,
describe: 'launch geth docker in the background',
type: 'boolean',
},
'repo': {
default: 'ethereum/client-go',
describe: 'docker hub root',
type: 'string'
},
'tag': {
default: 'stable',
describe: 'geth docker release to pull & use',
type: 'string',
},
'offline': {
describe: 'skip docker pull step (image is locally available)',
type: 'boolean',
},
'sleep': {
default: 10,
describe: 'seconds to wait for geth to spin up',
type: 'number'
},
'period': {
default: 0,
describe: 'automining interval',
type: 'number'
},
'port': {
default: 8545,
describe: 'http port to connect to client with',
type: 'number'
},
'wsport': {
default: 8546,
describe: 'ws port to connect to client with',
type: 'number'
},
})
.help()
.argv
// Run
app(argv);