GithubHelp home page GithubHelp logo

ziutop / core-blockchain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dogcoin-network/core-blockchain

0.0 0.0 0.0 15.19 MB

The core blockchain code of Dogcoin Network

Home Page: https://core-blockchain.vercel.app

License: GNU Lesser General Public License v3.0

Shell 0.14% JavaScript 3.39% Ruby 0.01% Python 0.05% C 8.13% Java 0.23% Go 86.42% Assembly 0.73% Makefile 0.07% HTML 0.09% NSIS 0.18% M4 0.20% Dockerfile 0.02% Sage 0.23% Solidity 0.12%

core-blockchain's Introduction

Dogcoin Network

N|Solid

Build Status

Instructions to setup Validator node

Dogcoin Validator Node is very easy to install and deploy in a Docker container. This requires Docker and Docker Compose to run.

Step 1: Install Docker

sudo apt install docker && sudo apt install docker-compose

Step 2: Clone the Github repository

git clone https://github.com/dogcoin-network/Core-Blockchain.git

Step 3: Navigate into the directory where you've cloned this repository

cd Core-Blockchain/

Step 4: Add your wallet's address, private key and password to docker-compose.yml file

There are environment & args on the line number 5 & 12 respectively, There are fields in key: value format Simply copy paste your values save the file.

  • Open the docker-compose.yml file nano docker-compose.yml or you can use any other editor as well.
  • Find the code snippet shown as below and add your wallet's private key and the password.
  • To paste in the nano editor you'll need to use this keyboard shortcut - ctrl + shift + v
  • Now to save and exit from nano editor please do it this way - ctrl + x, press y and just hit enter

( For MAC users please use cmd instead of ctrl )

sample snippets

Add your wallet address in the environment as shown below

environment:
      address=921343c8cfW30d8caa70488884d532Ece203c045

then add the private key and the password as shown below

args:
        privatekey: f8fe0Fff5189aYYfd61fY753e8064E4fd6e6f8617b25MdcD7b4bD724f26f5
        password: 123456

Step 5: Run the docker composer

sudo docker-compose up --build

Now wait for the docker image to be built and up...

Step 6: Add peer

When the building process done successfully and the validator prompt running then you'll have to add the peer as shown below. Get the enode and use it here.

admin.addPeer("enode://2072370eb034a99113eb4c63c8exxxxxxxx42ff08040ed384c757fcaf9cc802702874072f7458cc50c7693b9fa8xxxxxxxxxc69cb@bootnodeIp:32668")

You can directly paste in the running terminal using ctrl + v or cmd + v (for mac) and hit enter And that's all.

core-blockchain's People

Contributors

dwarkesh8 avatar solidityx 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.