GithubHelp home page GithubHelp logo

decentr's Introduction

Decentr

go version testnet version mainnet version latest version

Decentr blockchain

Run Local Node Quick Start

This assumes that you're running Linux or MacOS and have installed Go 1.19+. This guide helps you:

  • build and install Decentr
  • allow you to name your node
  • add seeds to your config file
  • download genesis state
  • start your node
  • use decentrdcli to check the status of your node.

If you already have a previous version of Decentr installed:

rm -rf ~/.decentr

Mainnet

Build, Install, and Name your Node:

# Clone Decentr from the latest release
git clone https://github.com/Decentr-net/decentr
# Enter the folder Decentr was cloned into
cd decentr && git checkout v1.6.2
# Compile and install Decentr
make install
# Initialize decentrd in ~/.decentrd and name your node
decentrd init <yournodenamehere>

Patch Seeds:

sed -E -i 's/seeds = \".*\"/seeds = \"7708addcfb9d4ff394b18fbc6c016b4aaa90a10a@ares.mainnet.decentr.xyz:26656,8a3485f940c3b2b9f0dd979a16ea28de154f14dd@calliope.mainnet.decentr.xyz:26656,87490fd832f3226ac5d090f6a438d402670881d0@euterpe.mainnet.decentr.xyz:26656,3261bff0b7c16dcf6b5b8e62dd54faafbfd75415@hera.mainnet.decentr.xyz:26656,5f3cfa2e3d5ed2c2ef699c8593a3d93c902406a9@hermes.mainnet.decentr.xyz:26656,a529801b5390f56d5c280eaff4ae95b7163e385f@melpomene.mainnet.decentr.xyz:26656,385129dbe71bceff982204afa11ed7fa0ee39430@poseidon.mainnet.decentr.xyz:26656,35a934228c32ad8329ac917613a25474cc79bc08@terpsichore.mainnet.decentr.xyz:26656,0fd62bcd1de6f2e3cfc15852cdde9f3f8a7987e4@thalia.mainnet.decentr.xyz:26656,bd99693d0dbc855b0367f781fb48bf1ca6a6a58b@zeus.mainnet.decentr.xyz:26656\"/' $HOME/.decentr/config/config.toml

Download snapshot:

# remove old data in ~/.decentr/data/
rm -rf ~/.decentr/data/; \
mkdir -p ~/.decentr/data/; \
cd ~/.decentr/data/

# download snapshot
SNAP_NAME=$(curl -s https://snapshots.mainnet.decentr.xyz | egrep -o ">decentr-.*tar.gz" | tr -d ">" | tail -n 1)
wget -O - https://snapshots.mainnet.decentr.xyz/${SNAP_NAME} | tar xzf -

Download Genesis, Start your Node, Check your Node Status:

# Download genesis.json
wget -O $HOME/.decentr/config/genesis.json https://raw.githubusercontent.com/Decentr-net/mainnets/master/3.0/genesis.json
# Start Decentrd
decentrd start
# Check your node's status
decentrd status

Welcome to the Decentr Mainnet!

Testnet

Build, Install, and Name your Node:

# Clone Decentr from the latest release
git clone -b v1.6.2 https://github.com/Decentr-net/decentr
# Enter the folder Decentr was cloned into
cd decentr
# Compile and install Decentr
make install
# Initialize decentrd in ~/.decentrd and name your node
decentrd init <yournodenamehere>

Patch Seeds:

sed -E -i 's/seeds = \".*\"/seeds = \"73fcfee94c476d185cb7a35863bf82fb444c500b@ares.testnet.decentr.xyz:26656,890fa479c89ba88facd964c30eb7d84fbfb0072b@hera.testnet.decentr.xyz:26656,600fc5298ac55e4af6c5c00f18714c6cd313bb5c@hermes.testnet.decentr.xyz:26656,2a13e93e8b27c09baacaf68fdd7db5401f4b9060@poseidon.testnet.decentr.xyz:26656,345675d302faaf602d8e1eca791cc11766ff1832@zeus.testnet.decentr.xyz:26656\"/' $HOME/.decentr/config/config.toml

Download Genesis, Start your Node, Check your Node Status:

# Download genesis.json
wget -O $HOME/.decentr/config/genesis.json https://raw.githubusercontent.com/Decentr-net/testnets/master/1.5.0/genesis.json
# Start Decentrd
decentrd start
# Check your node's status
decentrd status

Welcome to the Decentr Testnet!

Dev tools

Requirements

To build project you should have:

  • go >= 1.19
  • docker

Guide

To fetch last proto 3rd party

make proto-update-deps

To generate go models from proto

make proto-gen

To generate swagger from proto

make proto-swagger-gen

Scripts

Follow us!

Your data is value. Decentr makes your data payable and tradeable online.

decentr's People

Contributors

megaherz avatar mikluke avatar nanikeev avatar zdeadex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

decentr's Issues

chrome-extension unsupported breaking NativeMessagingHosts based plugins

Hello,

While trying to setup the plugin KeepassXC on Decentr, the plugins communicates with the app running on the desktop to request and save the data. This communication is done via NativeMessagingHosts where the plugin sets the configuration for the app in a json file and adds the path to the registry:
Computador\HKEY_CURRENT_USER\SOFTWARE\Chromium\NativeMessagingHosts\

An example of the path content:
image

(ignore the org.keepassxc.keepassxc_browser_decentr.json one this was my testing it)

An example of the configuration file would be:

{
    "allowed_origins": [
        "chrome-extension://pdffhmdngciaglkoretcmckehcpafo/",
        "chrome-extension://oboonakemofpalerttoadofidjkkk/"
    ],
    "description": "KeePassXC integration with native messaging support",
    "name": "org.keepassxc.keepassxc_browser",
    "path": "D:\\KeePassXC\\keepassxc-proxy.exe",
    "type": "stdio"
}

Decentr is able to go as far as finding the json files but then it doesn't accept it because it's looking for the chromium.json file, this one contains chrome-extension:// scheme which is not supported by Decentr. I tried creating the decentr.json containing the decentr-extension:// scheme but the browser goes directly for chromium.json. Upon changing the scheme in chromium.json the addon works well.

I'm guessing a solution would be for Decentr look for is own json file ending in decentr.json and add support for chrome-extension:// scheme for the sake of supporting other plugins using this type of communication. In Brave the file used ends in brave.json but the scheme is still "chrome-extension://".

wifi

why could i sign in

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.