Sync Daemon To Blockchain

Discussion in 'Connectivity' started by Szfinx, Jul 20, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. Szfinx

    Szfinx New Member

    Jul 17, 2016
    22
    0
    Male
    United Kingdom
    I had to restart my server and now I am starting the daemon again.

    15:53:13 2016-07-20 [INF] DCRD: Version 0.1.6-beta
    15:53:13 2016-07-20 [INF] DCRD: Loading block database from 'C:\Users\Administrator\AppData\Local\Dcrd\data\mainnet\blocks_leveldb'
    15:53:13 2016-07-20 [INF] BCDB: Address index synced and loaded to height 47248
    15:53:13 2016-07-20 [INF] DCRD: Block database loaded with block height 47248
    15:53:13 2016-07-20 [INF] DCRD: Block ticket database initialized empty
    15:53:13 2016-07-20 [INF] DCRD: Db non-empty, resyncing ticket DB

    I am on this screen for more that 30 mins now. How long does it take to sync with the blockchain? Do I need to delete the previous Decred database from the server?
     
  2. jrick

    jrick Member
    Developer

    Jan 4, 2016
    88
    81
    Male
    You must cleanly shut down dcrd for it to write the ticket DB. Failing to do so will result in it needing to resync it at startup. The only way to cleanly shut down dcrd is to give it an interrupt signal (ctrl-C) from a cmd.exe or powershell console window. If you close the console window or log out/shutdown the computer before interrupting dcrd, the dcrd process will be immediately terminated by the OS instead of running clean shutdown.

    I also hope that you are running that dcrd in an isolated virtual machine. It is not advisable to run dcrd as Administrator.
     
    Szfinx likes this.
  3. root

    root Member

    Feb 3, 2016
    381
    76
    Also
    dcrctl.exe -u xxxx -P xxxxx stop
    works
     
    Szfinx likes this.
  4. Szfinx

    Szfinx New Member

    Jul 17, 2016
    22
    0
    Male
    United Kingdom
    Thanks Jrick, now it is working...
     

Share This Page