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

Netting Project: PR 1 of n #409

Closed
wants to merge 4 commits into from
Closed

Conversation

sanket1729
Copy link
Collaborator

@sanket1729 sanket1729 commented Dec 8, 2019

The project will probably have lots of PRs coming the way. I am making small PRs for fast development and easy review/merges.

Although this PR does not add any functionality by itself, I think merging this will save development and review time in the future. Let me know if you have any issues with this approach. And we can decide on another way of doing this.

I am also trying to maintain this project as a standalone project without reliance on this codebase, but I don't think that effort is warranted for now. I am using a custom .gitignore file for this project.

As of now, this PR supports:

  • Creation of transaction and balances from initial values

  • Client reading the data from files and saving in-memory structures.

  • Tests for the correct functioning of these files

@sanket1729
Copy link
Collaborator Author

Tracked in #410

rm -rf data/

gen_data:
python3 scripts/generate_data.py
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to remain consistent with the code base, let's use Makefile instead of makefile. Although both work, the GNU make manual recommends Makefile:

We recommend Makefile because it appears prominently near the beginning of a directory listing, right near other important files such as README.

bal_file_prefix = "party_"
bal_file_suffix = "_bal_data.csv"

NETTING_BASE_DIR = "/usr/src/HoneyBadgerMPC/apps/netting/"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a plan to have more files under apps/netting/config/? If not, apps/netting/config.py is sufficient and makes the code simpler.

shutil.rmtree(path)
except Exception as e:
logging.exception(e)
pass
Copy link
Collaborator

Choose a reason for hiding this comment

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

The pass is not needed 😄 .

@amiller
Copy link
Contributor

amiller commented Apr 25, 2020

Closing as we're working on another branch

@amiller amiller closed this Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants