Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpos-pbft模拟过程出现“SyntaxError: Unexpected end of JSON input” #2

Open
gx199112 opened this issue Feb 22, 2018 · 1 comment

Comments

@gx199112
Copy link

Version
dpos-pbft 项目最新
https://github.com/sqfasd/dpos-pbft

Environment
win7 +nodeJs 8.9.0

Steps to reproduce
// 使用pbft
node main.js -p

What is expected?
得到模拟结果

What is actually happening?
运行一小段时间后报错
SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at Peer.onData_ (D:\Users\git\dpos-pbft\peer.js:64:20)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:246:13)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:594:20)

@RQWang1995
Copy link

请问这个问题怎么解决呢,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants