Bitcoin Forum
April 24, 2024, 03:16:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [33] 34 35 36 37 »
641  Alternate cryptocurrencies / Altcoin Discussion / Re: [BTB][P2POOL][UPDATED] Source code. Two blocks found, join us! on: May 30, 2013, 07:06:14 PM
Updated the code. Payouts to worker addresses now work! I open my public node to miners again. However, unlike with other p2pools, you have to specify your public key (not an address!) as username.
Since I am not a developer, I used a crazy python hack containing several lines of shit-code to achieve it. However, it works and generates payouts to workers. I have tested it in the testnet.

To point worker to my (or any other) public node you have to get a public key:
1) launch bitbar

2) in bitbar directory, run
Code:
./bitbard getnewpubkey "someccount"
you will receive a hex string, call it <your_new_pubkey>, which is the public key to a new address in account "someaccount" (you don't have to keep it secret, as it's public)

3) (optionally) make sure it works as supposed to: run
Code:
./bitbard getaddressesbyaccount "someaccount"
you should see a new address, and
Code:
./bitbard validatepubkey <your_new_pub_key>
will return JSON object, which is expected to have 'isvalid' and 'ismine' properties set to 'true'

4)use <your_new_pub_key> as a worker username when connecting to a public node, just like you use your address with other coin p2pools. You may now close your bitbar.
642  Alternate cryptocurrencies / Altcoin Discussion / Re: [BTB][P2POOL][UPDATED] Source code. Two blocks found, join us! on: May 30, 2013, 11:38:46 AM
Added bootstrap address.
643  Alternate cryptocurrencies / Altcoin Discussion / Re: [BTB][P2POOL][UPDATED] Source code. Two blocks found, join us! on: May 30, 2013, 01:43:57 AM
I have been unable to connect to the pool since yesterday, either with minerd or a web browser. It just times out.

Is it still at http://78.27.191.182:8333 ?



I closed access to port 8333 from outside because of this:

All work submitted to a node by workers is payed to the node address! Address specified as worker's username is ignored!
Download the source, host your node, point your workers to it.

If I open it, you will be able to connect, but all your work in this case will generate payouts to my address! So it only works like described above: launch bitbard and p2pool on your computer and point your workers to it. Your p2pool node will connect to my p2pool node (and other running nodes), grab an address from your local bitbard and generate payouts to this address.

I am trying to enable payouts to worker addresses now and will update if I get it working. Please read the thread if you want more technical details. Stay tuned!
644  Bitcoin / Group buys / Re: [CLOSED] Block Erupter USB @ 2.10 BTC + parcel -> Shipping to anywhere! on: May 29, 2013, 05:38:10 PM
The first batch was dispatch!



Which delivery service is that?
645  Alternate cryptocurrencies / Altcoin Discussion / Re: Need p2pool for BitBar. Any p2pool gods?? on: May 29, 2013, 05:05:29 PM

Commited some more fixes. Already found 2 blocks. Read this: https://bitcointalk.org/index.php?topic=217894.0
646  Alternate cryptocurrencies / Altcoin Discussion / Re: [BTB][P2POOL] Source code. First block found, join us! on: May 29, 2013, 04:20:48 PM
One more fix: disable reward rounding to cents, which is used in NVC but not BTB.
Previously found blocks generated 0.17 BTB instead of 0.172421 (e.g. http://btb.cryptocoinexplorer.com/block/0000000011f9f1834ebb07844db877b6016d9a8b0cb7191a13229066976ef197)
647  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] Source code. First block found, join us! on: May 29, 2013, 03:05:06 PM
Fixed links to block explorer on the stats page.
648  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] Source code. First block found, join us! on: May 29, 2013, 12:03:54 PM
First block found!

http://btb.cryptocoinexplorer.com/block/00000000055aa1afdb25984d4740e1e81f79c8f258cce029483a1c51c2b83fd6
649  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] Source code on: May 28, 2013, 10:32:45 PM
One more fix. Re-download the source, please.
650  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] 0% fee node + source code! on: May 28, 2013, 09:07:16 PM
Download the code from github and clear data/bitbar directory.
651  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] 0% fee node + source code! on: May 28, 2013, 09:05:56 PM
We found a block !!!

Tue May 28 2013 21:53:21 GMT+0200 (Mitteleuropäische Sommerzeit )   402334   000000000894834c5541ed8d289a693736677d7bf8f28412405e4f1878ebd70b

edit : no payout though, not sure if that's working properly?

I'm not sure either. Now reading the logs. It definetly tried to submit it to bitbard, but then... I need a couple of minutes...

Oh crap  Angry I shouldn't have changed coinbase type to pubkeyhash.

The situation is like this.

Bitcoin/Bitbar/etc. address is encoded 160-bit hash of the public key. In Bitcoin, it is enough to provide coinbase (generation transaction) output. In PPC/NVC/BTB, coinbase type must be TX_PUBKEY, not TX_PUBKEYHASH, which means that you need full public key to create coinbase, not its 160-bit hash. So when a worker specifies its address as a username, the node cannot give it coins from the coinbase. Type of coinase outputs was TX_PUBKEY in NVC p2pool, so it didn't create payouts for workers. I changed it to TX_PUBKEYHASH, and as a result, the block was not accepted by bitbard. i will now change it back to TX_PUBKEY, so nodes can only mine to their own address. Worker names/addresses will be ignored (just like it is in NVC p2pool).


Fixed code at github.
All work submitted to a node by workers goes to the node's address!
652  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] 0% fee node + source code! on: May 28, 2013, 08:40:24 PM
We found a block !!!

Tue May 28 2013 21:53:21 GMT+0200 (Mitteleuropäische Sommerzeit )   402334   000000000894834c5541ed8d289a693736677d7bf8f28412405e4f1878ebd70b

edit : no payout though, not sure if that's working properly?

I'm not sure either. Now reading the logs. It definetly tried to submit it to bitbard, but then... I need a couple of minutes...

Oh crap  Angry I shouldn't have changed coinbase type to pubkeyhash.

The situation is like this.

Bitcoin/Bitbar/etc. address is encoded 160-bit hash of the public key. In Bitcoin, it is enough to provide coinbase (generation transaction) output. In PPC/NVC/BTB, coinbase type must be TX_PUBKEY, not TX_PUBKEYHASH, which means that you need full public key to create coinbase, not its 160-bit hash. So when a worker specifies its address as a username, the node cannot give it coins from the coinbase. Type of coinase outputs was TX_PUBKEY in NVC p2pool, so it didn't create payouts for workers. I changed it to TX_PUBKEYHASH, and as a result, the block was not accepted by bitbard. i will now change it back to TX_PUBKEY, so nodes can only mine to their own address. Worker names/addresses will be ignored (just like it is in NVC p2pool).
653  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] 0% fee node + source code! on: May 28, 2013, 08:20:41 PM
We found a block !!!

Tue May 28 2013 21:53:21 GMT+0200 (Mitteleuropäische Sommerzeit )   402334   000000000894834c5541ed8d289a693736677d7bf8f28412405e4f1878ebd70b

edit : no payout though, not sure if that's working properly?

I'm not sure either. Now reading the logs. It definetly tried to submit it to bitbard, but then... I need a couple of minutes...
654  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] 0% fee node + source code! on: May 28, 2013, 07:29:32 PM
Thanks, that's how I understood it to work.

So is there a number of pseudoshares I have to submit before I show up in the "Payouts if a block were found NOW" list?

Edit: Er, an estimated number? And, does my minerd know the difference?

Your estimated time to share is  (Time_to_share * Local_hashrate / Your_hashrate). First two are reported on the stats page.
655  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] 0% fee node + source code! on: May 28, 2013, 07:24:25 PM
doing some CPU mining here now, looks good so far Smiley
Thank you for your help. I hope we will find a block eventually. Estimated time to block now is 6.5 hours.
656  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] 0% fee node + source code! on: May 28, 2013, 07:19:30 PM
Never mind, I wasn't abstracting far enough. I was thinking blocks:pseudoshares, not blocks:shares:pseudoshares. So minerd won't know, but what's the difficulty difference between pseudoshares and shares so I can estimate?

I guess the difficulty difference between blocks and shares is bigger for the ltcoin pool, meaning I got 4 much smaller shares last night. Presumably after your estimate of 10 hours, give or take (a lot), I'll get one share from P2Pool that's a good deal bigger than the ones I got last night from ltcoin, right?

Current share difficulty is printed on the stats page. Pseudoshare difficulty can be anything, because it doesn't really matter. You can tune both of them by setting your username like this:
Code:
BL5vKqnKHmnzvLZ5qCxETNnMzTM6CCdUzf/0.01+0.001
Here, BL5vKqnKHmnzvLZ5qCxETNnMzTM6CCdUzf is payout address, 0.01 is share difficulty and 0.001 is pseudoshare difficulty. However, you can only set share difficulty higher than current p2pool share difficulty, so this is only useful for miners with high hashrate. You can find more p2pool basics here https://bitcointalk.org/index.php?topic=18313.0
657  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL] 0% fee node + source code! on: May 28, 2013, 05:31:53 PM
I see your address on the stats page. At this hashrate, your expected time to share is about 10 hours, so the variance will be huge.

Yeah, I figured hashing at such a low rate would make for delays in various ways, I just wanted to make sure it wasn't going to waste, otherwise I'll just solo mine and cross my fingers. Wink

Once you submit a share, you get payout with every block found by the p2pool for some time. Current payouts (if a block were found now) for every address are shown here http://78.27.191.182:8333/static/graphs.html?Day

So, my minerd telling me "accepted" isn't the same thing as having submitted a share? Because quite a few were accepted, which I'm sure is how P2Pool figured out my hashrate.

Is there a number it has to accept before I have a share?

Thanks!

-Mo

Edit: Mining for a few hours in the btb.ltcoin.net pool last night got me 4 shares and an eventual payout of around 0.00005. Useless since that pool pays out at 0.02, but it showed me that my minerd is working, at least. So what has me worried is that my address didn't show up in the P2Pool "Payouts if a block were found NOW:" table, even though I mined for longer last night under P2Pool than ltcoin.net and had "accepted" figures in the double digits. I'm back to P2Pool and I'll let it run for the day and see what happens.

In p2pool, there are two types of shares.

'Real shares' are propagated by nodes in the p2pool network, and payouts are calculated based on them.

'Pseudoshares' are shares of small difficulty, which your minerd reports. If one of those pseudoshares meets difficulty requirement for a real share, it is accepted and propagated as a real share. Payout is based on number of submitted real shares.
658  Alternate cryptocurrencies / Altcoin Discussion / Re: Need p2pool for BitBar. Any p2pool gods?? on: May 28, 2013, 01:52:46 PM
Working source: https://github.com/baloo-kiev/p2pool
Public node (0% fee): http://78.27.191.182:8333/
659  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL]. on: May 28, 2013, 01:33:30 PM
Issues fixed. Everything seems to be working now (including worker address payouts).
Full code: https://github.com/baloo-kiev/p2pool
660  Alternate cryptocurrencies / Altcoin Discussion / Re: [TEST][BTB][P2POOL]. on: May 28, 2013, 08:33:50 AM
Strangely, payout does not increase for worker addresses  Huh
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [33] 34 35 36 37 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!