Bitcoin Forum
May 30, 2024, 07:39:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to clone newest Bitcoin/Litecoin source?  (Read 204 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
February 08, 2018, 09:19:36 AM
 #1

Most articles, datas got googled based on very older version, even 4 years ago.

At that time's version, there is file of src/Main.cpp, src/Main.h  where some key parameters existed.

But recent source (Bitcoin, 0.15.1) does not have above files (Main.cpp, Main.h).

Maybe source code there was moved?

To where and how to locate them all to make alt-coin?
Are there no tutorial or documents about source code location changing guide?



achow101
Staff
Legendary
*
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
February 08, 2018, 04:14:22 PM
 #2

Those files were split into validation.{cpp, h} and net_processing.{cpp, h}.

For lines that you have to change, many of them still exist just in different places. So you can use grep to search for them.

wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
February 09, 2018, 03:42:00 AM
 #3

Those files were split into validation.{cpp, h} and net_processing.{cpp, h}.

For lines that you have to change, many of them still exist just in different places. So you can use grep to search for them.

Thanks much!

I saw this series, https://www.youtube.com/watch?v=mDGxGYvkDEE
but this is based on litecoin source version 0.8  (4 years ago version)

So there are many places to revise to make altcoin, are there no video or documents covering all the places needed to revise based on newest version?

wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
February 09, 2018, 05:22:31 AM
Last edit: February 09, 2018, 05:32:54 AM by wsxdrfv
 #4

Where is "PUBKEY_ADDRESS", "PUBKEY_ADDRESS_TEST" value moved to? originally at src/base58.h

AND what is   " std::vector<unsigned char>(1.0) " ?

originally this was just number based on https://en.bitcoin.it/wiki/List_of_address_prefixes

Why they changed this part more hard? Why it is problem just use "PUBKEY_ADDRESS = 44"?
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!