Coder Social home page Coder Social logo

soundac-source's Introduction

Introducing SounDAC

SounDAC (formerly known as MUSE) is a blockchain which uses Delegated Proof Of Stake (DPOS) as a consensus algorithm.

  • Currency Symbol XSD
  • Approximately 4,5% APR long term inflation rate

No Support & No Warranty

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Build Status

master develop next_hardfork
master Build Status develop Build Status next_hardfork Build Status

Code is Documentation

Rather than attempt to describe the rules of the blockchain, it is up to each individual to inspect the code to understand the consensus rules.

Build Instructions

These instructions apply on Fedora 24. For other distributions, make sure you have installed Boost 1.58-1.63 first. You also have instructions to build test net here. For building, you need at least 4 GB of memory available.

We are testing using Fedora 25, x64

sudo dnf clean metadata
sudo dnf install automake autoconf libtool make cmake gcc flex bison doxygen gettext-devel git readline-devel openssl-devel libcurl-devel ncurses-devel boost-devel boost-static gcc-c++
mkdir -p ~/dev/SounDAC
cd ~/dev/SounDAC
git clone https://github.com/soundac/SounDAC-Source.git
cd ~/dev/SounDAC/SounDAC-Source
git submodule update --init --recursive
mkdir -p ~/dev/SounDAC/SounDAC-build
cd ../SounDAC-build
#optionally specify Boost root directory in case it is not installed on standard paths with -DBOOST_ROOT=/location/

#For production build
cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ~/dev/SounDAC/SounDAC-Source/
#For test net build
cmake -G "Unix Makefiles" -DBUILD_MUSE_TEST=ON -DCMAKE_BUILD_TYPE=Debug ~/dev/SounDAC/SounDAC-Source/

#optionally, install the binaries
cmake --build . --target all -- -j 3

Now the binaries shall be in directory ~/dev/SounDAC/SounDAC-build/programs/

Seed Nodes

138.197.68.175:33333 (production)
192.34.60.157:29092  (for testnet)

How to Start

First, start SounDAC daemon: (Witness will need additional config)

cd ~/dev/SounDAC/SounDAC-build
#For production: (genesis is embedded)
./programs/mused/mused --rpc-endpoint=0.0.0.0:8090

#For testnet
./programs/mused/mused -s 192.34.60.157:29092 --rpc-endpoint=0.0.0.0:8090 --genesis-json ~/dev/SounDAC/SounDAC-Source/genesis-test.json

The daemon is ready. The JSON-RPC is listening on localhost on port 8090

You may want to start it using screen to make server available after terminal is closed. Install screen with dnf install screen Start a new screen with command screen Then run ./mused with the right parameters You can reconnect to the screen later using screen -r

For witness setup

Here are the steps to setup a witness for the testnet Ensure you have opened ports in your firewall.

1- Go to http://138.197.98.184:3000/ws/accounts to generate your keys.
Use generate keys, write stuff, as long as it is random), just to generate a pair.
2- Note private and public owner keys generated
3- Prepare your test net build using instruction above
4- Launch node again:
cd %muse build folder%/mused/
./mused
5- Edit config: from current dir, witness_node_data_dir/config.ini
6- Set value of witness your account, and private-key to the private owner wif generated, then save file
You may also want to set enable-stale-production to true
7- Launch node again:
./mused --rpc-endpoint=127.0.0.1:8090 
8- muse is running... in another session, go to %muse build folder%/cli_wallet
9- Run cli_wallet:
./cli_wallet
10- set_password $your_wallet_pass...%
11- unlock "pass..."
12- import_key %owner priv key%
Use http://138.197.98.184:3000/ws/accounts to reobtain keys using your password if you don't have them
13- import key %active priv key%
Use http://138.197.98.184:3000/ws/accounts to reobtain keys using your password if you don't have them
14- use list_my_accounts, see if you see your account
15- get some vesting to transact...
16- announce yourself as a witness, change placeholders: update_witness "WitnessAccountName" "http://%???%" %witness_pub_key% {} true
17- get votes... use wallet to vote, ask someone to vote
18- at this point, you have votes, your node may be selected as an active witness and start produce blocks

soundac-source's People

Contributors

pmconrad avatar dominik-giroux avatar fbabin-lab avatar g-champagne avatar tilllinden avatar ejossev avatar emfrias avatar museblockchain avatar educatedwarrior avatar j4tner avatar lafona avatar theoreticalbts avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.