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

neo-cli v2.5.0+ doesn't create blocks anymore #15

Closed
metachris opened this issue Dec 14, 2017 · 4 comments
Closed

neo-cli v2.5.0+ doesn't create blocks anymore #15

metachris opened this issue Dec 14, 2017 · 4 comments
Assignees

Comments

@metachris
Copy link
Contributor

This issue is for tracking the current issue that neo-cli >= v2.5.0 doesn't create blocks anymore.

This is the output of neo-cli version 2.4.1 (current in this master branch, and last neo-cli version that works):

$ ./docker_build.sh

$ ./docker_run.sh
Starting container...
f76bb5849ead5f991b90cfe9f05aef182df6637aa700a3f422cb6bbe6f5bdcb1

$ docker exec -it neo-privnet /bin/bash

root@neo-privnet:/# screen -ls
There are screens on:
    39.node4	(12/14/17 15:12:26)	(Detached)
    26.node3	(12/14/17 15:12:26)	(Detached)
    11.node2	(12/14/17 15:12:26)	(Detached)
    8.node1	(12/14/17 15:12:26)	(Detached)
4 Sockets in /var/run/screen/S-root.
root@neo-privnet:/# screen -d -r 11.node2

This is the output inside the screen:

spawn dotnet neo-cli.dll --rpc
NEO-CLI Version: 2.4.1.0

neo> open wallet wallet2.db3
open wallet wallet2.db3
password: two
***
neo> start consensus
start consensus
[15:14:06] OnStart
[15:14:06] initialize: height=1 view=0 index=0 role=Backup
[15:14:11] OnPrepareRequestReceived: height=1 view=0 index=1 tx=1
[15:14:11] send perpare response
[15:14:11] OnPrepareResponseReceived: height=1 view=0 index=2
[15:14:11] relay block: 0xa868990dc63031d2fc12ff344778e88341461ccd187f1e876a69ad511121af96
[15:14:11] persist block: 0xa868990dc63031d2fc12ff344778e88341461ccd187f1e876a69ad511121af96
[15:14:11] initialize: height=2 view=0 index=0 role=Backup

When running the latest neo-cli (eg neo-cli 2.5.2 from this branch: https://github.com/CityOfZion/neo-privatenet-docker/tree/252), with the same initial commands as above, this is the output inside the screen:

spawn dotnet neo-cli.dll --rpc
NEO-CLI Version: 2.5.2.0

neo> open wallet wallet2.db3
open wallet wallet2.db3
password: ***
neo> start consensus
[11:03:36] OnStart

And it just hangs there without generating blocks.

@AshRolls
Copy link
Collaborator

Feedback from @erikzhang

[4:08 PM] erik: You need to add the consensus contract to the wallet"

@metachris
Copy link
Contributor Author

What's the steps to add the consensus contracts to the wallets?

@AshRolls
Copy link
Collaborator

Not entirely sure... once we figure it out we should be able to just recreate the supplied wallet files with the consensus contract included.

@metachris
Copy link
Contributor Author

Fixed with #18

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

5 participants