Author Topic: how to save advanced_node_parameters  (Read 1797 times)

0 Members and 1 Guest are viewing this topic.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
Code: [Select]
$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

Offline vikram

Code: [Select]
$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


Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
Code: [Select]
$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

Offline 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

Offline nixoid

  • Newbie
  • *
  • Posts: 2
    • View Profile
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.