-
Notifications
You must be signed in to change notification settings - Fork 765
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
fix vm blockchain.delBlock parameter #63
Conversation
@@ -52,7 +52,8 @@ module.exports = function (blockchain, cb) { | |||
}, function (err, results) { | |||
if (err) { | |||
// remove invalid block | |||
self.stateManager.blockchain.delBlock(block, cb) | |||
console.error(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the log
We need an optional logging mechanism -- the error here could be anything but we discard it and just attempt to delete the block. In my case the error was an important piece of evidence in tracking down a bug, but would have lost it.. any idea on optional logging mechanisms? just check |
Having a logging interface would be nice, but For starters it could be just an optional |
recap on a conversation with @kumavis ; I think he can get all the information need from vm.on('block', cb) instead of built in loggin. |
@kumavis will merge! just take out that console.log :) |
@wanderer removed |
Add tests for increased coverage
No description provided.