8000 GitHub - smk762/dragon_node: TUI for NN ops
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

smk762/dragon_node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dragon Node

image

A node management tool for Komodo Platform Notary Node Operations


Setup

  1. Clone this repository: git clone https://github.com/smk762/dragon_node. Use the season-seven branch, or season-sever-dev if you want to test the latest features.
  2. Run ./setup to install dependencies

Usage

  1. Use ./tui to launch the TUI
  2. Use ./stats to enter a stats display loop
  3. Use ./split to split utxos (can be run in crontab)
  4. Use ./start_main or ./start_3p, to launch iguana for a server, or run ./start_dpow, to launch iguana for both servers

Features

image

  • Private key conversion
  • Private key import (for each server)
  • Private key list (from KMD pk)
  • Address list from pubkey
  • dPoW stats display loop
  • UTXO splitting (in tui, or can run in crontab via ./split)
  • Funds conolidation
  • Iguana & mining status indicators
  • Wallet reset (work in progress - use at own risk; some 3P coins not supported)
  • Automated KMD funds sweeping
  • Automated Mining activation/deactivation
  • Add whitelist addresses to conf files
  • Add peer IPs for addnode to conf files

Configuration

To use the consolidate feature for EMC2 and MIL, you will need an API key from https://chainz.cryptoid.info/api.dws This API key should be stored in a .env file in the root directory of the project. If you are using a different path for your MM2.json file, you can also set the MM2_JSON_PATH variable in the .env file.

For example:

CRYPTOID_API_KEY=xxNotARealKeyxx
MM2_JSON_PATH="/path/to/MM2.json"    # Defaults to ~/notary_docker_3p/mm2/MM2.json

User config can be edited via the TUI, or by manually editing the config.json file. For example:

{
    "userhome": "/home/dragonhound",
    "sweep_address": "RQBvgJ3D6HesSfJ1ZdQwAn9XfdXGWsxTSL",
    "pubkey_main": "039bb16266b0216264e7d3ccae12633105e1c14bd5d0e144e8b9c2b6d298a6c545",
    "pubkey_3p": "026d378de09ba51d8f56be52bc8d02f5e20bae843406e23686047b76c72412a7b3",
    "addnode": {
        "komodostats": "seed.komodostats.com",
        "webworker": "seed.webworker.sh"
    },
    "whitelist": {
        "s6_dragonhound_DEV_main": "RDragoNHdwovvsDLSLMiAEzEArAD3kq6FN",
        "s6_dragonhound_DEV_3p": "RLdmqsXEor84FC8wqDAZbkmJLpgf2nUSkq",
        "s7_dragonhound_DEV_main": "RHi882Amab35uXjqBZjVxgEgmkkMu454KK",
        "s7_dragonhound_DEV_3p": "RHound8PpyhVLfi56dC7MK3ZvvkAmB3bvQ"
    },
    "addnotary": {
        "dragonhound_AR": "15.235.204.174",
        "dragonhound_NA": "209.222.101.247",
        "dragonhound_DEV": "103.195.100.32"
    },
    "addresses": {
        "KMD_3P": "RCNyZmHjqPrru1SiijA4fgUeEKZ6u2JVvD",
        "TOKEL": "RCNyZmHjqPrru1SiijA4fgUeEKZ6u2JVvD",
        "MCL": "RCNyZmHjqPrru1SiijA4fgUeEKZ6u2JVvD",
        "AYA": "AJsf8kG5ZiiSdyHWpCqGj3QXwf2CdsPmDu",
        "EMC2": "ELFgyqExfXMCpJgP4QATaJ8QEhbdj5wGyy",
        "MIL": "MAzwigJrjbE6ig3rUXpspRkmwGyfkrEjZF",
        "CHIPS": "RCNyZmHjqPrru1SiijA4fgUeEKZ6u2JVvD",
        "PIR
69BD
ATE": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "CCL": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "CLC": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "ILN": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "SUPERNET": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "DOC": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "MARTY": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "LTC": "Lga1bKF6FSHx9RqbC4gE1iS4PFncyaQ7W9",
        "GLEEC": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "GLEEC_OLD": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "KOIN": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "KMD": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "THC": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE",
        "NINJA": "RWdFQcpYmbrTxdWdV6g3qDhVwJswVQCGWE"
    }
}

Note:

  • Addresses (except for the sweep address) are automatically calculated from pubkeys, so these are considered readonly in the app. If you want to change an address, you should change the pubkey.
  • Added whitelist addresses will not take effect until daemons are restarted.

Additionally, coins config (such as split amount and threshold) can be changed by manually editing the coins_ntx_data.json file. For example:

    "DOC": {
        "conf": "/home/smk762/.komodo/DOC/DOC.conf",
        "wallet": "/home/smk762/.komodo/DOC/wallet.dat",
        "utxo_value": 0.0001,
        "split_threshold": 20,
        "split_amount": 20,
        "server": "main",
        "address": "RGBEt22GeFXRvZjfZpvzo68aaxEUtAFZg8",
        "txfee": 0.00001,
        "pubkey": "030a72f1a15f67624aea55743c5b777bdd55362596add77b544ee2e582bdebf0c7"
    }

About

TUI for NN ops

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0