From f827aea8673b8a90cc9c058f4b41b363786a5601 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 26 Aug 2016 18:21:15 -0300 Subject: [PATCH] via --- iguana/coins/genvia | 2 ++ iguana/coins/genvia.json | 2 ++ iguana/confs/VIA_peers.txt | 24 ++++++++++++++++++++++++ iguana/iguana_recv.c | 2 +- 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100755 iguana/coins/genvia create mode 100644 iguana/coins/genvia.json create mode 100644 iguana/confs/VIA_peers.txt diff --git a/iguana/coins/genvia b/iguana/coins/genvia new file mode 100755 index 000000000..809810e1c --- /dev/null +++ b/iguana/coins/genvia @@ -0,0 +1,2 @@ +{"startpend":1,"endpend":1,"RELAY":1,"VALIDATE":1,"prefetchlag":-1,"poll":10,"active":1,"agent":"iguana","method":"addcoin","maxpeers":256,"newcoin":"VIA","name":"Viacoin","netmagic":"0f68c6cb","p2p":5223,"rpc":38332,"pubval":71,"p2shval":33,"wifval":199,"txfee_satoshis":"100000","minconfirms":2,"genesishash":"4e9b54001f9976049830128ec0331515eaabe35a70970d79971da1539a400ba1","genesis":{"version":1,"timestamp":1405164774,"nBits":"1e01ffff","nonce":4016033,"merkle_root":"0317d32e01a2adf6f2ac6f58c7cdaab6c656edc6fdb45986c739290053275200"},"alertpubkey":"047885d9f6c0cf9e918d04634d4dd696cf172763f1975aad099daddca3f3c712c98754eae293b36484055e0d414800e519f5a342e56e09217faf07abff5bd96507"} + diff --git a/iguana/coins/genvia.json b/iguana/coins/genvia.json new file mode 100644 index 000000000..a34ba54e1 --- /dev/null +++ b/iguana/coins/genvia.json @@ -0,0 +1,2 @@ +curl --url "http://127.0.0.1:7778" --data "{\"startpend\":4,\"endpend\":4,\"RELAY\":1,\"VALIDATE\":1,\"prefetchlag\":-1,\"poll\":10,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"maxpeers\":256,\"newcoin\":\"VIA\",\"name\":\"Viacoin\",\"netmagic\":\"0f68c6cb\",\"p2p\":5223,\"rpc\":38332,\"pubval\":71,\"p2shval\":33,\"wifval\":199,\"txfee_satoshis\":\"100000\",\"minconfirms\":2,\"genesishash\":\"4e9b54001f9976049830128ec0331515eaabe35a70970d79971da1539a400ba1\",\"genesis\":{\"version\":1,\"timestamp\":1405164774,\"nBits\":\"1e01ffff\",\"nonce\":4016033,\"merkle_root\":\"0317d32e01a2adf6f2ac6f58c7cdaab6c656edc6fdb45986c739290053275200\"},\"alertpubkey\":\"047885d9f6c0cf9e918d04634d4dd696cf172763f1975aad099daddca3f3c712c98754eae293b36484055e0d414800e519f5a342e56e09217faf07abff5bd96507\"}" + diff --git a/iguana/confs/VIA_peers.txt b/iguana/confs/VIA_peers.txt new file mode 100644 index 000000000..4a24c7b91 --- /dev/null +++ b/iguana/confs/VIA_peers.txt @@ -0,0 +1,24 @@ +84.73.4.183 +98.115.147.74 +192.241.187.222 +159.203.208.102 +85.25.44.119 +178.32.251.114 +109.155.227.178 +146.0.32.101 +108.61.10.90 +198.27.82.134 +80.74.157.31 +192.241.183.16 +164.132.25.194 +128.199.47.200 +173.255.197.64 +46.101.136.168 +207.192.70.250 +54.201.183.106 +211.149.175.37 +128.199.192.241 +216.146.143.177 +82.164.213.27 +107.170.167.218 +195.154.223.134 diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 4c63e443c..681cb4c00 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -789,7 +789,7 @@ void iguana_mainchain_clear(struct iguana_info *coin,struct iguana_block *mainch { bits256_str(str,tmp->RO.hash2); if ( tmp->mainchain == 0 ) - printf("iguana_mainchain_clear: unexpected non-mainchain at ht.%d %s\n",tmp->height,str); + printf("%s iguana_mainchain_clear: unexpected non-main ht.%d %s\n",coin->symbol,tmp->height,str); else if ( tmp->height != height ) printf("iguana_mainchain_clear: unexpected ht.%d vs %d %s\n",tmp->height,height,str); else