Run blockchain node

1. Clone the repo from below url-

Note - Path should look like this where you download the zip or place it there : /usr/local/go/src/github/scripttoken/

$ mv script-Tv-blockchain script

Thereafter , your complete url will be like this - /usr/local/go/src/src/github/scripttoken/script

2. Compilation

$ cd /usr/local/go/src/github/scripttoken/script

$ ls

$ make install

Notes for MAC binary compilation

The build and install process on Mac is similar for the compilation.

Notes for Windows binary compilation

The Windows binary can be cross-compiled from macOS. To cross-compile a Windows binary, first make sure mingw64 is installed (brew install mingw-w64) on your macOS.

Then you can cross-compile the Windows binary with the following command:

$ make exe

You'll also need to place three .dll files libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll under the same folder as script.exe and scriptcli.exe.

Run Unit Tests

Run unit tests with the command below

$ make test_unit

3. Launch the node

$ cp -r ./integration/scriptnet ../scriptnet

$ mkdir ~/.scriptcli

$ cp -r ./integration/scriptnet/scriptcli/* ~/.scriptcli/

$ chmod 700 ~/.scriptcli/keys/encrypted

Now, launch the following command to launch -

$ /usr/local/go/bin/script start --config=../scriptnet/node

When the prompt asks for password, simply enter password according to your and reconfirm it. Then it will launch the node.

Last updated