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

specialops crash when the bitcore-node startup #16

Closed
qinfengling opened this issue Apr 2, 2018 · 1 comment
Closed

specialops crash when the bitcore-node startup #16

qinfengling opened this issue Apr 2, 2018 · 1 comment
Assignees

Comments

@qinfengling
Copy link
Collaborator

Call stack

[2018-04-02T12:21:06.225Z] warn: Reorg detected! Current tip: 0000000000000000000000000000000000000000000000000000000000000000
[2018-04-02T12:21:06.225Z] info: disconnecting block undefined undefined
[2018-04-02T12:21:06.227Z] warn: Disconnected current tip. New tip is 0000000000000000000000000000000000000000000000000000000000000000
[2018-04-02T12:21:06.240Z] error: uncaught exception: TypeError: Cannot read property 'rhash' of undefined
at /home/node/fullnode/bitcore/node_modules/specialops/lib/index.js:197:21
at /home/node/fullnode/bitcore/node_modules/bitcore-node/lib/services/block/index.js:471:14
at /home/node/fullnode/bitcore/node_modules/bitcore-node/lib/services/db/index.js:107:16
at /home/node/fullnode/bitcore/node_modules/levelup/lib/levelup.js:168:14
[2018-04-02T12:21:06.241Z] error: TypeError: Cannot read property 'rhash' of undefined
at /home/node/fullnode/bitcore/node_modules/specialops/lib/index.js:197:21
at /home/node/fullnode/bitcore/node_modules/bitcore-node/lib/services/block/index.js:471:14
at /home/node/fullnode/bitcore/node_modules/bitcore-node/lib/services/db/index.js:107:16
at /home/node/fullnode/bitcore/node_modules/levelup/lib/levelup.js:168:14

@qinfengling
Copy link
Collaborator Author

Fixed in 8c4fe67

The crash caused by invalid hash, when the block height is 0, the block hash is not assigned any value. so the reorg will fail.

@qinfengling qinfengling self-assigned this Apr 3, 2018
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

1 participant