Jump to content

All Activity

This stream auto-updates     

  1. Yesterday
  2. 🔥🔥🔥200 HPOINTS giveaway 🔥🔥🔥 Get Free Tokens to try our casino! Simply fill the form and follow the steps: https://forms.gle/EdoCAN8p4CXv4Vt76 Prizes will be sent on 08/Feb/20
  3. Last week
  4. ❤️ 🐭 Dear BetHashers, Happy Lunar New Year! 🐭 ❤️ Our team wishes more positive moments in your life, more wins, more profits, and more fulfilled goals! Let's make this year even better together 🐭 Sincerely, BetHash team ❤️
  5. When you're a master of Dice game 😎 Take a look at how one of our whales is making incredible profits every single day!!!
  6. In our games, even small bets can give huge profits! Don't miss the opportunity! https://bethash.io/game/slots
  7. Our whales once again making crazy profits on the Lottery game!!! Who can beat them at the Race competition?
  8. Are you tired of classic Lottery or Dice games? - We have a solution for you! Try Banked Bull game, one of the most popular games among crypto gambles! https://bethash.io/game/bull
  9. Earlier
  10. This is an official BetHash thread! For more information, please join our Telegram channel: https://t.me/BetHash
  11. How to compile daemon in Ubuntu 19.10 https://github.com/carsenk/denarius/issues/256
  12. Lets say you want to create a simple website and share that on IPFS, we will add a subdomain at the end to make the website easier to find. First create an index.html file with your site. Now go to the QT wallet, click the Jupiter tab, select your file and click Upload to IPFS. Once the file uploads you get the IPFS hash. Click view on Infura or Cloudflare. Lets add one more twist to make this easier to find. I am going to use namecheap as an example of how to create a subdomain to the IPFS hash. Add a TXT record to your new IPFS hash. I am using ipfschain as my subdomain and dnslink=/ipfs/QmPm4AUBGsTjiKN3UtxTtarw4CKAcPNSVjNU18Tjrm6N7R as the IPFS hash. Save this, wait a few minutes and now try https://cloudflare-ipfs.com/ipns/ipfschain.pos.watch
  13. Hi buzzkillb, unfortunatelly new pichaindata.zip did not help. It still not getting new blocks and plenty of errors and orphans. It is ARMv8-A - Rockchip RK3399.
  14. Lets make sure to run that python file over and over and over on every new block. Go into denarius.conf and add this line. I have my files in a influx directory. blocknotify=/home/USERNAME/influx/block.sh Lets create block.sh in the influx directory and throw our sample.py in there #!/bin/bash python /home/USERNAME/influx/sample.py make block.sh executable chmod +x block.sh stop and restart daemon to pick this change up denariusd stop denariusd If it all went right your grafana page should start updating the block count.
  15. Login to your localhost grafana. http://192.168.1.337:3000/ on the left click the gear -> data sources add data source search for influxdb use settings like this save and test Go back to the grafana homepage and click + and add query Your query would look something like this. Remember to select your mydb database, my screenshot is using another name for the DB. Visualization General Click Save at the top right Should see something like this on your homepage.
  16. Create a new database ininfluxdb. Run influx to get into the command prompt. influx create database CREATE DATABASE mydb use database USE mydb from a second command line, lets make a sample.py sample.py from denariusrpc.authproxy import AuthServiceProxy, JSONRPCException import time import sys import datetime import urllib import json from influxdb import InfluxDBClient # rpc_user and rpc_password are set in the denarius.conf file rpc_connection = AuthServiceProxy("http://%s:%[email protected]:32369"%("rpc_user", "rpc_password")) #test blocktest = rpc_connection.getblockcount() print(blocktest) # Configure InfluxDB connection variables host = "127.0.0.1" # My Ubuntu NUC port = 8086 # default port user = "admin" # the user/password created for the pi, with write access password = "admin" dbname = "mydb" # the database we created earlier interval = 60 # Sample period in seconds # Create the InfluxDB client object client = InfluxDBClient(host, port, user, password, dbname) # think of measurement as a SQL table, it's not...but... measurement = "measurement" # location will be used as a grouping tag later blockchain = "denarius" blockcount = rpc_connection.getblockcount() block = rpc_connection.getblockbynumber(blockcount) grafanatime = block['time'] * 1000000000 hash = block['hash'] size = block['size'] height = block['height'] version = block['version'] merkleroot = block['merkleroot'] mint = int(block['mint']) timed = block['time'] nonce = block['nonce'] bits = block['bits'] difficulty = float(block['difficulty']) blocktrust = block['blocktrust'] chaintrust = block['chaintrust'] chainwork = block['chainwork'] previousblockhash = block['previousblockhash'] #nextblockhash = block['nextblockhash'] flags = block['flags'] proofhash = block['proofhash'] entropybit = block['entropybit'] modifier = block['modifier'] modifierchecksum = block['modifierchecksum'] data = [ { "measurement": measurement, "tags": { "blockchain": blockchain, }, "time": grafanatime, "fields": { #"block" : i, "hash" : hash, "size" : size, "height" : height, "version" : version, "merkleroot" : merkleroot, "mint" : mint, "time" : timed, "nonce" : nonce, "bits" : bits, "difficulty" : difficulty, "blocktrust" : blocktrust, "chaintrust" : chaintrust, "chainwork" : chainwork, # "nextblockhash" : nextblockhash, "flags" : flags, "proofhash" : proofhash, "entropybit" : entropybit, "modifier" : modifier, "modifierchecksum" : modifierchecksum } } ] # Send the JSON data to InfluxDB print(difficulty) client.write_points(data) If you run python sample.py you should see data appear in your influxdb. Run below a few times to throw data in. python sample.py In the other command line running influx already, make sure you are using the correct database and lets see if the data is inside. use mydb SELECT * FROM /.*/ LIMIT 10 You should see output, now we need to connect influxdb to grafana.
  17. How to pull stats from a coin daemon and throw them into influxdb, and then use Grafana to create a pretty graph. Setup a VM, VPS, raspberry pi, whatever to play on this. Anything breaks its pretty easy to delete stuff. Using ubuntu/debian for the example. The idea is relatively simple. Ask the daemon for information, throw that into influxdb and then have Grafana pull from that database. Install denarius daemon Install python denarius rpc https://github.com/buzzkillb/python-denariusrpc Install grafana https://grafana.com/docs/grafana/latest/installation/debian/ Install influxdb https://docs.influxdata.com/influxdb/v1.7/introduction/installation/ One this is all done we need a test to see if python is working with the daemon. Switch in rpc_user and rpc_password that's inside of denarius.conf test.py from denariusrpc.authproxy import AuthServiceProxy, JSONRPCException # rpc_user and rpc_password are set in the denarius.conf file rpc_connection = AuthServiceProxy("http://%s:%[email protected]:32369"%(rpc_user, rpc_password)) best_block_hash = rpc_connection.getbestblockhash() print(rpc_connection.getblock(best_block_hash)) # batch support : print timestamps of blocks 0 to 99 in 2 RPC round-trips: commands = [ [ "getblockhash", height] for height in range(100) ] block_hashes = rpc_connection.batch_(commands) blocks = rpc_connection.batch_([ [ "getblock", h ] for h in block_hashes ]) block_times = [ block["time"] for block in blocks ] print(block_times) test run python test.py Lets double check another test run to get current Denarius price from Coinvex. testcoinvex.py from denariusrpc.authproxy import AuthServiceProxy, JSONRPCException import requests, urllib, json #southexchange #coinvex coinvex_url = requests.get('https://coinvex.org/api/v1/public/getlastmarketdata') coinvex_data = json.loads(coinvex_url.text) coinvex_price = coinvex_data['result']['coins'] for r in coinvex_price: if r["name"] == "Denarius": coinvex_last = float(r["price"]) print format(coinvex_last, '0.8f') test run python testcoinvex.py Works? The next post will show how to take this data and put into influxdb.
  18. For some reason AMD64 and ARM chaindata's are not compatible. So I split them up here. https://chaindata.pos.watch/
  19. Restarting the wallet should help get past where its getting stuck. Otherwise latest chaindata is located here https://chaindata.pos.watch/
  20. I am keeping up to date chaindata here, as of now it should updated about every 3 days.. https://chaindata.pos.watch/ ARM really doesn't like to sync with the AMD64 (typical Intel/AMD PC/Windows/MacOS) version so I have an ARM wallet daemon setup as well for this. For a Raspberry Pi4 or other ARM board/VPS you probably want the ARM pichaindata.
  21. Download Denarius Wallet Install IPFS (locally or vps) https://docs.ipfs.io/guides/guides/install/ Ubuntu (AMD64) Find latest here - https://dist.ipfs.io/#go-ipfs wget https://dist.ipfs.io/go-ipfs/v0.4.22/go-ipfs_v0.4.22_linux-amd64.tar.gz tar xvfz go-ipfs_v0.4.22_linux-amd64.tar.gz cd go-ipfs sudo ./install.sh ipfs version #start ipfs node and take note of your IPFS node ID ipfs init #example output ``` initializing IPFS node at /home/travanx/.ipfs generating 2048-bit RSA keypair...done peer identity: QmNyud5DGEmkBGYcV4QA69JHiTuWLU6EkStpviddZTgiag to get started, enter: ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/readme ``` #try reading the readme ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/readme #start IPFS service ipfs daemon denarius.conf jupiterlocal=1 if you want to specify your IPFS server and its not local add jupiterip=yournodeIP:5001 To upload a file #example command to upload using daemon or QT from debug console, other use the Jupiter tab in the QT jupiterupload /home/USERNAME/Downloads/denarius-256.png Carsen uploaded the below image using localhost, then turned off his localhost IPFS server and because Denarius is amazing the file still shows up.
  22. Downloaded the latest wallet and the chain data file and it will not get past 75%. Any suggestions??
  1. Load more activity
×
×
  • Create New...