Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix #436 object_database created outside of witness data directory #687

Closed
wants to merge 3 commits into from
Closed

Conversation

windycrypto
Copy link
Member

No description provided.

@pmconrad
Copy link
Contributor

You mean #436 I suppose

@oxarbitrage
Copy link
Member

that makes much more sense, thanks @pmconrad . also, the .gitignore changes are unrelated to the issue.

Copy link
Contributor

@pmconrad pmconrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO you shouldn't introduce an "_opened" flag without

  1. specifying what it means that the database is "open", and
  2. consistently checking the flag wherever it makes sense.
    For example, what happens if you create objects in a database that is not "open", and then call open(). Doesn't make sense, should be forbidden.

It seems that database::wipe is only ever called from application::startup. before database::open is called. A minimalist fix would be to simply remove the call to database::close() in database::wipe(). I haven't checked if close has any other relevant side effects though.

.gitignore Outdated
libraries/egenesis/egenesis_brief.cpp
libraries/egenesis/egenesis_full.cpp
libraries/egenesis/embed_genesis
tests/generate_empty_blocks/generate_empty_blocks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing .gitignore is unrelated, please undo.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the changes are good. However, better to do it with another PR.

@abitmore abitmore changed the base branch from master to develop February 24, 2018 19:50
@abitmore abitmore changed the title fix #121, maybe the minimalist solution Fix #436 object_database created outside of witness data directory Feb 24, 2018
@abitmore
Copy link
Member

Thanks for the contribution anyway.

According to the Git Flow, features that are not consensus-related need to be merged into develop, so please rebase on top of develop branch and remove unrelated commits E.G. the "mistake" one, after done, you can force push to avoid submitting a new PR.

oxarbitrage and others added 3 commits February 25, 2018 11:53
sorry, i made a commit directly to master instead of sending as pull request to develop. this commit reverts back.
@windycrypto windycrypto deleted the issue121 branch February 25, 2018 04:24
@windycrypto
Copy link
Member Author

sorry I deleted my former branch by mistake, I have to request another pr #689, bother moving to there...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants