Skip to content

Instantly share code, notes, and snippets.

@imylomylo
Created July 19, 2019 07:17
Show Gist options
  • Save imylomylo/a91b7e1054b053a2e43229ed77995f0d to your computer and use it in GitHub Desktop.
Save imylomylo/a91b7e1054b053a2e43229ed77995f0d to your computer and use it in GitHub Desktop.
komodo wallet no restart awesomeness
GreerToday at 2:45 AM
Steps to AJSS awesomesauce:

cd ~/komodo
git checkout FSM
git clean -fdx #you will lose any changes that you have made in this repo
./zcutil/build.sh -j(nproc)
ln -s ~.komodo/pubkey.txt ~/komodo/src #you may do this differently
komodo-cli stop
cp ~/.komodo/wallet.dat ~/.komodo/wallet.preAJSS
komodod $mining_args -notary -pubkey=$pubkey &
cd
git clone https://github.com/DeckerSU/komodo_scripts.git
cd komodo_scripts
source ~/komodo/src/pubkey.txt
KOMODOD_CONFIGFILE=~/.komodo/komodo.conf
./resend_funds.sh #it will just show you the raw tx
sed -i '247s/false/true/' resend_funds.sh # or just edit file preferred way
komodo-cli cleanwallettransactions "$txid"

Note: wallet size will not reduce but it will be faster anyway.
either resend_funds.sh could use an edit to populate the vars or more likely a wrapper script to create those vars for a given ac and run cleanwallettransactions
if I ever get a minute I have some ideas on that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment