Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

management of account expiration & memory #701

Merged
merged 5 commits into from Mar 13, 2016
Merged

management of account expiration & memory #701

merged 5 commits into from Mar 13, 2016

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Mar 13, 2016

No description provided.

@NikVolf NikVolf added the A0-pleasereview 🤓 Pull request needs code review. label Mar 13, 2016
@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 13, 2016
.filter(|&(_, unlock)| unlock.expires < utc)
.map(|(address, _)| address.clone()).collect::<Vec<Address>>();

for expired in expired_addresses { self.unlocks.write().unwrap().remove(&expired); }
Copy link
Collaborator

Choose a reason for hiding this comment

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

This does not remove anything from memory though. First there is no guarantee it is deallocated. Second, even if it is deallocated there is no guarantee memory will be cleared.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, needs some work, since there are secrets there

@NikVolf NikVolf added A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. and removed A8-looksgood 🦄 Pull request is reviewed well. labels Mar 13, 2016
@NikVolf NikVolf added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Mar 13, 2016
gavofyork added a commit that referenced this pull request Mar 13, 2016
management of account expiration & memory
@gavofyork gavofyork merged commit 97fe4fc into master Mar 13, 2016
@gavofyork gavofyork deleted the sstore-key-exp branch March 13, 2016 22:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview 🤓 Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants