Jump to content

buzzkillb

Moderators
  • Content Count

    380
  • Joined

  • Last visited

  • Days Won

    74
  • Feedback

    N/A

buzzkillb last won the day on April 6

buzzkillb had the most liked content!

Community Reputation

239 Excellent

5 Followers

About buzzkillb

  • Rank
    Senior Denarian

Personal Information

  • D Address
    DBuzzkiLLrF4aTeSbYGWUD9bxKhud9DSiV

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. The above got me to thinking, how can I automate this? And that's where this script was born. https://gist.github.com/buzzkillb/878ff03068f141b01fa8afdcc92d9a25 What the script does is the user sets some parameters to look for in their wallet. Such as more than 1 input and a sum balance on an address of more than 0.001 D, and the script will search all of those addresses out, and combine every input in the address and send all of that back into the same address. Lets say you run a fortunastake and have 100's of 0.00000000 D inputs per address. This can help clear that up. Or you have been staking for a while and also mining, this can clear that up. If you run an exchange? Probably might work to clear the dust up. Basically does all of the steps above in a very crude bash script using jq, bc, awk, sed and some loops. All the user has to pay each time this is run is the tx fee per address.
  2. I was looking for a way to clean up my inputs without going one by one in the QT and using coin control, when I stumbled upon an older post of someone asking how to do this on Bitcoin as this seems to happen frequently. The idea was take a bunch of small inputs (dust) and combine with a larger amount and send. Over time with a lot of transactions and staking the inputs get to become many and very small. The basic way to create a raw transaction is by looking at your unspent list of transactions listunspent Which looks like this for my mining pool wallet which has a bunch of 0 fees after Denarius hit block 3mil 0 POW rewards and only mines tx fees. Lets say I am going to create a new address [DRiQL7nc1zXmSaxVswutYu2CGZtsEBqfQQ] and send those 3 amounts to it. We need to take note of the txid, vout, amount and tx fee for our coin. Denarius txfee is 0.00001 D Line by line lets copy down what we need f6d277fff890a86de7699e7ec8074e323556d89e895e652357da79c0d5fb77de 2 0.00000000 fa4c40deff3c9ac2eed8d20d21396465bcb19d4686583a1628b95e9a03f8ab4a 2 0.00000000 fb6e9ffdcb5b453e19fc7f46420faa329dd1ad1ec72699bdfa3f4856a24b362a 1 2.46936988 the total amount is 2.46936988 and then subtract 0.00001 & 0.00000001 for good measure, and send 2.46935987 D to our new address and combine these 3 inputs. createrawtransaction "[{\"txid\":\"f6d277fff890a86de7699e7ec8074e323556d89e895e652357da79c0d5fb77de\",\"vout\":2},{\"txid\":\"fa4c40deff3c9ac2eed8d20d21396465bcb19d4686583a1628b95e9a03f8ab4a\",\"vout\":2},{\"txid\":\"fb6e9ffdcb5b453e19fc7f46420faa329dd1ad1ec72699bdfa3f4856a24b362a\",\"vout\":1}]" {\"DRiQL7nc1zXmSaxVswutYu2CGZtsEBqfQQ\":2.46935987} Type this into the debug console or daemon line and adjust your txid's, vout's and at the end adjust your send to address and amount to send. Those \ seem to be required for this wallet to parse what you are sending in. This spits a transaction out. 01000000d3568d5e03de77fbd5c079da5723655e899ed85635324e07c87e9e69e76da890f8ff77d2f60200000000ffffffff4aabf8039a5eb928163a5886469db1bc656439210dd2d8eec29a3cffde404cfa0200000000ffffffff2a364ba256483ffabd9926c71eadd19d32aa0f42467ffc193e455bcbfd9f6efb0100000000ffffffff01b3f1b70e000000001976a914e1af17e42eba3528c9b9bd32e0df648e06eb0dcd88ac00000000 Now we want to sign the transaction from our wallet. signrawtransaction and the white output from above. signrawtransaction 01000000d3568d5e03de77fbd5c079da5723655e899ed85635324e07c87e9e69e76da890f8ff77d2f60200000000ffffffff4aabf8039a5eb928163a5886469db1bc656439210dd2d8eec29a3cffde404cfa0200000000ffffffff2a364ba256483ffabd9926c71eadd19d32aa0f42467ffc193e455bcbfd9f6efb0100000000ffffffff01b3f1b70e000000001976a914e1af17e42eba3528c9b9bd32e0df648e06eb0dcd88ac00000000 This spits the signed info out. { "hex" : "01000000d3568d5e03de77fbd5c079da5723655e899ed85635324e07c87e9e69e76da890f8ff77d2f6020000006b483045022100f1ab0d5415c9f8f44edcdf493533f2ca538de43f18f994392fadb0f497d444af02200af35af9c9d01799a6fcab52fe8be8bb65c5fa16e1e17d6facdfecb78dc73ad00121020a6c9ce6f2a9ea59bb8f6fdd760c647c6cf86357e9e042645b9fc95c383fed54ffffffff4aabf8039a5eb928163a5886469db1bc656439210dd2d8eec29a3cffde404cfa020000006b483045022100cd09ee00e1965edbc8ffa084cf7b60b1ef0554426218c2ed5c864e4efdcffde102205f3a590631756d1fba2a597571fa805397741adae26fb708cb9138c1038332f50121020a6c9ce6f2a9ea59bb8f6fdd760c647c6cf86357e9e042645b9fc95c383fed54ffffffff2a364ba256483ffabd9926c71eadd19d32aa0f42467ffc193e455bcbfd9f6efb010000004847304402204c553ff24b9252986eacff676acbc43818e17570c06fd67ea707263d8cca037602205e032dc3a58ed9d4fb3f0fc9f20e2956f8459b68f712af69215d68c549b44f8301ffffffff01b3f1b70e000000001976a914e1af17e42eba3528c9b9bd32e0df648e06eb0dcd88ac00000000", "complete" : true } Now for the send. sendrawtransaction and the long white out between the quotes. sendrawtransaction 01000000d3568d5e03de77fbd5c079da5723655e899ed85635324e07c87e9e69e76da890f8ff77d2f6020000006b483045022100f1ab0d5415c9f8f44edcdf493533f2ca538de43f18f994392fadb0f497d444af02200af35af9c9d01799a6fcab52fe8be8bb65c5fa16e1e17d6facdfecb78dc73ad00121020a6c9ce6f2a9ea59bb8f6fdd760c647c6cf86357e9e042645b9fc95c383fed54ffffffff4aabf8039a5eb928163a5886469db1bc656439210dd2d8eec29a3cffde404cfa020000006b483045022100cd09ee00e1965edbc8ffa084cf7b60b1ef0554426218c2ed5c864e4efdcffde102205f3a590631756d1fba2a597571fa805397741adae26fb708cb9138c1038332f50121020a6c9ce6f2a9ea59bb8f6fdd760c647c6cf86357e9e042645b9fc95c383fed54ffffffff2a364ba256483ffabd9926c71eadd19d32aa0f42467ffc193e455bcbfd9f6efb010000004847304402204c553ff24b9252986eacff676acbc43818e17570c06fd67ea707263d8cca037602205e032dc3a58ed9d4fb3f0fc9f20e2956f8459b68f712af69215d68c549b44f8301ffffffff01b3f1b70e000000001976a914e1af17e42eba3528c9b9bd32e0df648e06eb0dcd88ac00000000 And then you get your new transaction id to check on the explorer. 1d9f74c8a791d004a83348b2350a9f25f67646f7baa632890ebe9e533275b359 Check on coinexplorer https://www.coinexplorer.net/D/transaction/1d9f74c8a791d004a83348b2350a9f25f67646f7baa632890ebe9e533275b359 and we can see the 3 inputs are now combined into a new address. Also those 0.00000000's disappear from our wallet.
  3. Going to look at this, this week. Generic seeder sounds perfect. Denarius has 2 main block explorers and sometimes 1 or the other loses sync and gets stuck for a while. Can your failover allow it to check both and pick the higher height?
  4. update openssl download location to https://ftp.openssl.org/source/old/1.0.1/openssl-1.0.1j.tar.gz
  5. when the database gets destroyed an easy way to reset is by stopping the pool and then redis-cli FLUSHALL quit then remove the dump file cd /var/lib/redis rm dump.rdb cd ~ restart redis /etc/init.d/redis-server restart restart pool cd nomp node init.js
  6. forked and added carsen's tradeogre market with sample Denarius settings.json.template https://github.com/buzzkillb/D-explorer
  7. For latest 1.7.3 release recompile daemon putting a // in front of this line https://github.com/carsenk/denarius/blob/master/src/rpcrawtransaction.cpp#L115 Error reading "last" property during reindex reference: https://github.com/iquidus/explorer/issues/335 Change to amount of CPU's and test sync "block_parallel_tasks": 4, sample settings.json /* This file must be valid JSON. But comments are allowed Please edit settings.json, not settings.json.template */ { // name your instance! "title": "IQUIDUS", "address": "127.0.0.1:3001", // coin name "coin": "Denarius", // coin symbol "symbol": "D", // logo "logo": "/images/logo.png", // favicon "favicon": "public/favicon.ico", // Uses bootswatch themes (http://bootswatch.com/) // Valid options: // Cerulean, Cosmo, Cyborg, Darkly, Flatly, Journal, Lumen, Paper, // Readable, Sandstone, Simplex, Slate, Spacelab, Superhero, United, Yeti // theme (see /public/themes for available themes) "theme": "Cyborg", // port to listen for requests on. "port" : 3001, // database settings (MongoDB) "dbsettings": { "user": "iquidus", "password": "password", "database": "explorerdb", "address": "localhost", "port": 27017 }, //update script settings "update_timeout": 10, "check_timeout": 250, "block_parallel_tasks": 4, // wallet settings "use_rpc": true, "wallet": { "host": "localhost", "port": 32369, "username": "denarius", "password": "password" }, // confirmations "confirmations": 10, // language settings "locale": "locale/en.json", // menu settings "display": { "api": true, "markets": true, "richlist": true, "twitter": true, "facebook": false, "googleplus": false, "youtube": false, "search": true, "movement": true, "network": true }, // index page (valid options for difficulty are POW, POS or Hybrid) "index": { "show_hashrate": true, // Show Market Cap in header "show_market_cap": false, // Show Market Cap in place of price box "show_market_cap_over_price": false, "difficulty": "Hybrid", "last_txs": 100, "txs_per_page": 10 }, // ensure links on API page are valid "api": { "blockindex": 1337, "blockhash": "000000000661c86bf89e652eb142093bd9123006f3085595dee183bfe1c24570", "txhash": "000000000661c86bf89e652eb142093bd9123006f3085595dee183bfe1c24570", "address": "DABQj7yoQuvfxVVWMf2mqWhoHLDMUqUJsc" }, // market settings //supported markets: bittrex, poloniex, yobit, empoex, bleutrade, cryptopia, ccex //default market is loaded by default and determines last price in header "markets": { "coin": "JBS", "exchange": "D", "enabled": ["bittrex"], "cryptopia_id": "1658", "ccex_key" : "Get-Your-Own-Key", "default": "bittrex" }, // richlist/top100 settings "richlist": { "distribution": true, "received": true, "balance": true }, // movement page settings // min amount: show transactions greater than this value // low flag: greater than this value flagged yellow // high flag: greater than this value flagged red "movement": { "min_amount": 100, "low_flag": 1000, "high_flag": 5000 }, // twitter, facebook, googleplus, youtube "twitter": "iquidus", "facebook": "yourfacebookpage", "googleplus": "yourgooglepluspage", "youtube": "youryoutubechannel", //genesis "genesis_tx": "c6d8e8f56c25cac33567e571a3497bfc97f715140fcfe16d971333b38e4ee0f2", "genesis_block": "00000d5dbbda01621cfc16bbc1f9bf3264d641a5dbf0de89fd0182c2c4828fcd", //heavy (enable/disable additional heavy features) "heavy": false, //disable saving blocks & TXs via API during indexing. "lock_during_index": false, //amount of txs to index per address (stores latest n txs) "txcount": 100, "txcount_per_page": 50, //show total sent & received on address page (set false if PoS) "show_sent_received": true, // how to calculate current coin supply // COINBASE : total sent from coinbase (PoW) // GETINFO : retreive from getinfo api call (PoS) // HEAVY: retreive from heavys getsupply api call // BALANCES : total of all address balances // TXOUTSET : retreive from gettxoutsetinfo api call "supply": "GETINFO", // how to acquire network hashrate // getnetworkhashps: uses getnetworkhashps api call, returns in GH/s // netmhashps: uses getmininginfo.netmhashpsm returns in MH/s "nethash": "netmhashps", // nethash unitd: sets nethash API return units // valid options: "P" (PH/s), "T" (TH/s), "G" (GH/s), "M" (MH/s), "K" (KH/s) "nethash_units": "G", // Address labels // example : "JhbrvAmM7kNpwA6wD5KoAsbtikLWWMNPcM": {"label": "This is a burn address", "type":"danger", "url":"http://example.com"} // label (required) = test to display // type (optional) = class of label, valid types: default, primary, warning, danger, success // url (optional) = url to link to for more information "labels": { "DDD6SzCwXSEcTPHmNwEQX6xbUs2Rf3svNX": {"label": "Cryptopia", "type":"primary", "url":"http://disney.com"}, // "JSWVXHWeYNknPdG9uDrcBoZHztKMFCsndw": {"label": "Cryptsy"} } }
  8. Running non stock kernels in Ubuntu, you might get an SELINUX error like "cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context" sudo apt install selinux-policy-default sudo nano /etc/selinux/config then change the config file to SELINUX=disabled # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled reboot system reference: https://forum.snapcraft.io/t/selinux-warning-when-running-lxc/11100/11
  9. Ubuntu 20.04 QT sudo apt-get update -y && sudo apt-get upgrade -y sudo apt-get install -y git unzip build-essential libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qt5-default zlib1g-dev jq libcurl4-openssl-dev sudo apt-get install make wget https://ftp.openssl.org/source/old/1.0.1/openssl-1.0.1j.tar.gz tar -xzvf openssl-1.0.1j.tar.gz cd openssl-1.0.1j ./config make depend make sudo make install sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` cd ~ openssl version -v sudo apt-get install libbz2-dev wget -O boost_1_55_0.tar.gz https://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download tar xzvf boost_1_55_0.tar.gz cd boost_1_55_0/ ./bootstrap.sh --prefix=/usr/local ./b2 sudo ./b2 install sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/boost.conf' sudo ldconfig git clone https://github.com/carsenk/denarius cd denarius git checkout master git pull qmake "USE_UPNP=1" "USE_QRCODE=1" BOOST_LIB_PATH=/usr/local/lib LIBS=-lboost_chrono OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro make ./Denarius
  10. Getting multi nvidia GPU to work on Ubuntu headless is interesting. I am running on Ubuntu 19.10 Server headless with a mix of 1080 and 1070's. install nvidia drivers sudo apt install ubuntu-drivers-common ubuntu-drivers devices sudo ubuntu-drivers autoinstall install opencl drivers sudo apt update sudo apt install ocl-icd-opencl-dev reboot sudo reboot now install folding at home from the deb. What I then did from FAHControl was remove all the slots and save. If it worked you will see this in the System Info tab, if not try rebooting again.
  11. A better way to force finding new work. Go into FAHControl and go to the Status tab of your machine that doesn't have work. Under Folding Slots, right click the slot with no work. Click On Idle wait about 5 seconds, and then click On Idle again.
  12. To set big advanced work units for even more bonus points, go into FAHControl. Click the Slots tab, then your slot and then edit Then scroll down to Extra slot options and click Add Then type in client-type and bigadv, then click OK, save and restart the client. For more info on Big Advanced setting https://foldingathome.org/faqs/configuration-guide/switches-flags-options-v7-4-x-v6-32/big-advanced/
  13. To remote control the linux headless using FAHControl on Windows for instance. Edit config.xml on your headless server to include the password line. <!-- Remote Command Server --> <password v='password'/> example config.xml, replace passkey with your generated passkey for bonus points and make up a password for password. <config> <!-- Client Control --> <fold-anon v='true'/> <!-- Folding Slot Configuration --> <gpu v='false'/> <!-- HTTP Server --> <allow v='127.0.0.1,192.168.1.0/24'/> <!-- Remote Command Server --> <password v='password'/> <!-- Slot Control --> <power v='FULL'/> <!-- User Information --> <passkey v='passkey'/> <team v='246218'/> <user v='buzzkillb'/> <!-- Web Server --> <web-allow v='127.0.0.1,192.168.1.0/24'/> <!-- Folding Slots --> <slot id='0' type='CPU'/> </config> Restart the headless client sudo /etc/init.d/FAHClient restart Then in Windows go to FAHControl and add your server. Click Add in bottom left, then give your server a Name, use the IP address of the server, and the password you made up in the above file.
  14. If a cpu or gpu appears stuck and can't do new work. Try going to FAHControl and click Pause then Fold. On headless I just did below command to get new work units after CPU had issues getting more work. sudo /etc/init.d/FAHClient restart
  15. setup a passkey for bonus points https://apps.foldingathome.org/getpasskey
×
×
  • Create New...