Skip to content

Getting started

Frozen edited this page Jun 6, 2018 · 21 revisions

Topic

Installation

Install and run (Linux):

  • Install dependencies:

      $ sudo dnf install git gcc openssl-devel
      or
      $ sudo apt-get install git gcc libssl-dev
    
  • Clone from the git repository:

      $ git clone https://github.com/XDagger/xdag
    
  • Make:

      $ cd xdag/client
      $ make
    
  • or automake

      $ cd xdag/automake
      $ autoreconf -if
      $ ./configure
      $ make
    
  • Run, for example, the miner with 2 CPU mining threads, in daemon mode, connected to the pool put.xdag.server.here:13654

      $ ./xdag -m 2 -d put.xdag.server.here:13654
      Enter random characters: [enter]
    
  • Already have an account

      Put your wallet.dat, dnet_key.dat and storage folder in this folder.
      Then run below command
      $./xdag -m 2 -d put.xdag.server.here:13654
    
  • Run terminal connected to the daemon in the same folder:

      $ ./xdag -i
      xdag> help
      [see help]
    
  • See if you are connected to the pool:

      xdag> state
      [see state]
    
  • See your balance:

      xdag> balance
      [balance]
    
  • See your address:

      xdag> account
      [address]
    
  • Transfer funds to another address:

      xdag> xfer [amount] [address]
    

Run (Mac OS):

  • Install: Download binary file from release page.
    Unzip the zip file to what folder you want.

  • Run, for example, the miner with 2 CPU mining threads, in daemon mode, connected to the pool put.xdag.server.here:13654

      $ ./xdag -m 2 -d put.xdag.server.here:13654
      Enter random characters: [enter]
    
  • Already have an account Put your wallet.dat, dnet_key.dat and storage folder in this folder. Then run below command

      $./xdag -m 2 -d put.xdag.server.here:13654
    
  • Run terminal connected to the daemon in the same folder:

      $ ./xdag -i
      xdag> help
      [see help]
    
  • See if you are connected to the pool:

      xdag> state
      [see state]
    
  • See your balance:

      xdag> balance
      [balance]
    
  • See your address:

      xdag> account
      [address]
    
  • Transfer funds to another address:

      xdag> xfer [amount] [address]
    

Build (Mac OS):

  • Install dependencies:

      $ brew install openssl
      $ ln -s /usr/local/opt/openssl/include/openssl /usr/local/include
      $ ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
    
  • Make

      $ cd xdag/client
      $ make
    

Setup a pool

To be continue

Setup test environment

  • Modify code Change #define PREVENT_AUTO_REFRESH 0 to #define PREVENT_AUTO_REFRESH 1 in netdb.c

  • Build Build your own version.

  • Setup internal testnet
    1. Plan your testnet topology.
    2. Modify netdb-testnet.txt and netdb-white-testnet.txt with your IPs.
    3. Launch your hosts with -t option.
    4. Launch your miner/wallet with -t option.
    5. Currently only command line miner/wallet able to join testnet.