pass options directly into command messages
This commit is contained in:
parent
3c2afed5f5
commit
feda6e9370
@ -46,9 +46,9 @@ function builder(options) {
|
||||
commands: commands
|
||||
};
|
||||
|
||||
commands.version = require('./commands/version')({magicNumber: magicNumber});
|
||||
commands.verack = require('./commands/verack')({magicNumber: magicNumber});
|
||||
commands.ping = require('./commands/ping')({magicNumber: magicNumber});
|
||||
commands.version = require('./commands/version')(options);
|
||||
commands.verack = require('./commands/verack')(options);
|
||||
commands.ping = require('./commands/ping')(options);
|
||||
|
||||
/* pong */
|
||||
|
||||
@ -77,7 +77,7 @@ function builder(options) {
|
||||
return this.nonce;
|
||||
};
|
||||
|
||||
commands.block = require('./commands/block')({Block: Block, magicNumber: magicNumber});
|
||||
commands.block = require('./commands/block')(options);
|
||||
|
||||
/* tx */
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user