|
The last pre-QnA is about "What is the specific difference between PTC and LTC?" The following code shows the difference between LTC and PTC.Left side code is LTC, and right side code is PTC. We introduce only some important parts because we cannot show both the differences in code between LTC and PTC. It is a function that creates a genesis block from lines 50 to 55. Change the timestamp value on line 52 and the public key value on line 53 to the newly created public key value. Line 122 is the code for generating genesisblock, and Line 123 obtains the hash value of the Genesis block. Line 124 verifies the integrity of the genesisblock by comparing it with the hash value of the obtained Genesis block and the hard-coded hash value. Line 125 compares the obtained Mercleroot value with the hard-coded Mercleroot value to verify the integrity of the transaction.
|