forkdelta|测试网络部署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:04Starting Parity/v1.8.7-stable-e3d32a4ab-20180123/x86_64-windows-msvc/rustc1.23.0
2018-03-06 18:09:04Keys path C:\Users\sam\AppData\Roaming\Parity\Ethereum\keys\Ropsten
2018-03-06 18:09:04DB path C:\Users\sam\AppData\Local\Parity\Ethereum\chains\test\db\ae90623718e47d66
2018-03-06 18:09:04Path to dapps C:\Users\sam\AppData\Roaming\Parity\Ethereum\dapps
2018-03-06 18:09:04State DB configuration: fast
2018-03-06 18:09:04Operating mode: active
2018-03-06 18:09:04Configured for Ropsten using Ethash engine
2018-03-06 18:09:04Multi-threaded server is not available on Windows. Falling back to single thread.
2018-03-06 18:09:04Multi-threaded server is not available on Windows. Falling back to single thread.
2018-03-06 18:09:05Public node URL: enode://8f14644f855ec11643f9a1c7253cda3cc0c376cba1ef4705eea2e500937875bdd18b29bc41653f40fa6bbc7aeec10e521a5ee102eb237b6b753626ec3ebe5ddf@127.0.0.1:30303
2018-03-06 18:09:07Updated conversion rate to Ξ1 = US$847.49 (140470820 wei/gas)
2018-03-06 18:09:15Syncing#0 4194…4a2d0 blk/s0 tx/s0 Mgas/s0+0 Qed#03/25 peers8 KiB chain111 KiB db0 bytes queue10 KiB syncRPC:1 conn,5 req/s,43 μs

2018-03-06 18:09:20Syncing snapshot 0/617#03/25 peers8 KiB chain111 KiB db0 bytes queue10 KiB syncRPC:1 conn,0 req/s,43 μs


到第二天10点才同步到126/617:
2018-03-07 10:39:56Imported #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:0018/25 peers7 MiB chain100 MiB db0 bytes queue71 MiB syncRPC:1 conn,4 req/s,39 μs
2018-03-07 10:40:3517/25 peers6 MiB chain100 MiB db0 bytes queue79 MiB syncRPC:1 conn,0 req/s,58 μs
2018-03-07 10:40:58Imported #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:1016/25 peers2 MiB chain100 MiB db0 bytes queue95 MiB syncRPC:1 conn,0 req/s,65 μs
2018-03-07 10:41:22Imported #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:4517/25 peers4 MiB chain100 MiB db0 bytes queue99 MiB syncRPC:1 conn,4 req/s,41 μs
2018-03-07 10:42:02Imported #591590 08e2…ce6f (90 txs, 78.10 Mgas, 100.77 ms, 1108.83 KiB)
2018-03-07 10:42:21Syncing#591675 9da6…34d82 blk/s70 tx/s41 Mgas/s5929+ 1221 Qed#59918017/25 peers7 MiB chain100 MiB db79 MiB queue50 MiB syncRPC:1 conn,1 req/s,62 μs
2018-03-07 10:42:30Syncing snapshot 126/617#59918417/25 peers6 MiB chain101 MiB db163 MiB queue51 MiB syncRPC:1 conn,0 req/s,62 μs
2018-03-07 10:42:36Syncing snapshot 126/617#59918417/25 peers8 MiB chain101 MiB db189 MiB queue51 MiB syncRPC:1 conn,1 req/s,62 μs



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


【forkdelta|测试网络部署forkdelta】forkdelta|测试网络部署forkdelta
文章图片



    推荐阅读