Restincoin
Newbie
Offline
Activity: 18
Merit: 0
|
|
June 21, 2014, 09:43:37 PM Last edit: June 24, 2014, 04:31:35 PM by Restincoin |
|
Can they ping each other? Ports blocked?
Yes I can ping each other public ip btw in getinfo ip 0.0.0.0 is normal ? thnks
|
|
|
|
Restincoin
Newbie
Offline
Activity: 18
Merit: 0
|
|
June 24, 2014, 04:32:01 PM |
|
Someone ??
|
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
June 24, 2014, 06:03:38 PM |
|
The all-zero ip just tells that you're not being seen by your peer. Could be variety of reasons for that, and you aren't very clear about your configuration (two pc's with vm's - are the nodes in vm's?)
In any case you don't need to add both nodes to the conf files, just the other one. And your debug.log indicates that your nodes have seen each other 0.9 hours ago, so something has caused them to drop the connection.
|
“God does not play dice"
|
|
|
Restincoin
Newbie
Offline
Activity: 18
Merit: 0
|
|
June 24, 2014, 07:56:07 PM |
|
The all-zero ip just tells that you're not being seen by your peer. Could be variety of reasons for that, and you aren't very clear about your configuration (two pc's with vm's - are the nodes in vm's?)
In any case you don't need to add both nodes to the conf files, just the other one. And your debug.log indicates that your nodes have seen each other 0.9 hours ago, so something has caused them to drop the connection.
Thanks for your answer. My configuration is 2 PC with different public IP PC1 and PC2 are using ubuntu on VM I try to connect those 2 VMs. In config file, those 2 IP in addnode are public IP from PC1 and PC2 The 0.9 hours I think is a default value because in log there is never connection
|
|
|
|
coinsolidation
|
|
June 24, 2014, 08:06:32 PM |
|
start pc1 daemon, tail -f the debug.log start pc2 daemon, see if any entry occurs in debug.log above
|
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
June 24, 2014, 08:22:29 PM |
|
. My configuration is 2 PC with different public IP PC1 and PC2 are using ubuntu on VM I try to connect those 2 VMs. In config file, those 2 IP in addnode are public IP from PC1 and PC2
What I always do is to connect pc daemon with VM daemon. Those will have different addresses, so I think the public ip's do not reach down to vm's. Try ifconfig on either of the ubuntus and see what ip you get.
|
“God does not play dice"
|
|
|
Restincoin
Newbie
Offline
Activity: 18
Merit: 0
|
|
June 24, 2014, 08:27:47 PM |
|
This is what i get on ubuntu VM wiht ifconfig pk@pk-VirtualBox:~$ ifconfig eth0 Link encap:Ethernet HWaddr 08:00:27:3d:b5:a4 inet addr:192.168.1.56 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe3d:b5a4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:25144 errors:0 dropped:1 overruns:0 frame:0 TX packets:19341 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:29876661 (29.8 MB) TX bytes:3014061 (3.0 MB)
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:4863 errors:0 dropped:0 overruns:0 frame:0 TX packets:4863 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:543609 (543.6 KB) TX bytes:543609 (543.6 KB)
You think I need to forward data ? What I don't understand is that, when I open a daemon of a random coin on either of the VMs they can connect easily to the network of the random coin and start synchronisation.
|
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
June 24, 2014, 08:31:19 PM |
|
Try connecting to 192.168.1.56 either from your pc or the other vm. Just get the other ip from ifconfig or ipconfig (windows) also. Typically they are of the form 192.168.1.x
|
“God does not play dice"
|
|
|
Restincoin
Newbie
Offline
Activity: 18
Merit: 0
|
|
June 24, 2014, 08:44:34 PM |
|
Try connecting to 192.168.1.56 either from your pc or the other vm. Just get the other ip from ifconfig or ipconfig (windows) also. Typically they are of the form 192.168.1.x
I can ping between host (PC1) local ip (192.168.1.84) and vm (VM1) local ip (192.168.1.54) that is running on host. This is Ok for both PC1/VM1 and PC2/VM2 But of course I can't cross ping local IPs between those 2 pcs because they are on different LAN.
|
|
|
|
coinsolidation
|
|
June 24, 2014, 08:54:15 PM |
|
Perhaps an obvious question, but you can ping google.com from both virtual machines yes?
|
|
|
|
Restincoin
Newbie
Offline
Activity: 18
Merit: 0
|
|
June 24, 2014, 09:00:59 PM |
|
Perhaps an obvious question, but you can ping google.com from both virtual machines yes?
Yes of course I can browse internet and ping google on VM. I also used a daemon of a working coin and synchronisation working well on VM
|
|
|
|
Restincoin
Newbie
Offline
Activity: 18
Merit: 0
|
|
June 24, 2014, 09:09:39 PM |
|
I can get connection in daemon if I try to use local IPs of 2 pc ?
|
|
|
|
Restincoin
Newbie
Offline
Activity: 18
Merit: 0
|
|
June 25, 2014, 05:27:25 PM |
|
my daemon work now, i needed to forward ports in my router and check vm is in bridge mode
thank you guys for help in debugging
|
|
|
|
DonQuijote
Legendary
Offline
Activity: 1551
Merit: 1002
♠ ♥ ♣ ♦ < ♛♚&#
|
|
July 20, 2014, 12:08:58 AM |
|
Thanks for sharing with us. Its very useful information
|
THE INGENIOUS GENTLEMAN DON QUIXOTE OF LA MANCHA
|
|
|
DELTA9
Member
Offline
Activity: 102
Merit: 10
|
|
August 22, 2014, 09:25:58 AM |
|
Working on a new coin (I know, too many already). I have had success mining a genesis block for a scrypt coin, but running into trouble now with X11. Is the process very different? I have changed the merklehash and now my wallet daemon runs without any errors on my local machine, but I am getting an assertion error after compiling on my VPS. Assertion 'hash == hashGenesisBlock' failed. I have been trying to get this working for days but can't seem to figure out what I am doing wrong.
|
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
August 23, 2014, 12:02:11 AM |
|
Working on a new coin (I know, too many already). I have had success mining a genesis block for a scrypt coin, but running into trouble now with X11. Is the process very different? I have changed the merklehash and now my wallet daemon runs without any errors on my local machine, but I am getting an assertion error after compiling on my VPS. Assertion 'hash == hashGenesisBlock' failed. I have been trying to get this working for days but can't seem to figure out what I am doing wrong.
If the code compiles on one machine, it should work on another. Check and compare that you have the same merkleroot, nonce, timestamp, hashGenesisBlock and of course the same algo
|
“God does not play dice"
|
|
|
cisahasa
Legendary
Offline
Activity: 910
Merit: 1000
|
|
June 23, 2015, 12:14:26 PM Last edit: June 25, 2015, 11:48:20 PM by cisahasa |
|
im trying to create peercoin genesis block and got it done quite easily im using the 0.8.6 based source but sometimes cant find it beacuse nonce reseting back to zero, why this is happening? where is the part of source doing this:
2015-06-22 08:06:15 n=4095M hash=fbf2af49cbd6dfdb2bc61e5ac2a0f2f7847b14d122345b1d7afccfab9ef2d7a5 2015-06-22 08:06:17 n=0M hash=be71678a2a5a4c073f71e87f22816de6e567135cc23c3079118f089dd6c622c5
after 4095M nonces drop back to 0
where is the part of the sourcecode doing this? i tried to find answer related to value 0xffff, but did not get it yet why this is happening
|
|
|
|
l8nit3
Legendary
Offline
Activity: 1007
Merit: 1000
|
|
July 30, 2015, 03:08:38 AM |
|
Hello all, I'm attempting to compile a cloned version of fastcoin (NOT FOR REALEASE, JUST LEARNING). Ive managed to get as far as obtaining my merkle hash. However, now that im at the part of generating a genesis block by changing if (false && block.GetHash() != hashGenesisBlock) to if (true && block.GetHash() != hashGenesisBlock) Ive run into a roadblock. It seems the dev team who created fastcoin has heavily modified their source, and i am missing that particular line of code in main.cpp lol. Any chance someone knows what they may have changed it too? (or is willing to take a look?) Or is it more likely that it was just removed as a method of stopping people from cloning their source to a new chain?
|
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
July 30, 2015, 06:28:54 AM |
|
Hello all, I'm attempting to compile a cloned version of fastcoin (NOT FOR REALEASE, JUST LEARNING). Ive managed to get as far as obtaining my merkle hash. However, now that im at the part of generating a genesis block by changing if (false && block.GetHash() != hashGenesisBlock) to if (true && block.GetHash() != hashGenesisBlock) Ive run into a roadblock. It seems the dev team who created fastcoin has heavily modified their source, and i am missing that particular line of code in main.cpp lol. Any chance someone knows what they may have changed it too? (or is willing to take a look?) Or is it more likely that it was just removed as a method of stopping people from cloning their source to a new chain?
Take a look at some other coins source to familiarize yourself what the genesis block producing code looks like. It is indeed in the fastcoin source, but the condition under which it runs is different.
|
“God does not play dice"
|
|
|
|
|