Bitcoin Forum
November 09, 2024, 03:48:47 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to put specific text in the Coinbase?  (Read 1128 times)
jimoc (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
September 17, 2013, 10:54:16 PM
 #1

Hi all,
I'm just messing about with the miner code and I was wondering, how would I put a specific message into the coinbase if i manage to mine a block?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4832



View Profile
September 18, 2013, 02:34:35 AM
 #2

Hi all,
I'm just messing about with the miner code and I was wondering, how would I put a specific message into the coinbase if i manage to mine a block?

You'd have to put the specific message into the coinbase BEFORE you mine the block.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1026



View Profile
September 18, 2013, 02:37:44 AM
 #3

In init.cpp, search for pszP2SH.  That will show you exactly what you need to do to put custom tags in your coinbase.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
os2sam
Legendary
*
Offline Offline

Activity: 3586
Merit: 1098


Think for yourself


View Profile
November 12, 2013, 01:50:03 AM
 #4

In init.cpp, search for pszP2SH.  That will show you exactly what you need to do to put custom tags in your coinbase.

Is this the same as what pools do with their coinbase signature?

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1026



View Profile
November 12, 2013, 12:30:12 PM
 #5

In init.cpp, search for pszP2SH.  That will show you exactly what you need to do to put custom tags in your coinbase.

Is this the same as what pools do with their coinbase signature?

Depends.  If the pool uses bitcoind for block assembly, they probably use a similar method.  If the pool has custom software that builds the block, that software probably handles the coinbase too.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
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!