Skip to content

feat(zksnark): delete sapling tmp file on exit#5467

Merged
halibobo1205 merged 1 commit intotronprotocol:developfrom
halibobo1205:feat/zksnark
Sep 5, 2023
Merged

feat(zksnark): delete sapling tmp file on exit#5467
halibobo1205 merged 1 commit intotronprotocol:developfrom
halibobo1205:feat/zksnark

Conversation

@halibobo1205
Copy link
Copy Markdown
Collaborator

close #5465

}
if (fileOut.exists()) {
fileOut.deleteOnExit();
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will it delete twice ? It is possbile to delete these two files manually when close ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Will it delete twice ?

No, Even that's okay.

It is possbile to delete these two files manually when close ?

jni file, it's safer to delete it at the end by DeleteOnExitHook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/tmp directory is full of sapling-send.params.* files and libzksnarkjni* files

3 participants