Skip to content
Snippets Groups Projects
Select Git revision
  • b56ea74059b1da452fae245d162ef690cebc8bf9
  • dev default protected
  • release/1.9.1 protected
  • pini-1.8-docker
  • pini-sync-onlypeers
  • duniter-v2s-issue-123-industrialize-releases
  • feature/build-aarch64-nodejs16
  • release/1.8 protected
  • pini-docker
  • ci_tags
  • fix/1448/1.8/txs_not_stored
  • feature/node-20
  • fix/1441/node_summary_with_storage
  • fix/1442/improve_bma_tx_history
  • feature/wotwizard-1.8
  • release/1.9 protected
  • 1.7 protected
  • feature/docker-set-latest protected
  • feature/fast-docker-build-1.8.4
  • fast-docker-build protected
  • feature/dump-distance
  • v1.8.7 protected
  • v1.8.7-rc4 protected
  • v1.8.7-rc3 protected
  • v1.8.7-rc2 protected
  • v1.8.7-rc1 protected
  • v1.8.6 protected
  • v1.7.23 protected
  • v1.8.5 protected
  • v1.8.4 protected
  • v1.8.3 protected
  • v1.8.2 protected
  • v1.8.1 protected
  • v1.8.0 protected
  • v1.8.0-rc1 protected
  • v1.8.0-beta5 protected
  • v1.8.0-beta4 protected
  • v1.8.0-beta3 protected
  • v1.8.0-beta2 protected
  • v1.8.0-beta protected
  • v1.7.21 protected
41 results

manual-config.md

Blame
  • Manual configuration

    To add mnually configuration parameters to uCoin, use config command:

    $ ucoind config

    Currency

    First of all, tell uCoin which currency to be used through command:

    $ ucoind config --currency mycurrency

    Replace mycurrency by the name of the currency you want to manage.

    This is crucial data. Be careful on the case and do not change it thereafter otherwise your node will have incoherent data & behaviors.

    Network parameters

    By default, ucoin runs on port 8033. You may change it using the --port parameter:

    $ ucoind config --port 80

    (may require root access to launch on port 80)

    It is also possible to specify the IPv4 interface:

    $ ucoind config -p 8888 --ipv4 127.0.0.1

    Or IPv6 interface:

    $ ucoind config -p 8888 --ipv6 ::1

    Or both:

    $ ucoind config -p 8888 --ipv4 127.0.0.1 --ipv6 ::1

    Launching uCoin (when completely configured) will results:

    $ ucoind start
    
    uCoin server listening on 127.0.0.1 port 8888
    uCoin server listening on ::1 port 8888

    Note too that listening to multiple interfaces doesn't imply mutiple program instances: only one is running on multiple interfaces.

    Remote parameters

    Peering informations

    uCoin protocol uses peering mecanisms, hence needs any ucoin node to be reachable through the network.

    As the server may be behind a reverse proxy, or because hosts may change of address, remote informations are likely to be different from listening host and port parameters. ucoin software defines 4 remote parameters you need to precise for your ucoin instance to be working:

    • --remoteh
    • --remote4
    • --remote6
    • --remotep

    You must define at least --remote4 and --remotep not to have any error. Here is an example:

    $ ucoind config --remoteh "some.remote.url" --remotep "8844" --remote4 "11.11.11.11" --remote6 "::1"

    Note that this is not required and may be removed in the future, as uCoin protocol already include peering mecanisms giving network informations.

    Authentication

    uCoin protocol requires your responses to be signed in order to be interpreted. Such a feature is very important to authenticate nodes' messages. To use this feature, just configure uCoin using --pgpkey parameter:

    $ ucoind config --pgpkey /path/to/private/key

    Eventually, you might need to give a password, otherwise uCoin will crash:

    $ ucoind config --pgppasswd "ultr[A]!%HiGhly-s3cuR3-p4ssw0d"

    Resulting in:

    $ ucoind start
    
    Signed requests with PGP: enabled.
    uCoin server listening on 127.0.0.1 port 8888
    uCoin server listening on ::1 port 8888