Bitcoin Forum
December 09, 2016, 09:19:38 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: What is the correct P2SH coinbase flag?  (Read 1387 times)
piuk
Hero Member
*****
expert
Offline Offline

Activity: 910



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?

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481318378
Hero Member
*
Offline Offline

Posts: 1481318378

View Profile Personal Message (Offline)

Ignore
1481318378
Reply with quote  #2

1481318378
Report to moderator
1481318378
Hero Member
*
Offline Offline

Posts: 1481318378

View Profile Personal Message (Offline)

Ignore
1481318378
Reply with quote  #2

1481318378
Report to moderator
eleuthria
Legendary
*
Offline Offline

Activity: 1750


BTC Guild Owner


View Profile WWW
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).

R.I.P. BTC Guild, 2011 - 2015.
BTC Guild Forum Thread
Prattler
Full Member
***
Offline Offline

Activity: 192


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
*
qt
Offline Offline

Activity: 2030



View Profile
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


BTC Guild Owner


View Profile WWW
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"].

R.I.P. BTC Guild, 2011 - 2015.
BTC Guild Forum Thread
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!