Skip to content

chopperbriano/DigiAsset_Core_Windows

Repository files navigation

Table of Contents

  1. Build on Windows
  2. Optional Build Targets
  3. Install DigiByte
  4. Documentation
  5. Other Notes

License: MIT

Build on Windows

This fork builds a Windows version with Visual Studio and MSVC in the main branch, with upstream tracking in the 'upstream-master' branch.

Most dependencies (libcurl, OpenSSL, SQLite3, libjsonrpccpp) are replaced by vendored source files or Windows-native stubs (WinHTTP), so no vcpkg or external package manager is needed beyond the jsoncpp and libjson-rpc-cpp subprojects that are already in the repo.

Note: If you want to skip the build you can download the DigiAsset for Windows self extracting exe, and extract to c:\digiasset_core_windows or whatever path you chose. You will still need to install the IPFS Desktop and DigiByte Core wallet with the changes from below. You can run DigiAsset_Core.exe from a cmd prompt, as well as DigiAsset_core-web.exe from another cmd prompt.

Prerequisites

  • Visual Studio 2022 (Community or higher) with the "Desktop development with C++" workload
  • CMake 3.20+ (included with VS — select "C++ CMake tools for Windows" in the installer)

Clone the Repository

git clone https://github.com/chopperbriano/DigiAsset_Core_Windows.git
cd DigiAsset_Core_Windows

Build JsonCpp Library

.\config-jsoncpp.bat

Open jsoncpp\build\jsoncpp.sln in Visual Studio. Select your build configuration (Debug or Release). Build ALL_BUILD, then build INSTALL.

Build LibJson-RPC Library

.\config-libjson-rpc.bat

Open libjson-rpc-cpp\build\libjson-rpc-cpp.sln. Use the same configuration as above. Build ALL_BUILD, then INSTALL.

Build DigiAsset Core

.\config.bat

Open the solution file in build\, select the same configuration, and build ALL_BUILD.

The digiasset_core.exe binary will be in build\src\Release\ (or Debug\).

Optional Build Targets

You can enable the CLI, Web server, and test suite by passing CMake options:

cmake .. -DBUILD_CLI=ON -DBUILD_WEB=ON -DBUILD_TEST=ON
Target Binary Description
BUILD_CLI digiasset_core-cli.exe Command-line RPC client
BUILD_WEB digiasset_core-web.exe Web UI server (Boost Beast)
BUILD_TEST Google_Tests_run.exe Google Test suite

The Web target requires Boost Beast headers. Install Boost 1.82+ via NuGet:

nuget.exe install boost -Version 1.82.0 -OutputDirectory packages

Performance Tuning

For faster initial blockchain sync, add to config.cfg:

verifydatabasewrite=0

This disables SQLite write verification (fsync), significantly reducing sync time.

Install DigiByte

Download and install the latest verison of the DigiByte Core Wallet. https://github.com/DigiByte-Core/digibyte/releases/download/v8.22.2/digibyte-8.22.2-win64-setup.exe Install to the default locations, unless you need to change the location on your hard drive. Then add the following lines to the digibyte.conf file.

rpcuser=user
rpcpassword=pass11
rpcbind=127.0.0.1
rpcport=14022
whitelist=127.0.0.1
rpcallowip=127.0.0.1
listen=1
server=1
txindex=1
deprecatedrpc=addresses
addnode=191.81.59.115
addnode=175.45.182.173
addnode=45.76.235.153
addnode=24.74.186.115
addnode=24.101.88.154
addnode=8.214.25.169
addnode=47.75.38.245

Install IPFS

Download and isntall the curretn IPFS from https://github.com/ipfs/ipfs-desktop/releases

this step will list out a lot of data of importance is the line that says "RPC API server listening on" it is usually port 5001 note it down if it is not. You can now see IPFS usage at localhost:5001/webui in your web browser(if not headless).

Configure DigiAsset Core

The first time you run DigiAsset Core it will ask you several questions to set up your config file. Run DigiAsset_Core.exe from a cmd prompt start in the c:\digiasset_core_windows folder. You will also need to open another cmd prompt and run digiasset_core-web.exe.

digiasset_core.exe
digiasset_core-web.exe

This will create config.cfg the wizard creates only the basic config for a full list of config options see example.cfg

Make sure DigiAsset Core is running correctly and then press ctrl+c to stop it and continue with instructions.

NOTE: You will also need to open up two firewall ports:

Inbound TCP:5001
Inbound TCP:12024

Documentation

To access documentation run the digiasset_core-web application then go to http://127.0.0.1:8090/

Other Notes

  • If submitting pull requests please utilize the .clang-format file to keep things standardized.

About

This is a Windows Version of DigiAsset_Core

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors