Jump to content

All Activity

This stream auto-updates     

  1. Yesterday
  2. Last week
  3. This is an official BetHash thread! For more information, please join our Telegram channel: https://t.me/BetHash
  4. How to compile daemon in Ubuntu 19.10 https://github.com/carsenk/denarius/issues/256
  5. Earlier
  6. 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
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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.
  12. For some reason AMD64 and ARM chaindata's are not compatible. So I split them up here. https://chaindata.pos.watch/
  13. Restarting the wallet should help get past where its getting stuck. Otherwise latest chaindata is located here https://chaindata.pos.watch/
  14. 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.
  15. 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.
  16. Downloaded the latest wallet and the chain data file and it will not get past 75%. Any suggestions??
  17. Blocklist located here -> https://github.com/buzzkillb/hosts I am using this on pihole and will be updating the links anytime I get dm spam, mainly from Discord. Raw File -> https://raw.githubusercontent.com/buzzkillb/hosts/master/hosts How to add to pihole.
  18. Hi, I was able to compile the wallet (daemon - denariusd) I had to use makefile.arm instead of makefile.unix. However, another problem arose - the wallet does not sync. I am trying to download the last chaindata from https://pos.watch/chaindata.zip but after start denariusd it do not get new blocks but stay at 2667869 Instead there are errors: ProcessMessages(ping, 8 bytes) : Exception 'CDataStream::read() : end of data: iostream error' caught, normally caused by a message being shorter than its stated length ProcessMessage(ping, 8 bytes) FAILED ERROR: CheckProofOfStake() : INFO: read txPrev failed WARNING: AcceptBlock(): check proof-of-stake failed for block e4888052fe3768e83389654f56990f7aa7f8076b4f7f132e465cf971798e8eca ERROR: ProcessBlock() : AcceptBlock FAILED ERROR: FetchInputs() : 225ef5b75d mempool Tx prev not found 3de53cd669 and many ORPHANs: ProcessBlock: ORPHAN BLOCK, prev=0000000000186ef85ab2 ERROR: ProcessBlock() : already have block (orphan) 0000000000179db13774 ProcessBlock: ORPHAN BLOCK, prev=6d3bdd0dcf999bc64882 ERROR: ProcessBlock() : already have block (orphan) 024efe77cb8538559247 ProcessBlock: ORPHAN BLOCK, prev=a89d8af759325f8412dc ERROR: ProcessBlock() : already have block (orphan) 00000000001cf2ae2380 ProcessBlock: ORPHAN BLOCK, prev=6e70ef0fd2ceb20cdef7 ERROR: ProcessBlock() : already have block (orphan) 41e8f7dd14b9daaba330 ProcessBlock: ORPHAN BLOCK, prev=8f20ac4f7e1b82ea1c1c ERROR: ProcessBlock() : already have block (orphan) 00000000001aa9bd4a30
  19. Mine randomx on Manjaro. I assume same thing to run on Arch btw #compile xmrrig on Manjaro sudo pacman -S base-devel cmake libuv libmicrohttpd openssl hwloc libutil-linux git clone https://github.com/xmrig/xmrig.git cd xmrig mkdir build && cd $_ cmake .. make
  20. Hi, i am trying to compile latest wallet on ubuntu 18.04 on ARM platform but getting error like below. Can you help, please? Thanks. In file included from tor/orconfig.h:13:0, from tor/backtrace.c:16: tor/backtrace.c: In function 'clean_backtrace': tor/orconfig_linux.h:578:37: error: 'mcontext_t {aka const struct <anonymous>}' has no member named 'gregs' #define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_RIP] ^ tor/backtrace.c:88:27: note: in expansion of macro 'PC_FROM_UCONTEXT' stack[n] = (void*) ctx->PC_FROM_UCONTEXT; ^~~~~~~~~~~~~~~~ tor/orconfig_linux.h:578:44: error: 'REG_RIP' undeclared (first use in this function); did you mean 'REG_R15'? #define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_RIP] ^ tor/backtrace.c:88:27: note: in expansion of macro 'PC_FROM_UCONTEXT' stack[n] = (void*) ctx->PC_FROM_UCONTEXT; ^~~~~~~~~~~~~~~~ tor/orconfig_linux.h:578:44: note: each undeclared identifier is reported only once for each function it appears in #define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_RIP] ^ tor/backtrace.c:88:27: note: in expansion of macro 'PC_FROM_UCONTEXT' stack[n] = (void*) ctx->PC_FROM_UCONTEXT; ^~~~~~~~~~~~~~~~ makefile.unix:458: recipe for target 'obj/backtrace.o' failed make: *** [obj/backtrace.o] Error 1
  21. Denarius v3.3.9.6 Get the latest release from Snap (auto updates to v3.3.9.6 or snap install denarius) or https://github.com/carsenk/denarius/releases - ` sudo apt install libcurl4-openssl-dev ` is now required as a dep for compiling Denarius QT or denariusd - Jupiter Release! - Denarius now utilizes libcurl (libcurl4-openssl-dev) and the IPFS C++ Library (Included with the repo src/ipfs) to connect through an IPFS gateway to upload files and other in space shenanigans. Currently uses Infura.io for API, options will be coming soon for using a localhost IPFS gateway and more. - Jupiter Tab in the Denarius QT (Upload your files straight into space) - Jupiter RPC Commands: ` jupiterversion ` & ` jupiterupload <filelocation> ` - Small improvements and fixes - More coming next release As always, Snap will automatically update you to Denarius v3.3.9.6 once it is fully published. Please give it a few hours from this announcement of the release. Denarius.v3.3.9.6-Win64.zip Hash SHA256: 6D8ACABE1E5B1B1C20978B06F80861B498C03F97B698D299EDA6E6CB2A517585 SHA1: B2F00086A0F6030EF91B9C2711820D8BE733A869 CRC64: 9F3891A2A90877C7 Denarius.exe Hash SHA256: 36BBD54FD29D5402BFD7507B5BD94C817A7320DC7475DF7A28E8F276A3A3353D SHA1: D9EBD6DE92BC7DB8E8B466AC516ACF9981EAE3FC CRC64: F04EB9E45CC18BE5 Denarius-v3.3.9.6-macOS.dmg Hash ``` ``` Previous Release v3.3.9.5: -Experimental Thin Mode now in action, not yet ready for primetime, a WIP -Full Node optimizations and debug log cleanup -New getinfo data returned such as datadir, node type, etc. -More information about Thin mode coming soon. -As of Denarius v3.3.9.4 we are now introducing Snapcraft builds. Snap will now auto build upon commits to our master branch. Snap enables you to now easily install denarius (Denarius QT) and denariusd (denarius daemon) on most Linux distributions easily and quickly. Simply install Denarius from the Snap Store or run the commands below: Denarius Snap Store: https://snapcraft.io/denarius sudo apt-get install snap sudo snap install denarius After installing you can now run Denarius QT with the command denarius or denariusd with denarius.daemon -Fixed the masternode status rpc command -Added dialog to QT while backing up wallet -IsSelectableSocket() function was added -Added getblockchaininfo rpc command and refactored some rpc -Updated getblock rpc to include chainwork -Added -zapwallettxes flag upon startup (clears wallet transactions and then rescans the chain) -Added Denarii as a unit option inside of the QT
  22. Grab the latest QT wallet with IPFS built in and have 0.1 D or at least something small to pay the PoD fee. IPFS is free and can skip the PoD portion of this if you just want to upload files. Lets pick a good file to Proof of Data against and then upload into IPFS. Current Release: https://github.com/carsenk/denarius/releases/tag/v3.3.9.6 QT Wallet: https://github.com/carsenk/denarius/releases/download/v3.3.9.6/Denarius-v3.3.9.6-Win64.zip Download a file, I am going to use the denarius logo from denarius.io and lets proof of data this and upload to IPFS as a great example of how powerful this is. Here's a link but just right click the image on the homepage and save to your hard drive. https://i2.wp.com/denarius.io/wp-content/uploads/2017/11/denarius-256.png?w=256&ssl=1 Go to the Jupiter Tab Select your file, in this case select the image file we just downloaded. Click Upload to IPFS (The Wallet will freeze while the upload is taking place) After the upload you will get an IPFS Hash along with being able to click the link to see the file in your web browser. Success, and currently there are file limits on uploading through the wallet. I was not able to upload the QT.zip yet. Lets Proof of Data this file for good measure, so the original hash is located on the Denarius blockchain. Go to Proof of Data tab in QT Wallet Select our image, then put a simple narration in and then click Create Timestamp This now gives us a D address where the hash matches the image. Now if we download the image we uploaded to IPFS we can verify the file against the blockchain by checking against PoD again. Here is our set in the blockchain address based on the image file or can Click Check Transaction to get to your PoD transaction. https://www.coinexplorer.net/D/address/DQQxYgD1KPzmoQGeL1JyXZk2JhZPfiaXsY
  23. for ipfs branch sudo apt install libcurl4-openssl-dev
  1. Load more activity
×
×
  • Create New...