Bitcoin Forum
June 20, 2024, 01:47:51 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: [BOUNTY] Pushpool question on: July 20, 2011, 06:22:56 PM
Davout:
I appreciate the heads-up about blockexplorer.  It's a great service and I do not want to end up spamming it.  The only TOS I was able to find was "This server is up more than 99% of the time, but anything that pulls data from here should still be prepared for failure." on the real time stats page.  Is there another TOS I've missed?

The link you provided to the "getblockbyhash" patch went to a rails bitcoin-pool.  Is the patch here or at another location?
2  Bitcoin / Development & Technical Discussion / Re: [BOUNTY] Pushpool question on: July 20, 2011, 02:50:40 PM
For testnet solution "000000010b362ab3ec365c55dce00249fb087cb90ebf2208c4e97aa60022678a00000000616eb86 4ec5d0265277b564b916219818bad92cce0d52af9e3e748306af986384e206c1a1c00824f2a78f6 a600000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000"

Download the ruby code from http://pastebin.com/y0sMZSbi and save it as 'block_header.rb'
make sure ruby and irb (interactive ruby shell) are installed. 

Code:
irb
irb(main):001:0> load "./block_header.rb"
=> true
irb(main):003:0> b = BlockHeader.new("000000010b362ab3ec365c55dce00249fb087cb90ebf2208c4e97aa60022678a00000000616eb864ec5d0265277b564b916219818bad92cce0d52af9e3e748306af986384e206c1a1c00824f2a78f6a6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
=> #<BlockHeader:0x7f47cd9cba78 @raw="000000010b362ab3ec365c55dce00249fb087cb90ebf2208c4e97aa60022678a00000000616eb864ec5d0265277b564b916219818bad92cce0d52af9e3e748306af986384e206c1a1c00824f2a78f6a6">
irb(main):006:0> b.block_hash
=> "00000000001b2ff1c57142a9d90592ea3be28fe747da10a889c90afc03ab6e7b"

I've found ruby mechanize (http://mechanize.rubyforge.org/) to be a good way to access web pages (such as block explorer)  your block info will be at http://blockexplorer.com/testnet/block/00000000001b2ff1c57142a9d90592ea3be28fe747da10a889c90afc03ab6e7b

scRUBYt! (http://www.justinspradlin.com/programming/ruby-screen-scraping-with-scrubyt/) makes a good screen scraper for pulling transaction info (txid) from block explorer.

Lastly, you will need a json-rpc library (such as http://json-rpc.rubyforge.org/ - see the client side section) to pull transaction data from bitcoind.

Now you have all of the pieces!
  • generate a solution that gets logged into the pushpool shares table
  • have ruby search the shares table to find a solution
  • use block_header.rb in your code to convert your solution into a valid block_hash
  • go to block explorer (via something like mechanize) to find information about the block (specifically the txid)
  • use json-rpc to pull information from bitcoind to find a matching transaction number
  • find useful things out about your block such as confirmations, amount generated, invalid
  • use this information to transfer bitcoins where needed
3  Other / Beginners & Help / Re: blkmond and testnet on: July 12, 2011, 03:37:42 AM
I've only had it crash when the pool was running on testnet to double check our statistics
4  Other / Beginners & Help / Re: PushPoolD on: July 11, 2011, 10:34:22 PM
For easier troubleshooting, disable memcache (in the pushpool config).  It is not essential to the functioning of pushpool.
5  Other / Beginners & Help / Re: blkmond and testnet on: July 11, 2011, 07:27:42 PM
I've been using this method and have found things work well with testnet and pushpoold.  It really helps the debugging process!
6  Other / Beginners & Help / Re: Choosing a pool on: July 11, 2011, 03:17:46 PM
In just about all cases, the payout relates to your hash speed.  If you are in a small pool you make a larger contribution to the block but it takes longer.  In a large pool you make a lesser contribution but the time to generate a block is less.

As far as donations and fees go it is your preference.  Most pools require some expense to run.  Since there is a fair amount of competition in the pools,  it's usually safe to assume that the donation money generated goes to pool maintenance and improvement.  A  pool with no revenue is unlikely to be operated with the same diligence as a pool that has some sort of revenue (to compensate the devs and upgrade hardware as the  pool grows)

Look for a community that has similar interests and spears to have active participation of the devs when responding to issues and the inevitable problems that arise.
7  Other / Beginners & Help / Re: Mining Multiple Pools to mitigate DDoS on: July 08, 2011, 04:41:14 PM
*poing*

Newbie to this forum.  Evil mastermind over at bonzaikittenfurum.co.uk.org
8  Other / Beginners & Help / DDoS signature on: July 07, 2011, 11:52:35 PM
Does anyone have the attack signature for the recent ddos stacks (such as from snort)?  Are the attacks clogging up the pipe or are the stacks simulating json logins?
9  Other / Beginners & Help / Mining Multiple Pools to mitigate DDoS on: July 07, 2011, 11:44:51 PM
I saw this tip in a forum and it has worked well for me:
I've run several miners (each pointed to a different pool) for each graphics card.  It has divided my overall MHash per pool, but when one gets DDos attacked the others speed up.  It doesn't solve the problem from the pool end of things but it has kept mining manageable.
10  Other / Beginners & Help / Re: Massive DDoS? on: July 07, 2011, 11:41:18 PM
Here are some threads covering the topic:
POOLS under DDOS ATTACKS - http://forum.bitcoin.org/index.php?topic=26782.0
Is Anyone NOT Under a DDoS Right Now? - http://forum.bitcoin.org/index.php?topic=26382.0
Is the Bitcoin falling ? DDOS breaks almost every major Pool - http://forum.bitcoin.org/index.php?topic=26909.0
Difficulty DOWN 119 Smiley - http://forum.bitcoin.org/index.php?topic=26875.0
Pool Reliability :-/ - http://forum.bitcoin.org/index.php?topic=26816.0
DEEPBIT problem? - http://forum.bitcoin.org/index.php?topic=26784.0
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!