Bitcoin Forum
May 25, 2024, 11:47:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to modify bitcoind? My changes dont seem to take effect?  (Read 142 times)
ViperGuyMike (OP)
Jr. Member
*
Offline Offline

Activity: 126
Merit: 2


View Profile
January 28, 2018, 01:51:02 PM
 #1

Please forgive me if this is a common question, but I haven't been able to find an answer by searching. If you clone the Bitcoin core repo and make changes, how can you test it? Making changes to the files such as improving error messages for debugging don't seem to do anything when mining from my pool? I still get the original unaltered error messages? I read the developers guide thinking maybe the code is executed on the remote peer side, or maybe compiled from the repo each time you run bitcoind, or even that you must build bitcoind to implement the changes, but I didn't see this mentioned anywhere in any of my reading? Any help, guidance, or suggested reading would be appreciated!
cr1776
Legendary
*
Offline Offline

Activity: 4046
Merit: 1303


View Profile
January 28, 2018, 01:59:25 PM
 #2

Please forgive me if this is a common question, but I haven't been able to find an answer by searching. If you clone the Bitcoin core repo and make changes, how can you test it? Making changes to the files such as improving error messages for debugging don't seem to do anything when mining from my pool? I still get the original unaltered error messages? I read the developers guide thinking maybe the code is executed on the remote peer side, or maybe compiled from the repo each time you run bitcoind, or even that you must build bitcoind to implement the changes, but I didn't see this mentioned anywhere in any of my reading? Any help, guidance, or suggested reading would be appreciated!

Have you built it after the changes to source?  Have you thereafter installed it?  Are you running it on the server you are using for the pool?  What OS?  

Instructions to build are here:
https://github.com/bitcoin/bitcoin/tree/master/doc

If you merely edit the source, and do nothing else, you won’t have made any changes to the object code that you then run.
ViperGuyMike (OP)
Jr. Member
*
Offline Offline

Activity: 126
Merit: 2


View Profile
January 28, 2018, 02:16:09 PM
 #3

Thank-you for the reply, I re-cloned my fork from github and ran the make command in the src folder and now my changes have taken effect. Thanks again for the help!
cr1776
Legendary
*
Offline Offline

Activity: 4046
Merit: 1303


View Profile
January 28, 2018, 02:30:24 PM
 #4

Thank-you for the reply, I re-cloned my fork from github and ran the make command in the src folder and now my changes have taken effect. Thanks again for the help!

Great!   A good start to development is playing with the source.
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!