Bitcoin Forum
June 25, 2024, 10:56:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 [5] 6 »  All
  Print  
Author Topic: More Genesis Block Discussion  (Read 33875 times)
Restincoin
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
June 21, 2014, 09:43:37 PM
Last edit: June 24, 2014, 04:31:35 PM by Restincoin
 #81

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 Offline

Activity: 18
Merit: 0


View Profile
June 24, 2014, 04:32:01 PM
 #82

Someone ??
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
June 24, 2014, 06:03:38 PM
 #83

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 Offline

Activity: 18
Merit: 0


View Profile
June 24, 2014, 07:56:07 PM
 #84

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
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250

Bitmark Developer


View Profile WWW
June 24, 2014, 08:06:32 PM
 #85

start pc1 daemon, tail -f the debug.log
start pc2 daemon, see if any entry occurs in debug.log above

Bitmark (reputation+money) : Bitmark v0.9.4 (release)
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
June 24, 2014, 08:22:29 PM
 #86

.
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 Offline

Activity: 18
Merit: 0


View Profile
June 24, 2014, 08:27:47 PM
 #87

This is what i get on ubuntu VM wiht ifconfig

Quote
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 Offline

Activity: 996
Merit: 1013


View Profile
June 24, 2014, 08:31:19 PM
 #88


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 Offline

Activity: 18
Merit: 0


View Profile
June 24, 2014, 08:44:34 PM
 #89


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.


 Undecided
coinsolidation
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250

Bitmark Developer


View Profile WWW
June 24, 2014, 08:54:15 PM
 #90

Perhaps an obvious question, but you can ping google.com from both virtual machines yes?

Bitmark (reputation+money) : Bitmark v0.9.4 (release)
Restincoin
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
June 24, 2014, 09:00:59 PM
 #91

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 Offline

Activity: 18
Merit: 0


View Profile
June 24, 2014, 09:09:39 PM
 #92

I can get connection in daemon if I try to use local IPs of 2 pc ?
Restincoin
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
June 25, 2014, 05:27:25 PM
 #93

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 Offline

Activity: 1551
Merit: 1002


♠ ♥ ♣ ♦ < ♛♚&#


View Profile
July 20, 2014, 12:08:58 AM
 #94

Thanks for sharing with us.
Its very useful information

THE INGENIOUS GENTLEMAN DON QUIXOTE OF LA MANCHA
♠ ♥ ♣ ♦ < ♛♚♝♞♜ BTC tip: 39gUUFdJBdKWXnLoh3PMNX9eUz3DwakBKq
DELTA9
Member
**
Offline Offline

Activity: 102
Merit: 10


View Profile
August 22, 2014, 09:25:58 AM
 #95

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 Offline

Activity: 996
Merit: 1013


View Profile
August 23, 2014, 12:02:11 AM
 #96

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 Offline

Activity: 910
Merit: 1000


View Profile
June 23, 2015, 12:14:26 PM
Last edit: June 25, 2015, 11:48:20 PM by cisahasa
 #97

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 Offline

Activity: 1007
Merit: 1000


View Profile
July 30, 2015, 03:08:38 AM
 #98

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 Offline

Activity: 996
Merit: 1013


View Profile
July 30, 2015, 06:28:54 AM
 #99

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"
tearodactyl
Full Member
***
Offline Offline

Activity: 235
Merit: 100


View Profile
May 04, 2017, 06:37:59 PM
 #100

Updated 2017 Genesis Block information http://practicecoin.com/index.php/2017/04/19/genesis-block/
Pages: « 1 2 3 4 [5] 6 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!