Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion docs/guides/LaunchTheChain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ Tokel is a completely independent blockchain created using Komodo technologies.

You must ensure you are running the chain from the `tokel` [branch of this repository](https://github.com/TokelPlatform/komodo/tree/tokel)

## What's new in daemon tokeld

### Release 0.3.1
New consensus features and fixes (activated on 24 June 2022):
- Support for R-address as destinations for tokenv2transfer transactions
- fixed burn pubkey (added a valid one)
- fixed assets cc (token DEX) royalty calculation for more than 50%
- added websockets support for nspv nodes

## Preparing your environment

### Build Komodo (yep, the komodo daemon runs Tokel)
Expand Down Expand Up @@ -88,6 +97,10 @@ Launch the Tokel chain command:
```
./komodod -ac_name=TOKEL -ac_supply=100000000 -ac_eras=2 -ac_cbmaturity=1 -ac_reward=100000000,4250000000 -ac_end=80640,0 -ac_decay=0,77700000 -ac_halving=0,525600 -ac_cc=555 -ac_ccenable=236,245,246,247 -ac_adaptivepow=6 -addnode=135.125.204.169 -addnode=192.99.71.125 -addnode=144.76.140.197 -addnode=135.181.92.123 &
```
or just
```
./tokeld &
```

Now wait for the chain to finish syncing. This might take while depending on your machine and internet connection. You can check check sync progress by using tail -f on the debug.log file in the coin data directory. Double check the number of blocks you've downloaded with an explorer to verify you're up to the latest block.

Expand All @@ -97,7 +110,10 @@ tail -f ~/.komodo/TOKEL/debug.log

Tokel uses CryptoConditions that require launching the blockchain with the `-pubkey` parameter to work correctly. Once you have completed block download, you will need to create a new address or import your current address. After you have done that, you will need to stop the blockchain and launch it with the `-pubkey` parameter.

You can use the RPC below to create a new address or import a privkey you currently have.
To use tokel daemon RPC you should run the command line interface executable:<br>
`./komodo-cli -ac_name=TOKEL commmand params` or just `./tokel-cli commmand params` (`komodo-cli.exe` or `tokel-cli.exe` on Windows).

You can use the RPC below to create a new address or import a privkey you currently have.

```
./komodo-cli -ac_name=TOKEL getnewaddress
Expand Down Expand Up @@ -128,6 +144,24 @@ cd ~/komodo/src

You are now ready to use the Tokel blockchain to its fullest extent.

### Build and run nSPV node with websockets support

If you need to run a Tokel nSPV node with websockets support for providing web apps access to the blockchain you should build the daemon with --enable-websockets parameter.

Building for Linux:<br>
`./zcutil/build.sh --enable-websockets $(nproc)`

Building for Mac:<br>
`./zcutil/build-mac.sh --enable-websockets $(nproc)`

Building cross-compiled executable for Windows:<br>
`./zcutil/build-win.sh --enable-websockets $(nproc)`

The default websockets port is 8192. You could change it with -wsport parameter of daemon:
`./tokeld -wsport=your-port`

Do not forget to enable incoming TCP access to this port on the firewall.

License
-------
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Expand Down