Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: ViperGuyMike on January 28, 2018, 01:51:02 PM



Title: How to modify bitcoind? My changes dont seem to take effect?
Post by: ViperGuyMike on January 28, 2018, 01:51:02 PM
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!


Title: Re: How to modify bitcoind? My changes dont seem to take effect?
Post by: cr1776 on January 28, 2018, 01:59:25 PM
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.


Title: Re: How to modify bitcoind? My changes dont seem to take effect?
Post by: ViperGuyMike on January 28, 2018, 02:16:09 PM
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!


Title: Re: How to modify bitcoind? My changes dont seem to take effect?
Post by: cr1776 on January 28, 2018, 02:30:24 PM
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.