测试网络部署forkdelta

1. 客户端etherdelta.github.io里面config/testnet.json改为config/main.json:
 "socketServer": ["http://192.168.12.16:8080"],//地址前缀不要使用https,如果使用https, 客户端会用wss连接后台,传递的是加密内容,后台websocketserver,会会报无法解释错误,返回400
 
2. 后台app/config.py, 里面更改FRONTEND_CONFIG_FILE="./app/testnet.json
    ED_CONTRACT_ADDR = '0x228344536a03C0910Fb8Be9C2755c1a0bA6f89E1  //以太坊测试网络部署etherdelta, 测试网络地址:0x228344536a03c0910fb8be9c2755c1a0ba6f89e1


3. 用parity 同步:

 .\parity --chain ropsten --bootnodes "enode://94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09@192.81.208.223:30303,enode://30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606@52.176.7.10:30303,enode://865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c@52.176.100.77:30303"

同步很慢我从2018-03-06 18:09:04开始,到第二天7号10:43,才同步到 127/617
2018-03-06 18:09:04  Starting Parity/v1.8.7-stable-e3d32a4ab-20180123/x86_64-windows-msvc/rustc1.23.0
2018-03-06 18:09:04  Keys path C:\Users\sam\AppData\Roaming\Parity\Ethereum\keys\Ropsten
2018-03-06 18:09:04  DB path C:\Users\sam\AppData\Local\Parity\Ethereum\chains\test\db\ae90623718e47d66
2018-03-06 18:09:04  Path to dapps C:\Users\sam\AppData\Roaming\Parity\Ethereum\dapps
2018-03-06 18:09:04  State DB configuration: fast
2018-03-06 18:09:04  Operating mode: active
2018-03-06 18:09:04  Configured for Ropsten using Ethash engine
2018-03-06 18:09:04  Multi-threaded server is not available on Windows. Falling back to single thread.
2018-03-06 18:09:04  Multi-threaded server is not available on Windows. Falling back to single thread.
2018-03-06 18:09:05  Public node URL: enode://8f14644f855ec11643f9a1c7253cda3cc0c376cba1ef4705eea2e500937875bdd18b29bc41653f40fa6bbc7aeec10e521a5ee102eb237b6b753626ec3ebe5ddf@127.0.0.1:30303
2018-03-06 18:09:07  Updated conversion rate to Ξ1 = US$847.49 (140470820 wei/gas)
2018-03-06 18:09:15  Syncing       #0 4194…4a2d     0 blk/s    0 tx/s   0 Mgas/s      0+    0 Qed        #0    3/25 peers      8 KiB chain  111 KiB db  0 bytes queue   10 KiB sync  RPC:  1 conn,  5 req/s,  43 µs

2018-03-06 18:09:20  Syncing snapshot 0/617        #0    3/25 peers      8 KiB chain  111 KiB db  0 bytes queue   10 KiB sync  RPC:  1 conn,  0 req/s,  43 µs


到第二天10点才同步到126/617:

2018-03-07 10:39:56  Imported #591575 7c8e…c624 (49 txs, 25.93 Mgas, 248.60 ms, 364.68 KiB) + another 1 block(s) containing 250 tx(s)
2018-03-07 10:40:00    18/25 peers      7 MiB chain  100 MiB db  0 bytes queue   71 MiB sync  RPC:  1 conn,  4 req/s,  39 µs
2018-03-07 10:40:35    17/25 peers      6 MiB chain  100 MiB db  0 bytes queue   79 MiB sync  RPC:  1 conn,  0 req/s,  58 µs
2018-03-07 10:40:58  Imported #591580 0e3f…6416 (139 txs, 73.54 Mgas, 288.59 ms, 1033.52 KiB) + another 1 block(s) containing 143 tx(s)
2018-03-07 10:41:10    16/25 peers      2 MiB chain  100 MiB db  0 bytes queue   95 MiB sync  RPC:  1 conn,  0 req/s,  65 µs
2018-03-07 10:41:22  Imported #591585 7a0d…cf4e (231 txs, 139.67 Mgas, 442.16 ms, 1968.70 KiB) + another 1 block(s) containing 136 tx(s)
2018-03-07 10:41:45    17/25 peers      4 MiB chain  100 MiB db  0 bytes queue   99 MiB sync  RPC:  1 conn,  4 req/s,  41 µs
2018-03-07 10:42:02  Imported #591590 08e2…ce6f (90 txs, 78.10 Mgas, 100.77 ms, 1108.83 KiB)
2018-03-07 10:42:21  Syncing  #591675 9da6…34d8     2 blk/s   70 tx/s  41 Mgas/s   5929+ 1221 Qed   #599180   17/25 peers      7 MiB chain  100 MiB db   79 MiB queue   50 MiB sync  RPC:  1 conn,  1 req/s,  62 µs
2018-03-07 10:42:30  Syncing snapshot 126/617   #599184   17/25 peers      6 MiB chain  101 MiB db  163 MiB queue   51 MiB sync  RPC:  1 conn,  0 req/s,  62 µs
2018-03-07 10:42:36  Syncing snapshot 126/617   #599184   17/25 peers      8 MiB chain  101 MiB db  189 MiB queue   51 MiB sync  RPC:  1 conn,  1 req/s,  62 µs


4.请求测试eth:https://ipfs.io/ipfs/QmVAwVKys271P5EQyEfVSxm7BJDKWt42A2gHvNmxLjZMps/


测试网络部署forkdelta_第1张图片


你可能感兴趣的:(forkdelta,ethereum,交易所)