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

CTxPool::AddNew和CTxPoolView::AddNew如果失败时要考虑数据回滚 #506

Open
sunhantao opened this issue Apr 26, 2020 · 1 comment

Comments

@sunhantao
Copy link
Collaborator

原来是全部校验好了,再AddNew,一定成功。现在规则复杂了,有return false的分支,但是return之前保存的数据应该回滚

@sunhantao sunhantao added the bug Something isn't working label Apr 26, 2020
@cchanm
Copy link
Contributor

cchanm commented Apr 27, 2020

之前做TXPOOL的时候就提过这个事,能处理回滚最好的

@cchanm cchanm added improvement and removed bug Something isn't working labels May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants