-
Notifications
You must be signed in to change notification settings - Fork 28
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
Missing call to executeTransactions() #2
Comments
Thanks man, I had to complete it in a hurry, therefore there are lot of bugs. And I have been busy lately so i couldn't fix this stuff. |
Create a PR and I'll merge it. |
fix : executeTransactions() issue #2
I think this part of the code needs to be changed. pos-blockchain/blockchain/blockchain.js Lines 22 to 27 in 2f91fe5
The part of the code shown below that calls this function actually passes a block object to the function. pos-blockchain/blockchain/blockchain.js Lines 80 to 89 in 2e7ee09
The block object was already created when the message was sent from the other node and there is no need to create a block again as you have done. You just have to add it to the chain as it was in the original code. |
pos-blockchain/blockchain/blockchain.js
Line 22 in 2e7ee09
Before this function returns, it should call
this.executeTransactions(block);
. This way the accounts are updated.Btw, you wrote an excellent tutorial! It's really appreciated.
Cheers!
The text was updated successfully, but these errors were encountered: