diff --git a/cmd/derod/derod b/cmd/derod/derod index ca09abc..9825587 100755 Binary files a/cmd/derod/derod and b/cmd/derod/derod differ diff --git a/config/config.go b/config/config.go index 6809ead..ff9acfa 100644 --- a/config/config.go +++ b/config/config.go @@ -89,7 +89,8 @@ type CHAIN_CONFIG struct { } var Mainnet = CHAIN_CONFIG{Name: "mainnet", - Network_ID: uuid.FromBytesOrNil([]byte{0x59, 0xd7, 0xf7, 0xe9, 0xdd, 0x48, 0xd5, 0xfd, 0x13, 0x0a, 0xf6, 0xe0, 0x9a, 0xec, 0xb9, 0x23}), + //Network_ID: uuid.FromBytesOrNil([]byte{0x59, 0xd7, 0xf7, 0xe9, 0xdd, 0x48, 0xd5, 0xfd, 0x13, 0x0a, 0xf6, 0xe0, 0x9a, 0xec, 0xb9, 0x23}), + Network_ID: uuid.FromStringOrNil("afdb5368-641d-41a2-8bc2-d2e825e25c46"), Public_Address_Prefix: 0xc8ed8, //for dERo Public_Address_Prefix_Integrated: 0xa0ed8, //for dERi P2P_Default_Port: 18090, diff --git a/p2p/controller.go b/p2p/controller.go index 0983e89..4631fed 100644 --- a/p2p/controller.go +++ b/p2p/controller.go @@ -58,7 +58,8 @@ func P2P_engine() { } // add hard-coded seeds - end_point_list = append(end_point_list, "212.8.242.60:18090") + //end_point_list = append(end_point_list, "212.8.242.60:18090") + end_point_list = append(end_point_list, "127.0.0.1:18090") for { if Exit_In_Progress { diff --git a/toHaveInMind.md b/toHaveInMind.md index 8b73a64..fd88b50 100644 --- a/toHaveInMind.md +++ b/toHaveInMind.md @@ -1,6 +1,6 @@ - blockchain is stored in a boltdb, in tmp/derod_database.db -- the seeds are hardcoded in derosuite/p2p/controller.go, line 61: +- the seeds are hardcoded in p2p/controller.go, line 61: ```go // add hard-coded seeds end_point_list = append(end_point_list, "212.8.242.60:18090") @@ -9,3 +9,15 @@ And also can be setted in the parameter: ``` derod --add-exclusive-node ``` + +- mainnetwork is defined in config/config.go line 91 + - NETWORK_ID + - Line 92 can be substitued by: + ```go + Network_ID: uuid.FromStringOrNil("afdb5368-641d-41a2-8bc2-d2e825e25c46"), + ``` + Where the string is a uuid string + - Genesis_Block_Hash + - Genesis_Tx + +- blocktime: config/config.go line 24 \ No newline at end of file