Author

Topic: What is the correct P2SH coinbase flag? (Read 1661 times)

legendary
Activity: 1750
Merit: 1007
February 12, 2012, 12:03:01 AM
#5
Our blocks now have the /P2SH/ in the coinbase.  The problem was the custom coinbasing in PoolServerJ to embed messages [we tag our blocks with "BTC Guild"].
staff
Activity: 4172
Merit: 8419
February 11, 2012, 08:47:46 PM
#4
Just looked into it on the BTC Guild side.  I've upgraded the bitcoind, but it looks like PoolServerJ's internal workmaker is the problem (Bitlc also uses PoolServerJ).  It's making its own work and not including /P2SH/.  I'll have to get in touch with shadders to find out how to make it carry forward (I'm not the best with Java).

getmemorypool now returns a field
    "coinbaseflags" : "062f503253482f",

which is data that can just be stuck on the end of the coinbase.  P2Pool uses it, poolserverj should too.
full member
Activity: 192
Merit: 100
February 11, 2012, 06:02:38 PM
#3
In the meantime, people who want to vote for P2SH could mine with p2pool! Wink
legendary
Activity: 1750
Merit: 1007
February 11, 2012, 04:02:18 PM
#2
The wiki seems to be down at the moment but I thought that in order to show support for P2SH the string "/P2SH/" should be included in a blocks coinbase. However BTC Guild, Bitlc.net and a few other pools are voting for P2SH but their blocks do not contain this string.

Hex encoding of "/P2SH/" is "2f503253482f".

Block 166309 by bitcoin.cz contains it.

Block 166315 by BTC Guild and 166282 by Bitlc do not.

Has this changed, what is the correct byte sequence?

Just looked into it on the BTC Guild side.  I've upgraded the bitcoind, but it looks like PoolServerJ's internal workmaker is the problem (Bitlc also uses PoolServerJ).  It's making its own work and not including /P2SH/.  I'll have to get in touch with shadders to find out how to make it carry forward (I'm not the best with Java).
hero member
Activity: 910
Merit: 1005
February 11, 2012, 08:03:56 AM
#1
The wiki seems to be down at the moment but I thought that in order to show support for P2SH the string "/P2SH/" should be included in a blocks coinbase. However BTC Guild, Bitlc.net and a few other pools are voting for P2SH but their blocks do not contain this string.

Hex encoding of "/P2SH/" is "2f503253482f".

Block 166309 by bitcoin.cz contains it.

Block 166315 by BTC Guild and 166282 by Bitlc do not.

Has this changed, what is the correct byte sequence?
Jump to: