Litecoin: Add testnet checkpoint and min chain work
This commit is contained in:
parent
2fcf8079ef
commit
9b690c2b17
@ -4,7 +4,7 @@ rpcuser=someuser
|
||||
rpcpassword=somepassword
|
||||
host=127.0.0.1
|
||||
port=9332
|
||||
#port=19334
|
||||
#port=19332
|
||||
|
||||
# bootstrap.dat hashlist settings (linearize-hashes)
|
||||
max_height=313000
|
||||
|
||||
@ -338,7 +338,7 @@ for selinuxvariant in %{selinux_variants}; do
|
||||
done
|
||||
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 9332
|
||||
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 9333
|
||||
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 19334
|
||||
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 19332
|
||||
%{_sbindir}/semanage port -a -t bitcoin_port_t -p tcp 19335
|
||||
%{_sbindir}/fixfiles -R bitcoin-server restore &> /dev/null || :
|
||||
%{_sbindir}/restorecon -R %{_localstatedir}/lib/bitcoin || :
|
||||
@ -357,7 +357,7 @@ if [ $1 -eq 0 ]; then
|
||||
if [ `%{_sbindir}/sestatus |grep -c "disabled"` -eq 0 ]; then
|
||||
%{_sbindir}/semanage port -d -p tcp 9332
|
||||
%{_sbindir}/semanage port -d -p tcp 9333
|
||||
%{_sbindir}/semanage port -d -p tcp 19334
|
||||
%{_sbindir}/semanage port -d -p tcp 19332
|
||||
%{_sbindir}/semanage port -d -p tcp 19335
|
||||
for selinuxvariant in %{selinux_variants}; do
|
||||
%{_sbindir}/semodule -s ${selinuxvariant} -r bitcoin &> /dev/null || :
|
||||
|
||||
@ -70,7 +70,7 @@ def connect_JSON(config):
|
||||
testnet = config.get('testnet', '0')
|
||||
testnet = (int(testnet) > 0) # 0/1 in config file, convert to True/False
|
||||
if not 'rpcport' in config:
|
||||
config['rpcport'] = 19334 if testnet else 9332
|
||||
config['rpcport'] = 19332 if testnet else 9332
|
||||
connect = "http://%s:%s@127.0.0.1:%s"%(config['rpcuser'], config['rpcpassword'], config['rpcport'])
|
||||
try:
|
||||
result = ServiceProxy(connect)
|
||||
|
||||
@ -53,7 +53,7 @@ https://github.com/bitcoin/bips/blob/master/bip-0064.mediawiki
|
||||
|
||||
Example:
|
||||
```
|
||||
$ curl localhost:19334/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff7627ff72e5e8b0f71210f92ea7a4000c5d75-0.json 2>/dev/null | json_pp
|
||||
$ curl localhost:19332/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff7627ff72e5e8b0f71210f92ea7a4000c5d75-0.json 2>/dev/null | json_pp
|
||||
{
|
||||
"chaintipHash" : "00000000fb01a7f3745a717f8caebee056c484e6e0bfe4a9591c235bb70506fb",
|
||||
"chainHeight" : 325347,
|
||||
|
||||
@ -361,9 +361,9 @@ arbitrary TCP connections inside SSL. On e.g. Ubuntu it can be installed with:
|
||||
|
||||
sudo apt-get install stunnel4
|
||||
|
||||
Then, to tunnel a SSL connection on 29332 to a RPC server bound on localhost on port 19334 do:
|
||||
Then, to tunnel a SSL connection on 29332 to a RPC server bound on localhost on port 19332 do:
|
||||
|
||||
stunnel -d 29332 -r 127.0.0.1:19334 -p stunnel.pem -P ''
|
||||
stunnel -d 29332 -r 127.0.0.1:19332 -p stunnel.pem -P ''
|
||||
|
||||
It can also be set up system-wide in inetd style.
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ class RawTransactionsTest(BitcoinTestFramework):
|
||||
self.nodes = start_nodes(self.num_nodes, self.options.tmpdir)
|
||||
|
||||
#connect to a local machine for debugging
|
||||
#url = "http://bitcoinrpc:DP6DvqZtqXarpeNWyN3LZTFchCCyCUuHwNF7E8pX99x1@%s:%d" % ('127.0.0.1', 19334)
|
||||
#url = "http://bitcoinrpc:DP6DvqZtqXarpeNWyN3LZTFchCCyCUuHwNF7E8pX99x1@%s:%d" % ('127.0.0.1', 19332)
|
||||
#proxy = AuthServiceProxy(url)
|
||||
#proxy.url = url # store URL on proxy for info
|
||||
#self.nodes.append(proxy)
|
||||
|
||||
@ -202,7 +202,7 @@ public:
|
||||
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018
|
||||
|
||||
// The best chain should have at least this much work.
|
||||
consensus.nMinimumChainWork = uint256S("0x00");
|
||||
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000000000000000872d04d7");
|
||||
|
||||
pchMessageStart[0] = 0xfd;
|
||||
pchMessageStart[1] = 0xd2;
|
||||
@ -240,10 +240,10 @@ public:
|
||||
|
||||
checkpointData = (CCheckpointData) {
|
||||
boost::assign::map_list_of
|
||||
( 0, uint256S("0x4966625a4b2851d9fdee139e56211a0d88575f59ed816ff5e6a63deb4e3e29a0")),
|
||||
0,
|
||||
0,
|
||||
0
|
||||
( 2056, uint256S("0x17748a31ba97afdc9a4f86837a39d287e3e7c7290a08a1d816c5969c78a83289")),
|
||||
1487036370,
|
||||
2057,
|
||||
576
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -45,7 +45,7 @@ class CBaseTestNetParams : public CBaseChainParams
|
||||
public:
|
||||
CBaseTestNetParams()
|
||||
{
|
||||
nRPCPort = 19334;
|
||||
nRPCPort = 19332;
|
||||
strDataDir = "testnet4";
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user