Bitcoin Forum
May 05, 2024, 10:23:22 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Services / [BOUNTY - CANCELLED BTC] : read only blockchain patch for bitcoind on: March 21, 2012, 06:20:29 PM
 hi all,

 Currently, if I have bitcoind running on 20 machines, or 20 bitcoind running on the same machine ( vps for example ), each of them need to download and store 2 GB blockchain, total 40 GB diskspace used and much bandwidth wasted to download it 20 times.

Code:
 ls -alh .bitcoin/blk*
-rw------- 1 neofutur neofutur 1.1G 2012-03-21 00:36 .bitcoin/blk0001.dat
-rw------- 1 neofutur neofutur 401M 2012-03-21 00:36 .bitcoin/blkindex.dat

 The problem is the same for a vps provider like bitvps, hosting bitcoin users, 2 GB blockchain X 20 vps makes much diskspace and bandwidth wasted for no reason.

 Also the initial blockchain download is taking hours , often more than one full day . . .

 Also its nearly impossible to use bitcoind on a small device like a eeepc ( 4 GB diskspace ), a phone, a raspberrypi . . .

 I think the easiest way to make it better would be to have a "read-only" blockchain, one of the bitcoind writes it, and the others only use it read only to check transactions.

 Actually bitcoind is not able to use a read only blockchain, that could be written and updated by 1 bitcoind , and used by all the other bitcoinds on the same server ( in the case of VPS ) or mounted readonly as a sshfs or other secure network filesystem.

 I thought it could be simple and easy to hack bitcoind to allow this ( I tried ugly debugging on https://github.com/neofutur/bitcoin only to find its really not easy )

 So, I start a bounty for whoever can produce a working patch or fork of bitcoind , allowing this "sharing blockchain" feature, allowing a service provider to be his own blockchain provider and save much diskspace and bandwidth.

 Also, the "read only blockchain" is just an idea, one way to implement it that seems to be the easy way imho, but you can also provide a better way to do it . . .

another ( better ) way to address the problem, from gmaxwell :

As I've pointed out before on IRC,  this isn't the way to accomplish what you want. A "one write many read" blockchain can not be accomplished with a simple patch— it would take either significant and hazardous rewrite of BDB, or a hazardous rewrite of bitcoin to use something custom instead of BDB.   Even if someone managed to pull it off I'm doubtful we'd take it upstream.

Instead, it appears to be generally agreed that we want to split the blockchain and the wallet— so you could have one trusted blockchain and N wallets (GUI or CLI/RPC) talking to it across the network.



 The patch or fork will have to provide an option like "--readonly" at bitcoind start .

 the patch have to be a git pull request on github and be clean enough to have a chance of being accepted upstream.

 the implemented solution have to build and work on linux .

 I start the bounty with 5 BTC, and I know others will add btcs soon Wink

 Feel free to ask for details here or on #bitcoin-hosting channel : http://gw.gd/irc
 Read also :

http://bitcoin.stackexchange.com/questions/3199/read-only-blockchain-in-bitcoind-patch-ideas
http://bitcoin.stackexchange.com/questions/2584/is-reclaiming-disk-space-already-implemented-how-effective-will-it-be

Some clues ?

Bluematt have a good beginning :

Code:
< BlueMatt> neofutur: done: take https://github.com/TheBlueMatt/bitcoin/tree/cblockstore and change https://github.com/TheBlueMatt/bitcoin/blob/cblockstore/src/blockstore.h#L127 to return false

useful links from weex :

It appears the devs have discussed this though a bounty like this is probably the only way to get code written. See Mike Hearn's post here: https://bitcointalk.org/index.php?topic=57435.msg892772#msg892772

Another reason for this project to happen(linking roughly to where relevant discussion is): https://bitcointalk.org/index.php?topic=80531.msg892743#msg892743

Rebroad have a good idea to make it more secure for the client :

Code:
(20:32) <   rebroad> neofutur, the thing is... each separate bitcoind is going to want to recover an old database if the centralized one is changed in a way they don't like...
(20:33) <   rebroad> neofutur, so ideally it would be stored in two places owned by 2 separate parties where users of it can be sure that they can recover to old versions
(20:33) <   rebroad> (at least 2)

possible problem :
Code:
(21:21) <   luke-jr> neofutur: rebroad: the problem you'll run into is that the blk files are NOT identical across bitcoin client instances
(21:21) <   rebroad> luke-jr, could they be though, in some theoretical node that's not been written yet?
(21:22) <   rebroad> luke-jr, with one file per block
(21:22) <   luke-jr> triptyl: have you given any thought to doing it without breaking old clients?
(21:22) <   luke-jr> rebroad: probably
(21:22) <  gmaxwell> triptyl: it would be better to call it "blinded" rather than anonymous.
(21:23) <   rebroad> luke-jr, I think it would be worth adapting bitcoin{d,-qt} to allow the blocks to be stored this way, so that they are more VPS friendly

 weex is suggesting another way to implement it :

Code:
As someone who has enjoyed using BitcoinSpinner a bit, why not patch bitcoind so it supports direct calls via BCCAPI ( http://code.google.com/p/bccapi/ ) or the protocol it uses?

PS : I have no problem with redefining the bounty goal,  my idea of readonly blockchain is possibly a bad idea, and we could need some kind of network protocol and a blockchain server, lets say all comments are welcome, and the goal of the bounty can change, blockchain server is probably a better idea, but I thought it would be a good simple / easy first step to begin with a read only blockchain

Current bounty : 15 btc
 +5 btc from raccon under some conditions ( see his comment below : https://bitcointalk.org/index.php?topic=71542.msg813297#msg813297 ) : https://bitcointalk.org/index.php?topic=71542.msg813297#msg813297
+10 from rapeghost
+5 for weex

2  Bitcoin / Project Development / Announcing Bitcoin News feeds on: March 11, 2012, 11:56:25 AM
 I finally made the bitcoin feeder :

http://bitcoin.gw.gd/

 Its mostly a RSS agregator, with many RSS sources added in different sections :

*    Bitcoin Alerts
*    Bitcoin Answers
*    bitcoin Blogs
*    Bitcoin Commits
*    Bitcoin Events
*    bitcoin Exchanges
*    Bitcoin Forks
*    bitcoin Forums
*    bitcoin News
*    bitcoin OTC
*    Bitcoin People
*    Bitcoin Releases
*    bitcoin Security
*    Bitcoin Tags
*    Bitcoin Tech
*    Bitcoin Trading
*    Bitcoin Tweets

 The main page is really high volume ( I ll probably hide commits, tweets and forums from the main page ), so, better choose a section.

 This is made with the ( excellent ) spip CMS ( http://www.spip.net/en ) and the ( alpha ) spipfeeder plugin : http://trac.ww7.be/trac.ww7.be/browser/trunk/spipfeeder

 Comments welcome, also feel free to tell me some interesting ( and bitcoin related ) RSS feeds that should be added to the sources.

3  Bitcoin / Project Development / Introducing bitcoin_simple_php_tools for webmasters on: March 11, 2012, 05:06:49 AM
 I finally found the time to develop the small useful tools most webmasters ( imho, but at least me :p ) will need :
code on github

 for now the only working tools are :

tickers in HTML format:

http://p.b.gw.gd/ti/ticker_eur_btc.php
http://p.b.gw.gd/ti/ticker_usd_btc.php

tickers in TEXT format:

http://p.b.gw.gd/ti/ticker_eur_btc.php?type=text
http://p.b.gw.gd/ti/ticker_usd_btc.php?type=text
http://p.b.gw.gd/ti/miniticker.php

imageticker :

line :
http://p.b.gw.gd/it/it.png


or vertical :
http://p.b.gw.gd/it/iv.php


imageprice FIAT2BTC :

tool to convert a usd or eur price to btc "on the fly" :
http://p.b.gw.gd/ip/b.php?usdprice=200

 and as an image you can include it on a forum post :


 


price from btc to currency :

http://p.b.gw.gd/ip/p.php?b=1&c=usd




 comments and pull requests welcome on https://github.com/neofutur/bitcoin_simple_php_tools

 see them all gathered on my personal URL shortener : http://gw.gd and pastebin : http://p.gw.gd/

the RSS pricing feed.

 A RSS feed with a ( cached ) bitcoin price ( mtgox last )  or full ticker .

 For now only one option, the format ( short or fullticker ), more options coming for currency, image feeed . . .

examples :
short format : http://p.b.gw.gd/pf/bitcoin_price_feed.php?format=short
fullticker : http://p.b.gw.gd/pf/bitcoin_price_feed.php?format=fullticker

valid RSS feed :
http://validator.w3.org/appc/check.cgi?url=http%3A%2F%2Fp.b.gw.gd%2Fpf%2Fbitcoin_price_feed.php%3Fformat%3Dshort
http://validator.w3.org/appc/check.cgi?url=http%3A%2F%2Fp.b.gw.gd%2Fpf%2Fbitcoin_price_feed.php%3Fformat%3Dfullticker


the RSS trades feed.

 A RSS feed with a ( updated every 30 seconds ) bitcoin trades ( mtgox trades ).

examples :
http://p.b.gw.gd/tf/bitcoin_trade_feed.php

If you also want btc-e feeds add :

http://p.b.gw.gd/tradefeed/btce_trade_feed.php?format=short
http://p.b.gw.gd/pricefeed/bitcoin_btceprice_feed.php

If you also want bitstamp feeds add :

http://p.b.gw.gd/tradefeed/bitstamp_trade_feed.php
http://p.b.gw.gd/pricefeed/bitstamp_price_feed.php

added support for intersango USD market :

http://p.b.gw.gd/pricefeed/intersango_price_feed.php
http://p.b.gw.gd/tradefeed/intersango_trade_feed.php
And the bitcoin news feed

we also provide a selection of bitcoin news with the news feed :

http://bitcoin.gw.gd/spip.php?page=backend&id_rubrique=1

PS : dont rely on the urls above, I ll move the service to another url soon, if you want to use those tools, you have to use the source : https://github.com/neofutur/bitcoin_simple_php_tools ; I can also set it up on your own hosting for a few BTCs
PS2: I can develop any needed option ( config rounding, config show_usd_or_not, color, size . . . ) for 2 or 3 btcs
PS3: any partnership idea welcome to set up btcprice tool as a public bitcoin service anyone can use
PS4: all proces, trades, tickers . . . . are direct from mtgox using the API , pull requests welcome if you want to add support for other exchanges.

donations : 1va4sqj5AFnMYicD7JzhDfxauk5w6Uuug
4  Economy / Marketplace / GNU/Linux, hosting and other web services for BitCoins on: November 07, 2010, 07:13:03 PM
This topic is locked, dont try to answer here you wont be able to post, contact me for questions, private message here or ( better ) on IRC
Hi all, bitcoin traders and users,

 If you ever need :

  • Professional and secure Linux server administration and support ( gentoo hardened, grsecurity, php hardened, firewall . . . ) from yearly , I already manage 20 dedicated servers for myself and for my customers
  • Professional DNS services from ( I already provide 3 DNS servers in 3 different datacenters for more than 200 domain names )
  • White Hat SEO services ( I m already on first page of google for many searches ), first an audit of your website, including a list of the problems and actions to take at
  • A reliable and secure hosting for your website ( already hosting more than 400 websites on my dedicated servers ), from yearly
  • A web 2.0 website ( I build websites using the http://spip.net CMS, ask for examples ) from
  • A CDN ( content Delivery Network ) setup to speed up your websites, see details below
  • A google apps setup ( mail services and more for your domain name ), see details below
  • An eggdrop IRC bot from yearly
  • An ircd ( IRC server ) with atheme services ( nickserv, chanserv, operserv . . . ), setup from and hosting from from yearly
  • a teamspeak server on your own server / vps, or on my servers, setup from and hosting from yearly
  • A RSS feeder, rss2irc or RSS bridge to twitter, from yearly
  • An url shortener like http://gw.gd, free setup and hosting from yearly
  • A bitcoin pool ( pushpool ) + frontend ( simplecoin )
  • I dont provide VPS myself, but I recommend the best bitcoin VPS service : http://gw.gd/bitcoin_vps
  • English, Spanish or French targeted ads on my websites
  • English, French or Spanish training to learn how to use linux, irssi, a PGP / gnupg key . . .

 And much more . . .

Feel free to contact me for a quote  I now accept bitcoins, namecoins and litecoins, ask for a quote!

more on me

 I m french but currently live in Peru for more than 3 years now, so my tariffs are pretty cheap.
 Most of my customers are in Europe and japan, mtgox being one of my customers.

 My professional website is in spanish : http://ww7.pe
 
 Feel free to contact me for more information.

 You can find me on IRC #bitcoin-hosting on the freenode server

 For trust concerns, find my PGP key and Web of Trust in my signature here, or on http://wiki.bitcoin-otc.com/wiki/User_GPG_keys
 See also my OTC ratings : http://bitcoin-otc.com/viewratingdetail.php?nick=ne0futur

PS : This topic is locked, dont try to answer here you wont be able to post, contact me for questions, private message here or on the IRC
PS : prices are now dynamic, using the pricetobtc.png feature from https://github.com/neofutur/bitcoin_simple_php_tools
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!