Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
##Destruction.sh - checks balances and removes any addresses from dumpwallet.txt with 0 inputs
#"dumpwallet dumpwallet.txt" and put in same directory as this script
#then run this script
#might want staking=0 in denarius.conf until everything is done
#stop wallet, move wallet.dat to wallet.bak, open wallet, "importwallet cleaned.txt"
#wait for rescan, "tail -f debug.log" to watch
#once your balance shows up, stop wallet, staking=1, start wallet
#DONE
#requires config.conf and rpc.sh from https://github.com/buzzkillb/bash-denariusrpc
#!/bin/bash
#Revolver - Cycle through single daemon to ping the network as fast as possible
#genkeylist.txt is a copy of your masternode.conf or fortunastake.conf in same directory this script runs from
# daemon location
denariusdaemon=/usr/local/bin/denariusd
# debug.log location
debuglog=~/.denarius/debug.log
# denarius.conf location
denariusconf=~/.denarius/denarius.conf
#########
# Remove the # from the UFW lines to make this fully work
#########
#!/bin/bash
. config.conf
. rpc.sh
wallet_ip=$(rpc_get_peerinfo | jq -r '.[].addr' | awk '!seen[$0]++')
while IFS= read -r
#!/bin/bash
#COLORS
BLUE='\033[0;34m'
CYAN='\033[0;36m'
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
#FUNCTIONS
@buzzkillb
buzzkillb / bitcoin_connection.py
Created May 17, 2020 08:24 — forked from sappelt/bitcoin_connection.py
How to establish a connection to the bitcoin manually. Peer discovery + connecting and sending version message
# Import requests and regex library
import requests
import re
def get_external_ip():
# Make a request to checkip.dyndns.org as proposed
# in https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery#DNS_Addresses
response = requests.get('http://checkip.dyndns.org').text
# Filter the response with a regex for an IPv4 address
@buzzkillb
buzzkillb / addrgen
Created May 4, 2020 21:18 — forked from JBaczuk/addrgen
addrgen
#!/bin/bash
echo
echo "Welcome to the Bitcoin address generator!"
echo "input private key (32 bytes, hex format)"
read priv
echo ""
echo "#####################################"
# priv=0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D # Testing only
#!/bin/bash
#denarius.io - Denarius Cryptocurrency [FortunaStake]
#checks every 30 minutes if a fortunastake has "notfound" status and restarts if found inactive, leave running in the background or in screen.
#chmod +x monitorfs.sh
#to run ./monitorfs.sh
#change password to your walletpassword
#adjust daemon wallet binary to your setup
#snap -> denarius.daemon
#compiled -> denariusd
#
#!/bin/bash
#for Denarius cryptocurrency - denarius.io, just change denariusd to your favorite coin daemon
#change all denariusd to denarius.daemon for snap daemon use
#bitcointalk thread - https://bitcointalk.org/index.php?topic=5238747
#create rawa.txt with txid and vouts for all inputs, then remove all extra spaces and newlines to rawb.txt
#rawa.txt put txid and vout
#rawb.txt remove extra space and put createtransaction begin text
#rawc.txt remove last comma and add rest of rawtx info creating the full raw transaction line
#
#txfee - fee you want to use
#!/bin/sh
#sudo apt install multitail
#wget tail-denarius.sh
#chmod +x tail-denarius.sh
#./tail-denarius.sh
#replace debug directory with your own locations
multitail --label "ddd " -ci green -e "SetBestChain" ~/snap/denarius/common/.denarius/debug.log \
--label "D01 " -ci green -e "SetBestChain" -I ~/snap/denarius_1/common/.denarius/debug.log \
--label "D02 " -ci green -e "SetBestChain" -I ~/snap/denarius_2/common/.denarius/debug.log \
#!/bin/bash
#Collateral Staker
#debug.log location
debuglog=~/snap/denarius/common/.denarius/debug.log
#copy alias to alias.txt
awk '{if(NR==1) print $1}' fortunastake.conf > alias.txt
#copy first line, columns 1, 2, 3 of fortunastake.conf to temporary file
awk '{if(NR==1) print $1, $2, $3 }' fortunastake.conf > staking1.txt