Bitcoin Forum
May 26, 2024, 06:05:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is the correct P2SH coinbase flag?  (Read 1661 times)
piuk (OP)
Hero Member
*****
expert
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
February 11, 2012, 12:03:56 PM
 #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?

eleuthria
Legendary
*
Offline Offline

Activity: 1750
Merit: 1007



View Profile
February 11, 2012, 08: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).

RIP BTC Guild, April 2011 - June 2015
Prattler
Full Member
***
Offline Offline

Activity: 192
Merit: 100


View Profile
February 11, 2012, 10:02:38 PM
 #3

In the meantime, people who want to vote for P2SH could mine with p2pool! Wink
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4186
Merit: 8426



View Profile WWW
February 12, 2012, 12:47:46 AM
 #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.
eleuthria
Legendary
*
Offline Offline

Activity: 1750
Merit: 1007



View Profile
February 12, 2012, 04: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"].

RIP BTC Guild, April 2011 - June 2015
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!