linn

 

 

main.cpp
行1069 修改产出数量
nSubsidy >>= (nHeight / 840000); // Litecoin: 840k blocks in ~4 years

行1074 改预计产出时间
static const int64 nTargetTimespan = 1 * 24 * 60 * 60;  // Litecoin: 3.5 days
int64 nTargetSpacing = 0.5 * 60; // Litecoin: 2.5 minutes

base58.h
行275改协议号
PUBKEY_ADDRESS = 57;

编译完成进入Litecoin客户端的数据目录,Windows7-64bit位于:C:\Users\用户名\AppData\Roaming\Litecoin,建立一个litecoin.conf配置文件,写入内容,用自己的端口:
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=61314
port=61315
server=1

 

编译帮助:

https://bitcointalk.org/index.php?topic=195483.0

 

说明:

http://www.gamesgrid.net/search/blog.netoearth.com/html/201304/litecoin%E6%9D%83%E5%A8%81%E4%B8%AD%E6%96%87%E6%8C%87%E5%8D%97.htm-ltc%E6%8C%96%E7%9F%BF%E8%BD%AF%E4%BB%B6-2.html

 

bit币和litecoin代码小区别

2.5分钟一块, 这里和比特币一样,不是2.5分钟一定产生一个,而是调整难度使得预期为2.5分一个 https://github.com/litecoin-project/litecoin/blob/master-0.8/src/main.cpp#L1074
一块50个,每4年减半 https://github.com/litecoin-project/litecoin/blob/master-0.8/src/main.cpp#L1064 (每840000个减半,结合2.5分钟一块,预期是1458.3天,约4年, 总量我们也可以计算了: 50*840000+25*840000+12.5*84000000 ..... = 84000000)
地址L开头 https://github.com/litecoin-project/litecoin/blob/master-0.8/src/base58.h#L275, 具体的细节请参考Technical background of version 1 Bitcoin addresses (比特币和莱特币的地址生成是同理的,区别就是开头的version分别是1和L)

  

分类:

技术点:

相关文章:

  • 2021-09-10
  • 2022-01-18
  • 2021-12-04
  • 2021-12-21
  • 2021-09-22
  • 2021-05-23
  • 2021-08-27
  • 2021-12-21
猜你喜欢
  • 2021-08-27
  • 2021-05-26
  • 2021-04-15
  • 2021-10-30
  • 2021-08-27
  • 2021-11-19
相关资源
相似解决方案