BitcoinACKS Lets You 'Sponsor' Bitcoin Development - CoinDesk

Vertnode - An automated solution for installing Vertcoin node(s) on Single Board Computers

Hello Vertcoin Community,
Eager to contribute to the Vertcoin Community I began creating step by step walkthrough guides on how to get a Vertcoin node up and running on a Raspberry Pi, Raspberry Pi Zero and Intel NUC. Along with information to get a Vertcoin node up and running was also optional steps to install p2pool-vtc.
I decided that while this step by step guide might be helpful to a few, a setup script may prove to be useful to a wider range of people. I have this script to a point where I think it may be productive to share with a bigger audience, for those who are brave and have this hardware sitting around or like to tinker with projects; I invite you to test this setup script if you are interested, if you run into errors any sort of verbose console output of the error proves to be extremely helpful in troubleshooting.
The script was designed to produce a “headless” server... meaning we will not be using a GUI to configure Vertcoin or check to see how things are running. In fact, once the server is set up, you will only interact with it using command line calls over SSH. The idea is to have this full node be simple, low-power, with optimized memory usage and something that “just runs” in your basement, closet, etc.
Why run a headless node on a Single Board Computer?
The idea is to have this full node be simple, low-power, with optimized memory usage and something that “just runs” in your basement, closet, etc.
Required: USB Flash Drive 6GB - 32GB
Please note that the script was designed for Single Board Computers first and looks for an accessible USB Flash Drive to use for storing the blockchain and swap file, as constant writing to a microSD can degrade the health of the microSD.
Supports

Hardware

All of the hardware listed above is hardware that I have personally tested / am testing on myself. The plan is to continue expanding my arsenal of single board computers and continue to add support for more hardware to ensure as much compatibility as possible.
Functionality
It is worth noting that LIT can be ran with multiple configurations, the ones displayed in the Post Installation Report reflect values that run LIT with the Vertcoin Mainnet. Please be aware that the Vertcoin Testnet chain has not been mined 100% of the time in the past, if you make transactions on the Vertcoin testnet that do not go through it is likely because the chain has stopped being mined.
BE CAREFUL WITH YOUR COINS, ONLY TEST WITH WHAT YOU ARE OKAY WITH LOSING IF YOU USE THE MAINNET.

Vertcoin Testnet Coins

https://tvtc.blkidx.org/faucet/
I've included some documentation on LIT I created which includes information I found to be useful: https://github.com/e-corp-sam-sepiol/vertnode/blob/mastedocs/lit.md
Please visit the mit-dci/lit github repository for the most up to date information on lit: https://github.com/mit-dci/lit

Vertnode | Automated Vertcoin Node Installation Script

https://github.com/e-corp-sam-sepiol/vertnode

Recommended: Use Etcher to install the chosen OS to your microSD card / USB flash drive.

If you intend on installing Ubuntu Server 16.04 to your Intel NUC please use Etcher to install the .iso to your USB flash drive.
https://etcher.io/
PLEASE NOTE THIS SCRIPT MAY GIVE AN ERROR. THIS IS THE NATURE OF TESTING. PLEASE REPORT YOUR ERRORS IF YOU WANT THEM TO BE FIXED/RESOLVED. THANK YOU FOR BETTERING THE DEVELOPMENT OF THIS SCRIPT.

Ubuntu Server 16.04 Setup Details

You can use different clients to ssh into your node. One option is using PuTTY or Git Bash on Windows which is included in the desktop version of Git. If you are using Linux you can simply open a new terminal window and ssh to the IP address of your node (hardware you intend installing the Vertcoin node on).
You will need to know the IP address of your node, this can be found on your router page.
ssh 192.168.1.5 -l pi For example, this command uses ssh to login to 192.168.1.5 using the -l login name of pi. The IP address of your node will likely be different for you, in this example I am logging into a Raspberry Pi which has a default login name of pi.
A brief list of commands that can be used to check on the Vertcoin node status:
vertcoin-cli getblockchaininfo | Grab information about your blockchain
vertcoin-cli getblockcount | Grab the current count of blocks on your node
vertcoin-cli getconnectioncount | Grab the current count of connections to your node. A number of connections larger than 8 means that you have incoming connections to your node. The default settings are to make 8 outgoing connections. If you want incoming connections please port forward your Raspberry Pi in your Router settings page.
vertcoin-cli getpeerinfo | Grab the information about the peers you have connected to / are connected to
vertcoin-cli getnettotals | Grab network data, how much downloaded/upload displayed in bytes
tail -f ~/.vertcoin/debug.log | Output the latest lines in the Vertcoin debug.log to see verbose information about the Vertcoin daemon (ctrl+c to stop)
Thank you to all who have helped me and inspired me thus far, @b17z, @jamesl22, @vertcoinmarketingteam, @canen, @flakfired, @etang600, @BDF, @tucker178, @Xer0
This work is dedicated to the users of Vertcoin, thank you for making this possible.
7/20/2018 Thank you @CommodoreAmiga for the incredibly generous tip <3
You can reach me @Sam Sepiol#3396 on the Vertcoin Discord, here on reddit or @ [email protected]
submitted by ecorp-sam-sepiol to vertcoin [link] [comments]

function return value undefined with node js

Hi guys,

I'm new in the javascript world and now I have a problem with a simple function that returns value because this value is not defined, but if I print the value in the function with console.log, the result is correct

My class with the function
const {createBitcoinRpc} = require('@carnesen/bitcoin-rpc'); module.exports = WrapperRPC; var bitcoinRpc; function WrapperRPC(rpcuser, rpcpassword) { this.rpcuser = rpcuser; this.rpcpassword = rpcpassword; this.rpcHref = 'http://' + this.rpcuser + ':' + this.rpcpassword + '@127.0.0.1:8332'; bitcoinRpc = createBitcoinRpc(this.rpcHref); //TODO settin this variable } WrapperRPC.prototype.getDimensionBlockchain = function(){ console.debug("the url is:" + this.rpcHref); bitcoinRpc("getblockcount").then(result => { console.debug("The result command is: " + result); this.result = result; return this.result; }).catch(exception => { console.error('exception generated: ' + exception) }) }; WrapperRPC.prototype.getHashBlock = function (heightBlock) { console.debug("Run command getblockhash"); bitcoinRpc('getblockhash', { height: heightBlock }).then(result => { console.debug("The result command is: " + result); this.result = result; return this.result; }).catch(exception => { console.error('exception generated: ' + exception) }); } 
My main
const express = require('express'); const app = express(); const port = 3000; const WrapperRPC = require('./model/WrapperRPCBitcoin'); var path = require('path'); app.get('/', function(req, res) { res.sendFile(path.join(__dirname + '/index.html')); console.log("try to run rpc"); let rpc = new WrapperRPC('vincent', 'vincent'); let numbarBlock = rpc.getDimensionBlockchain(); console.debug("height blockchain: " + numbarBlock); for(i = 0; i < numbarBlock; i++){ var hashBlock = rpc.getHashBlock(i); console.debug('Hash block ' + i + ' is: ' + hashBlock); } }); // Console will print the message app.listen(port, () => console.log(`Example app listening on port ${port} at the link http://localhost:${port}/`)); 
My log
Example app listening on port 3000 at the link http://localhost:3000/ try to run rpc the url is:http://vincent:[email protected]:8332 height blockchain: undefined The result command is: 586965 
The log is correct The result command is: 586965 but is printed after the height blockchain: undefined What happens in JavaScript?
submitted by crazyjoker96 to learnjavascript [link] [comments]

-reindex option doesn't fix a corrupted blockchain, it's downloading all over again.

This is a follow up to the corrupted blockchain problem described by me 5 days ago: https://www.reddit.com/BitcoinBeginners/comments/8zysbx/error_when_running_a_bitcoin_core_node_corruption/
As bitusher suggested, I ran:
./bitcoind.exe -reindex --datadir=G:\Bitcoin\Bitcoin_core\Bitcoin\blockchain 
Before that I had even tried the option -reindex-chainstate but it failed for some reason.
After about 8 hours, the reindex finished but it's downloading the blockchain all over again although I already have 200 GB of blockchain data. I can see this by running:
Bitcoin\daemon> .\bitcoin-cli.exe getblockcount 323136 (wait some minutes...) Bitcoin\daemon> .\bitcoin-cli.exe getblockcount 326069 
The point when it went from reindexing to downloading the blockchain all over again looks like this in debug.log:
2018-07-24 08:32:09 Reindexing block file blk01265.dat... 2018-07-24 08:33:57 Loaded 962 blocks from external file in 107945ms 2018-07-24 08:33:57 Reindexing finished 2018-07-24 08:33:57 Pre-allocating up to position 0x100000 in rev00000.dat 2018-07-24 08:33:58 UpdateTip: new best=00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048 height=1 version=0x00000001 log2_work=33.000022 tx=2 date='2009-01-09 02:54:25' progress=0.000000 cache=0.0MiB(1txo) 2018-07-24 08:33:58 UpdateTip: new best=000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd height=2 version=0x00000001 log2_work=33.584985 tx=3 date='2009-01-09 02:55:44' progress=0.000000 cache=0.0MiB(2txo) ... 2018-07-24 15:28:52 UpdateTip: new best=00000000000000000c84841e1450c8644dfe5a85528ae551f8862a688b55db61 height=331606 version=0x00000002 log2_work=81.568221 tx=52347394 date='2014-11-25 21:30:09' progress=0.149665 cache=2153.7MiB(16335495txo) 2018-07-24 15:28:52 Pre-allocating up to position 0x200000 in rev00200.dat 2018-07-24 15:28:53 UpdateTip: new best=0000000000000000103e002b3231dbee391cf38a2890e310b3e9ee3b785a172a height=331607 version=0x00000002 log2_work=81.568291 tx=52348058 date='2014-11-25 21:40:24' progress=0.149667 cache=2153.7MiB(16334996txo) 2018-07-24 15:28:53 UpdateTip: new best=00000000000000001ac7a4a8f8b910236cfbe1ec2343af4fbe9b8dd1691b7433 height=331608 version=0x00000002 log2_work=81.56836 tx=52348254 date='2014-11-25 21:42:35' progress=0.149667 cache=2153.6MiB(16334923txo) 2018-07-24 15:28:53 UpdateTip: new best=000000000000000006ecf1eb304f3edf56f8ebea62183f8ffbb37653433d196b height=331609 version=0x00000002 log2_work=81.56843 tx=52348821 date='2014-11-25 21:52:17' progress=0.149669 cache=2153.7MiB(16334989txo) 2018-07-24 15:28:53 UpdateTip: new best=00000000000000001864ff1e384b409d9c26745e3dc36a77cb3068959c6244f7 height=331610 version=0x00000002 log2_work=81.5685 tx=52349053 date='2014-11-25 21:55:54' progress=0.149670 cache=2153.7MiB(16335046txo) 2018-07-24 15:28:53 UpdateTip: new best=000000000000000019ff0a26dd1c684661a624f52a78185ba60ad63a464be92e height=331611 version=0x00000002 log2_work=81.568569 tx=52349229 date='2014-11-25 21:57:40' progress=0.149670 cache=2153.6MiB(16334946txo) 2018-07-24 15:28:54 UpdateTip: new best=00000000000000000775b876ee6d5ef4e74ec728d92ea37f249cf4183e8d8447 height=331612 version=0x00000002 log2_work=81.568639 tx=52350965 date='2014-11-25 22:27:56' progress=0.149675 cache=2153.7MiB(16335409txo) 2018-07-24 15:28:54 Pre-allocating up to position 0x1200000 in rev00199.dat 2018-07-24 15:28:54 UpdateTip: new best=000000000000000009547c69932fa9cc2a8d2c9f6449ef23db13da3f71ac8d40 height=331613 version=0x00000002 log2_work=81.568709 tx=52351547 date='2014-11-25 22:36:56' progress=0.149677 cache=2153.6MiB(16334933txo) 
I am feeling pretty frustrated because I can't run a simple bitcoin node every once in a while. Seems like every time I close bitcoind or bitcoin-qt the blockchain gets corrupted. I have found several people complaining about this problem online but I haven't found any definitive solution. Seems like avoiding windows is a good thing (I like to use the same blockchain folder that I store in an external hard drive in both windows and linux).
TLDR
1 - How to avoid getting a corrupted blockchain in both windows and linux and both bitcoin-qt and bitcoind?
2 - How to fix a corrupted blockchain quickly, if this is even possible. -reindex and -reindex-chainstate don't seem to work in my case.
If this doesn't get solved here, I am opening an issue in bitcoin's github.
submitted by johnturtle to BitcoinBeginners [link] [comments]

python-bitcoinlib-v0.5.0rc1 - OpenSSL crashes on OSX and Arch Linux should be fixed | Peter Todd | Sep 07 2015

Peter Todd on Sep 07 2015:
https://github.com/petertodd/python-bitcoinlib/tree/python-bitcoinlib-v0.5.0rc1
FWIW if you've been experienceing OpenSSL related crashes on OSX or Arch
Linux this release should fix your issues. I don't have any way of
testing this myself, so if I could get some confirmation that this new
release candidate fixes things that'd be really helpful!
Other release notes:
v0.5.0

Major fix: Fixed OpenSSL related crashes on OSX and Arch Linux. Big thanks to
everyone who helped fix this!
Breaking API changes:
New features:
Notable bugfixes:

'peter'[:-1]@petertodd.org
000000000000000010f9e95aff6454fedb9d0a4b92a4108e9449c507936f9f18
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 650 bytes
Desc: Digital signature
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150906/bb595f91/attachment.sig>
original: http://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-Septembe010950.html
submitted by dev_list_bot to bitcoin_devlist [link] [comments]

Help with a project importing data from another site

I'm trying to import the data for various currencies under the "available supply" section on coinmarketcap.com and display it on my own sites page (and have continuously update/fetch the latest data, as its constantly updating there).
What is the easiest way to do this?
Someone helped me previously doing it with bitcoin. This is the code he used:
var btcRequest = new XMLHttpRequest();
btcRequest.open('get', 'https://blockchain.info/q/getblockcount?cors=true');
btcRequest.onload = function() {
if (btcRequest.readyState !== 4) return;
However, I want to do this for other currencies there too, such as Dash, Dogecoin and Peercoin. How do I fetch the data from these sites? (which list the total number of coins, or blocks which can be used to calculate the # of coins): Dash here https://chainz.cryptoid.info/dash/ Dogecoin here http://dogechain.info/chain/Dogecoin Peercoin here: http://ppc.blockr.io/
Alternatively, can I just pull the data from under "available supply" from coinmarketcap.com directly? I dont know if its easier to get it from the sites above or from coinmarketcap.com, please advise which is the easiest way to do this as I do not know (please be as specific and detailed as possible if you would as I am a newbie).
Thanks in advance!
submitted by timeisnow77724 to learnprogramming [link] [comments]

Help with a project importing data from another site

I'm trying to import the data for various currencies under the "available supply" section on coinmarketcap.com and display it on my own sites page (and have continuously update/fetch the latest data, as its constantly updating there).
What is the easiest way to do this?
Someone helped me previously doing it with bitcoin. This is the code he used:
var btcRequest = new XMLHttpRequest();
btcRequest.open('get', 'https://blockchain.info/q/getblockcount?cors=true');
btcRequest.onload = function() {
if (btcRequest.readyState !== 4) return;
However, I want to do this for other currencies there too, such as Dash, Dogecoin and Peercoin. How do I fetch the data from these sites? (which list the total number of coins, or blocks which can be used to calculate the # of coins): Dash here https://chainz.cryptoid.info/dash/ Dogecoin here http://dogechain.info/chain/Dogecoin Peercoin here: http://ppc.blockr.io/
Alternatively, can I just pull the data from under "available supply" from coinmarketcap.com directly? I dont know if its easier to get it from the sites above or from coinmarketcap.com, please advise which is the easiest way to do this as I do not know (please be as specific and detailed as possible if you would as I am a newbie).
Thanks in advance!
submitted by timeisnow77724 to web_design [link] [comments]

Help with a project importing data from another site

I'm trying to import the data for various currencies under the "available supply" section on coinmarketcap.com and display it on my own sites page (and have continuously update/fetch the latest data, as its constantly updating there).
What is the easiest way to do this?
Someone helped me previously doing it with bitcoin. This is the code he used:
var btcRequest = new XMLHttpRequest();
btcRequest.open('get', 'https://blockchain.info/q/getblockcount?cors=true');
btcRequest.onload = function() {
if (btcRequest.readyState !== 4) return;
However, I want to do this for other currencies there too, such as Dash, Dogecoin and Peercoin. How do I fetch the data from these sites? (which list the total number of coins, or blocks which can be used to calculate the # of coins): Dash here https://chainz.cryptoid.info/dash/ Dogecoin here http://dogechain.info/chain/Dogecoin Peercoin here: http://ppc.blockr.io/
Alternatively, can I just pull the data from under "available supply" from coinmarketcap.com directly? I dont know if its easier to get it from the sites above or from coinmarketcap.com, please advise which is the easiest way to do this as I do not know (please be as specific and detailed as possible if you would as I am a newbie).
Thanks in advance!
submitted by timeisnow77724 to learnjavascript [link] [comments]

Help with a project importing data from another site

I'm trying to import the data for various currencies under the "available supply" section on coinmarketcap.com and display it on my own sites page (and have continuously update/fetch the latest data, as its constantly updating there).
What is the easiest way to do this?
Someone helped me previously doing it with bitcoin. This is the code he used:
var btcRequest = new XMLHttpRequest();
btcRequest.open('get', 'https://blockchain.info/q/getblockcount?cors=true');
btcRequest.onload = function() {
if (btcRequest.readyState !== 4) return;
However, I want to do this for other currencies there too, such as Dash, Dogecoin and Peercoin. How do I fetch the data from these sites? (which list the total number of coins, or blocks which can be used to calculate the # of coins): Dash here https://chainz.cryptoid.info/dash/ Dogecoin here http://dogechain.info/chain/Dogecoin Peercoin here: http://ppc.blockr.io/
Alternatively, can I just pull the data from under "available supply" from coinmarketcap.com directly? I dont know if its easier to get it from the sites above or from coinmarketcap.com, please advise which is the easiest way to do this as I do not know (please be as specific and detailed as possible if you would as I am a newbie).
Thanks in advance!
submitted by timeisnow77724 to webdev [link] [comments]

Bitcoin War Between US and China  Cryptocurrency News Bitcoin.com - Official Channel - YouTube News Bitcoin - YouTube BITCOIN Confirmed PARABOLIC BULL MARKET? 💥 ️LIVE Crypto ... Inside Blockchain: Will It Crash Like Bitcoin, Or Is It ...

The two most popular projects, a Bitcoin Improvement Proposal for taproot and another for encrypting messages between Bitcoin nodes, have received pledges of 2,010,116 sats (~$214 or 0.02010116 ... For this reason, news.Bitcoin.com has listed popular halving countdown clocks and statistical sites that show all kinds of halving data so our readers can follow along with the reward countdown. BTC. The US District Court of The Southern District Of New York announced that Jon Barry Thompson, the principal of Volantis Market Making cryptocurrency escrow company, has pleaded guilty for allegedly conning a company out of $3.25 million.. The company transferred over $3 million to Thompson for the purchase of Bitcoins, which the victim said he never received. Individuals, businesses, developers: learn from our simple Bitcoin guides. How Bitcoin works, what is Bitcoin, what is blockchain, how to buy Bitcoin, what is Bitcoin mining and more. [ September 14, 2020 ] First Mover: As Central Banks Print $1.4B an Hour, Bitcoiners Bet on Federal Reserve ‘Capture’ Crypto News [ September 12, 2020 ] SushiSwap Cuts Block Rewards to 100 SUSHI Crypto News [ September 11, 2020 ] SEC Charges Rapper TI With Securites Violations for ICO Crypto News

[index] [17620] [34951] [4118] [24354] [22171] [31233] [3132] [28910] [17214] [15462]

Bitcoin War Between US and China Cryptocurrency News

Bitcoin War Between US and China Cryptocurrency News Like and Subscribe. Become a CryptosRus INSIDER to gain exclusive insight on the market, get reviews and analysis on undervalued ... BITCOIN TODAY: Bitcoin is getting an ETP by a German company. In this video, I'll go through the Bitcoin news today & I'll make a Bitcoin price analysis. The... Bitcoin Price Analysis & Crypto News! 👍 THUMBS UP & SUBSCRIBE NOW + 🔔! ***** 🚨 VIP ELITE PRIVATE TRADE ALERTS- https://t.me/joinchat/AAAAAEts9GFT3RV_6wLjOQ... Bitcoin, Ethereum and cryptocurrency dominated headlines in 2017, before an epic crash wiped out billions of dollars in wealth. And after the bubble burst, b... History Suggests A HUGE Bitcoin Bull Run Is Coming! Watch The Whole Video As We Cover Today's Bitcoin News! Let us know what you think in the comment section...

#