Browse Source

ownnet small parameters change

master
arnaucode 6 years ago
parent
commit
222cdca240
4 changed files with 17 additions and 3 deletions
  1. BIN
      cmd/derod/derod
  2. +2
    -1
      config/config.go
  3. +2
    -1
      p2p/controller.go
  4. +13
    -1
      toHaveInMind.md

BIN
cmd/derod/derod


+ 2
- 1
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,

+ 2
- 1
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 {

+ 13
- 1
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

Loading…
Cancel
Save