how to save advanced_node_parameters

Started by nixoid, January 02, 2015, 06:18:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

abit

Quote from: vikram on January 07, 2015, 05:14:28 PM
Quote from: abit on January 07, 2015, 02:38:05 AM

$bitshares_client --help

...

--input-log arg                       Set log file with CLI commands to
                                            execute at startup


Looks like it's possible to set some commands to excute at startup, but how to?

You can give it a file with a command on each line prefixed by the console prefix ">>> ". Anything before the prefix or on a line without it is ignored. Like so:

https://github.com/BitShares/bitshares/blob/6b5febbeca5e4274a1b29f56b5e67bc093412392/tests/regression_tests/_common_logs/create_wallet.log
Great. This makes a lot sense.
Thanks.
BitShares committee member: abit
BitShares witness: in.abit

vikram

Quote from: abit on January 07, 2015, 02:38:05 AM

$bitshares_client --help

...

--input-log arg                       Set log file with CLI commands to
                                            execute at startup


Looks like it's possible to set some commands to excute at startup, but how to?

You can give it a file with a command on each line prefixed by the console prefix ">>> ". Anything before the prefix or on a line without it is ignored. Like so:

https://github.com/BitShares/bitshares/blob/6b5febbeca5e4274a1b29f56b5e67bc093412392/tests/regression_tests/_common_logs/create_wallet.log


abit


$bitshares_client --help

...

--input-log arg                       Set log file with CLI commands to
                                            execute at startup


Looks like it's possible to set some commands to excute at startup, but how to?
BitShares committee member: abit
BitShares witness: in.abit

vikram

I don't believe there is a way to save these at present; I've made a note about it here: https://github.com/BitShares/bitshares/issues/1206

nixoid

Hi there,

Is there a way to make node remember  advanced_node_parameters?
So this will be set automatically during each start:

network_set_advanced_node_parameters {"desired_number_of_connections":100, "maximum_number_of_connections":200}

I've set up bitshares as a daemon and cannot type this during each boot because i don't know when reboot will happen.

I've tried adding this to various places of configs - not helping.

Thanks in advance.