GithubHelp home page GithubHelp logo

chainsdk's People

Contributors

topelinux avatar waterflier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chainsdk's Issues

demo/dpos can not run 2 miners at the same time

Problem:
我在测试中发现demo/dpos例子,无法运行2个miner节点。理论上应该在Node1运行后,Node2能够接收到Node1广播的出块信息,但是没有。

Node1

2018-12-03T07:38:24.626Z - info: =============_updateTip get 2 1,number=4,hash=d2b28a0b3514977e8da1025f33d7c926799c01c92704d00cb442260c68aeb503 chain.js:529
2018-12-03T07:38:24.626Z - info: begin recycle snanshot log_snapshot_manager.js:28
2018-12-03T07:38:24.627Z - info: delete snapshot f0c04e22ad24d2bbf3c13981a4436e16553ac3e776ec6d639c731a7bf039f089 log_snapshot_manager.js:32
2018-12-03T07:38:24.627Z - info: delete snapshot 582c9aa6cc46327f3e1d927998081f32dbd196f3a754cebf5ed509c1e17ab3fe log_snapshot_manager.js:32
2018-12-03T07:38:24.628Z - debug: emit tipBlock with af374dc692cf56e556acfeb2e799578e8a79e643609752ea03bd640ea34d4c74 16 chain.js:976
2018-12-03T07:38:24.628Z - info: begin recycle snanshot log_snapshot_manager.js:28
2018-12-03T07:38:24.629Z - info: broadcast tip headers from number: 16 hash: af374dc692cf56e556acfeb2e799578e8a79e643609752ea03bd640ea34d4c74 to number: 16 hash: af374dc692cf56e556acfeb2e799578e8a79e643609752ea03bd640ea34d4c74 chain.js:992
2018-12-03T07:38:34.001Z - debug: update header storage cache hash: b7e434b687fd8132f6198be3f0218f3e45a72d90b3ddad099002f8e0da624461 number: 0 verified: 1 header_storage.js:179

Node2

2018-12-03T07:38:36.618Z - debug: [network: default peerid: miner2] will connect to peers from node storage:  Set {} random_outbound_network.js:72
2018-12-03T07:38:37.039Z - debug: [network: default peerid: miner2] cannot find any peers, ignore connect. random_outbound_network.js:99
2018-12-03T07:38:37.631Z - debug: [network: default peerid: miner2] node need more 7 connection, call  _newOutbounds random_outbound_network.js:58
2018-12-03T07:38:37.632Z - debug: [network: default peerid: miner2] will connect to peers from node storage:  Set {} random_outbound_network.js:72
2018-12-03T07:38:38.042Z - debug: [network: default peerid: miner2] cannot find any peers, ignore connect. random_outbound_network.js:99
2018-12-03T07:38:38.635Z - debug: [network: default peerid: miner2] node need more 7 connection, call  _newOutbounds random_outbound_network.js:58
2018-12-03T07:38:38.636Z - debug: [network: default peerid: miner2] will connect to peers from node storage:  Set {} random_outbound_network.js:72
2018-12-03T07:38:39.047Z - debug: [network: default peerid: miner2] cannot find any peers, ignore connect. random_outbound_network.js:99
2018-12-03T07:38:39.638Z - debug: [network: default peerid: miner2] node need more 7 connection, call  _newOutbounds random_outbound_network.js:58
2018-12-03T07:38:39.639Z - debug: [network: default peerid: miner2] will connect to peers from node storage:  Set {} random_outbound_network.js:72
2018-12-03T07:38:40.056Z - debug: [network: default peerid: miner2] cannot find any peers, ignore connect. random_outbound_network.js:99

Environment:
Ubuntu 16.04 server Node1, Node 2
使用了自己的SN server

Test Steps:
Node1
(1) ./demo/dpos/create.sh
(2)./demo/dpos/miner.sh
Node2
(3)./demo/dpos/create.sh
(4)./demo/dpos/miner2.sh

Scripts:
脚本中,除了更改miner.cfg里的"sn"外,没有变化。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.