GithubHelp home page GithubHelp logo

notary-scripts's Introduction

Scripts for running Komodo Notary Node

Use https://github.com/DeckerSU/address_gen to generate seed words for vanity KMD addresses.

diff --git a/vanity.cpp b/vanity.cpp
index 69e879e..e5a35b9 100644
--- a/vanity.cpp
+++ b/vanity.cpp
@@ -130,7 +130,7 @@ int main()
     std::string start_pattern = "beginofyourpassphrase";
     std::string end_pattern = "endofyourpassphrase";
     
-    check_passphrase(start_pattern, end_pattern, "komod");
+    check_passphrase(start_pattern, end_pattern, "gcg");
 
     return 0; 
-}

Notary script repos for reference:

The scripts in this repo work in Debian 10

For both Main and 3P server

Update tmux and install dependencies

./init.sh # installs deps
./tmux_install_latest.sh # optional, but prerequisite for tailNstart_coins_tmux.sh script

Kill the current tmux session and relaunch a new one if necessary.

Set ulimit value in both servers

In a fresh server:

Edit the /etc/security/limits.conf file

sudo nano /etc/security/limits.conf

add these lines:

* soft nofile 1000000
* hard nofile 1000000

Save and close the file

Edit the /etc/pam.d/common-session file

sudo nano /etc/pam.d/common-session

add this line:

session required pam_limits.so

Save and close the file, then reboot the server. After reboot, confirm that the ulimit value is updated to 1000000

ulimit -n

Config

  • cp config_sample config
  • change the values of pubkey and passphrase appropriately (Main server vs 3P) in the newly created config file
  • also, change one of the keys main or third_party to true appropriately

Both Servers

./build.sh
php genWifImports.php # in a different window/pane and execute the commands displayed to import the wifs. wait for the daemons to start syncing and execute the applicable wif import commands
./stop_coins.sh # wait a minute and check htop to verify all the coins are stopped
./tailNstart_coins_tmux.sh 1 # starts a new window with all the tails and starts all the daemons with pubkeys
./allow_ports.sh # opens coin ports
./start_dPoW.sh # after chains are synced and rescans are done

notary-scripts's People

Contributors

gcharang avatar

Watchers

James Cloos avatar  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.