Bitcoin Rpcuser CryptoCoins Info Club

Soo after almost 3 months of setting up I have my own LN full node running on RP3

Soo after almost 3 months of setting up I have my own LN full node running on RP3
I have been eager to try LN mainnet since the very beginning of it. I've found out about lnd, eclair, zap and other wallets but every scenario I tried to use it failed because of critical issues:
  • eclair does not really constitute a wallet, it's more like a credit card - you can send money but not receive it
  • lnd is okay, but requires a server and tons of resources for maintaining a full node, can't be used securely, efficiently and mobily at the same time
  • zap offers some cloud wallet (in testnet!) by default, this is a serious misunderstanding of my cryptoanarchy needs
  • web wallets - ah, forget it
So I've decided to use my Raspberry Pi with a very old laptop HDD attached (200GB so the pruning function has to be used) to create a backend wallet service and zap desktop (temporarily!) as my frontend control panel.
https://preview.redd.it/0vcq147887q11.png?width=1024&format=png&auto=webp&s=7bb6eccdd4110a857e5af0400acc2d7e1ee7ee85
Setting up Pi is easy, lots of tutorials over the internet, not gonna discuss it here. Then I had to obtain bitcoind (current rel: bitcoin-0.17.0-arm-linux-gnueabihf.tar.gz) and lnd (lnd-linux-armv7-v0.5-beta.tar.gz), create a bitcoin technical user, deploy the tools, configure and install new systemd services and go through the configs. This is a tricky part, so let's share:
# Generated by https://jlopp.github.io/bitcoin-core-config-generato # This config should be placed in following path: # ~/.bitcoin/bitcoin.conf # [core] # Set database cache size in megabytes; machines sync faster with a larger cache. Recommend setting as high as possible based upon machine's available RAM. dbcache=100 # Keep at most  unconnectable transactions in memory. maxorphantx=10 # Keep the transaction memory pool below  megabytes. maxmempool=50 # Reduce storage requirements by only storing most recent N MiB of block. This mode is incompatible with -txindex and -rescan. WARNING: Reverting this setting requires re-downloading the entire blockchain. (default: 0 = disable pruning blocks, 1 = allow manual pruning via RPC, greater than 550 = automatically prune blocks to stay under target size in MiB). prune=153600 # [network] # Maintain at most N connections to peers. maxconnections=40 # Use UPnP to map the listening port. upnp=1 # Tries to keep outbound traffic under the given target (in MiB per 24h), 0 = no limit. maxuploadtarget=5000 # [debug] # Log IP Addresses in debug output. logips=1 # [rpc] # Accept public REST requests. rest=1 # [wallet] # Do not load the wallet and disable wallet RPC calls. disablewallet=1 # [zeromq] # Enable publishing of raw block hex to 
. zmqpubrawblock=tcp://127.0.0.1:28332 # Enable publishing of raw transaction hex to
. zmqpubrawtx=tcp://127.0.0.1:28333 # [rpc] # Accept command line and JSON-RPC commands. server=1 # Username and hashed password for JSON-RPC connections. The field comes in the format: :$. RPC clients connect using rpcuser=/rpcpassword= arguments. You can generate this value with the ./share/rpcauth/rpcauth.py script in the Bitcoin Core repository. This option can be specified multiple times. rpcauth=xxx:yyy$zzz
Whooaa, this online config generator is really helpful, but I still had to manually correct a few things. The last line is obviously generated by rpcauth.py, I disabled the wallet functionality as lnd is going to take care of my funds. ZMQ is not available to the network so only my LND can use it, RPC usage I still have to think through a little, in general I would like to have my own block explorer some day but also be safe from any hacking attempts (thus I would need at least 2 RPC ports/user accounts - one for lnd, one for block explorer frontend). No ports open on firewall at this time, only UPnP is active and gently opens 8333 for block/tx transfers.
Now, synchronizing the blockchain took me time from mid-July to early September... The hard drive is really slow, also my external HDD drive has some trouble with its A/C adapter so Pi was getting undervoltage alerts all the time. Luckily, it is just downclocking when it happens and slowly but steadily synchronized the whole history. After all, I'm not paying even $5 monthly for a VPS, it is by design the cheapest hardware I could use to set up my LN wallet.
When bitcoind was ready (I've heard some stories about btcd but I don't trust this software yet, sorry), it's time to configure lnd.conf:
[Application Options] debuglevel=trace rpclisten=0.0.0.0:10009 externalip=X.X.X.X:9735 listen=0.0.0.0:9735 alias=X color=#XXXXXX [Bitcoin] bitcoin.active=1 bitcoin.mainnet=1 bitcoin.node=bitcoind [Bitcoind] bitcoind.rpchost=127.0.0.1 bitcoind.rpcuser=X bitcoind.rpcpass=X bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332 bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333 
Here I've had to XXX a little more fields, as not only the bitcoind RPC credentials are stored here, but also my node's public information (it should be illegal to run nodes without specifically selected color and alias!). It is public (and I had to open port 9735 on my firewall), but not necessarily connected to my reddit account for most of the adversaries, so let's keep it this way. In fact, I also see a security vulnerability here: my whole node's stability depends on the IP being static. I could swap it for a .tk domain but who can tell if the bad guys won't actively fight DNS system in order to prevent global economic revolution? As such, I would rather see node identification in LN based on a public key only with possible *hints* of last-known-ip-address but the whole discovery should be performed by the nodes themself in a p2p manner, obviously preventing malicious actors from poisoning the network in some way. For now, I consider the IP stability a weak link and will probably have to pay extra Bitcoin TX fees when something happens to it (not much of a cost luckily!).

https://preview.redd.it/hjd1nooo77q11.png?width=741&format=png&auto=webp&s=14214fc36e3edf139faade930f4069fc31a3e883
Okay then, lnd is up and running, had to create a wallet and give it a night for getting up to speed. I don't know really what took it so long, I'm not using Windows nor 'localhost' in the config so the issues like #1027 are not the case. But there are others like #1545 still open so I'm not going to ponder much on this. I haven't really got any idea how to automatically unlock the wallet after Pi restart (could happen any time!), especially since I only tried to unlock it locally with lncli (why would I enter the password anywhere outside that host?), but let's say that my wallet will only be as stable as my cheap hardware. That's okay for the beta phase.
Finally, zap-desktop required me to copy tls.cert and admin.macaroon files to my desktop. If my understanding of macaroon (it's like an authentication cookie, that can later be revoked) is correct then it's not an issue, however it would be nice to have a "$50 daily limit" macaroon file in the future too, just to avoid any big issues when my client machine gets stolen. Thanks to this, I can ignore the silly cloud-based modes and have fully-secure environment of my home network being the only link from me to my money.
https://preview.redd.it/11bw3dgw47q11.png?width=836&format=png&auto=webp&s=b7fa7c88d14f22441cbbfc0db036cddfd7ea8424
Aaand there it is. The IP took some time to advertise, I use 1ml.com to see if my node is there. The zap interface (ZapDesktop-linux-amd64-v0.2.2-beta.deb) lacks lots of useful information so I keep learning lncli syntax to get more data about my new peers or the routes offered. The transactions indeed run fast and are ridiculously cheap. I would really love to run Eclair with the same settings but it doesn't seem to support custom lnd (why?). In fact, since all I need is really a lncli wrapper, maybe it will be easy to write my own (seen some web gui which weighs 700MB after downloading all dependencies with npm - SICK!). Zap for iOS alpha test registration is DOWN so I couldn't try it (and I'm not sure if it allows custom lnd selection), Zap for Android doesn't even exist yet... I made a few demo transactions and now I will explore all those fancy t-shirt stores as long as the prices are still in "early investor" mode - I remember times when one could get 0.001 BTC from a faucet...
https://preview.redd.it/42sdyoce57q11.png?width=836&format=png&auto=webp&s=7ec8917eaf8f3329d51ce3e30e455254027de0ee
If you find any of the facts presented by me false, I am happy to find out more in the discussion. However what I did I did mostly for fun, without paying much attention to the source code, documentation and endless issue lists on github. By no means I claim this tutorial will work for you but I do think I shared the key points and effort estimations to help others decide if they want a full-node LN client too. I'm also interested in some ideas on what to do with it next (rather unlikely that I will share my lnd admin.macaroon with anyone!) especially if it gives me free money. For example, I can open 1000 channels and start earning money from fees, although I no longer have more Bitcoins than the LN capacity yields... I will probably keep updating the software on my Pi until it leaves beta phases and only then will pour more money inside. I'm also keen on improving the general security of my rig and those comments I will answer more seriously.
submitted by pabou to Bitcoin [link] [comments]

Primecoin Profitability Calculations and mini Guide

So you want to mine Primecoins.
See this analysis bellow for today : (30/11/2013)
The current price of 1 Primecoin (XPM) = 0.00640010 Bitcoins (BTC)
The current payout barrier for the only good pool (http://beeeeer.org) is 3.01 XPM
3.01 XPM equals to 0.0192003 BTC
0.0192003 BTC = 21.86 USD
Your aim is to mine 3.01 XPM as fast as possible at current difficulty 9.985399019
To mine 3.01 Primecoins per 24 hours you need about 21 Chains Per Day.
At this rate you can make 655 USD per month
On my MacMini (2010) I can make 1 chain per day,
On a big HP server with dual XEON I can make 2.5 chains a day
On the 20 Core Droplet in Digital Ocean you can make 2.6 chains a day
You would need about 8 of those machines to achieve this. (This means that you would need 2 accounts as there is a 5 droplet limit per account).
When you signup you pay $5 through paypal and get a bonus of $10 if you use the code "LINUX13" during checkout.
The cost to operate those machines for 24 hours is :
0.941 x 24 x 8 = $180
$-180 cost - $10 bonus + $5 deposit + $21.86 = -$163 profit
This means that you do not make profit currently, but you could always signup, pay the paypal fee and have the machines on until they suspend you since you do not setup any credit card or auto payment but this will be a one off and get you started with some coins that you can trade in cryptsy.
You can always sell the BTC at like double price in small increments in ebay and make up for the losses but it does not worth the hassle
At the current trends it looks like primecoin will rise , at least triple, and in combination with the bitcoin price rise it might worth mining or at least setup the infrastructure to mine.
Personally I have destroyed all my droplets and keep them on standby and wait for the price to rise. I have an image ready that can restore to any droplet i create to start mining whenever I want. Trying to be pro-active. I am using some work PCs and old server that you can buy for like 200 on ebay to make those 3XPMs a day currently.
Lastly here are the commands to start mining on a ubuntu 13 x64bit when you get your hands on. Login as root, do a sudo -s and then
mkdir ~/.primecoin
echo "rpcuser=none
rpcpassword=none
gen=1" > ~/.primecoin/primecoin.conf
sudo apt-get update
sudo apt-get install bzip2 -y
sudo apt-get install git -y
sudo apt-get install git-core -y
sudo apt-get install subversion -y
sudo apt-get install checkinstall -y
sudo apt-get install build-essential -y
sudo apt-get install libssl-dev -y
sudo apt-get install libboost-all-dev -y
sudo apt-get install libdb5.1-dev -y
sudo apt-get install libdb5.1++-dev -y
sudo apt-get install libgtk2.0-dev -y
sudo apt-get install libgmp3-dev -y
wget http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp11/primecoin-0.1.2-hp11.tar.bz2/download
tar jxvf download
cd primecoin-0.1.2-hp11
cd src
make -f makefile.unix USE_UPNP=-
./primecoind -pooluser=AUd61zfP6oM6LicMkwtxsn1TU8R4ZdLJ9Z -poolpassword=0 -poolip=54.200.248.75 -poolport=1337 -genproclimit=20 &
watch -d -n 5 './primecoind getmininginfo && ./primecoind getdifficulty && ./primecoind listtransactions "*" 1 0'
(make sure you replace the mining address above with your mining address)
That is all for today , I hope some people find it useful :)
submitted by upggr to primecoin [link] [comments]

Tutorial - Building Bitcoin Websites - How to Get The Price 1 of 2 BITCOIN TO $50,000 IN 2019  WILL BTC DO THE UNLIKELY? A breif introduction to the Chain Query Bitcoin RPC API Building Bitcoin Websites - YouTube Bitcoin JSON-RPC Tutorial 7 - Wallet Notify

How much Bitcoin is 13952 RPC? Check the latest Bitcoin (BTC) price in RonPaulCoin (RPC)! Exchange Rate by Walletinvestor.com RPC [RonPaulCoin] BTC [Bitcoin] 0.01 RonPaulCoin = 0.000000011 Bitcoin: 0.1 RonPaulCoin = 0.000000105 Bitcoin: 1 RonPaulCoin = 0.000001 Bitcoin: 2 RonPaulCoin = 0.000002 Bitcoin: 3 RonPaulCoin = 0.000003 Bitcoin: 5 RonPaulCoin = 0.000005 Bitcoin: 10 RonPaulCoin = 0.000011 Bitcoin: 20 RonPaulCoin = 0.000021 Bitcoin: 50 RonPaulCoin = 0.000053 ... This code has a mistake with the variables names, rpc_password is referred to with rpc_pass. Other than that this worked well. Other than that this worked well. – LoganHenderson Nov 12 '18 at 12:14 Bitcoin Rpc Create Account! Bitcoind was created to be compatible across grow the bitcoin network to its full potential -- and now that you can Sep 19, 2017 - "Bitcoin Core's regression test mode (regtest mode) bitcoin rpc create account lets you instantly create a sudo apt-get bitcoin gold mining efficiency update sudo apt-get install docker-ce defaults for an executing container # Drop user ... Over the last few months, we have been going through how to build a secure crypto trading platform that can be used to develop any blockchain project, from exchanges to ICO launches.. Here's an overview of all the articles in the series: Part 1: Ethereum Wallet Manager; Part 2: Bitcoin Wallet Manager

[index] [42408] [36234] [5062] [23368] [49369] [45292] [976] [29402] [47061] [34241]

Tutorial - Building Bitcoin Websites - How to Get The Price 1 of 2

Bitcoin to $50,000 in 2019 is not only possible, but in this btc price update video, I talk about the path Bitcoin price would take to achieve the awesome gains of $50k this year. As you may know ... #Chaincoin revolution. I will do some live Chaincoin Masternode setup support. Thanks for watchin! For more help join the Chaincoin Team Slack: https://chain... Just watch the video all the way through to find out how to mine Pexa from start to finish, including both Pexa miners, Pexa wallet and even the Pexa coin price. Pexa Bitcointalk: https ... This video is unavailable. Watch Queue Queue. Watch Queue Queue How to add the current Bitcoin price to your website. BTC address: 1J9ikqFuwrzPbczsDkquA9uVYeq6dEehsj where do I get the bitcoin price? how do I get the bitc...

#