-
Notifications
You must be signed in to change notification settings - Fork 8
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
go-ethereum private network sgx implementation #18
Comments
If I add --dev to the geth command line and run it in developer mode, it will work, but instead it will not be able to process transactions. What should I do if I am not allowed to write or append files? |
Please make yourself familiar with gramine's documentation on how it handles file access within the SGX enclave. In essence - trusted files are read only, if you want to have read write access, you can either use tmpfs for ephemeral storage or encrypted files for persistent files. |
Thank you for your reply. In other words, is the permission denied error occurring because I am not using tmpfs or encrypted files for chaindata/ancient, which prevents me from creating/writing/appending to those files? When I tried the default builder (sepolia testnet), did it work properly because it utilizes tmpfs? |
Yes, correct. |
Thank you for your advice. The error to the file is gone but instead:
Does enclave_size cause such errors? Currently testing with 16GB.
|
What Gramine version are you using? FLOCK syscall was implemented in this PR. |
flock syscall needs to be enabled in the manifest: https://gramine.readthedocs.io/en/stable/manifest-syntax.html?highlight=files#experimental-flock-bsd-style-locks-support |
Please try and see if this branch fixes the issue: https://github.com/flashbots/geth-sgx-gramine/tree/flock |
I also ran the install again:
|
Where sys.experimental__enable_flock = true:
The error content seems to have changed. |
Please update your gramine version to the recent 1.6 - https://gramine.readthedocs.io/en/stable/installation.html#install-gramine-packages |
Updated gramine version to 1.6:
|
I reached up to another error by adding max_threads = 128,
Is etc/jwt.hex not being read? \ |
Does |
※Creating etc/jwt.hex got the default builder up and running. 32GB seems to work fine. I created etc/jwt.hex and ran it again:
A new error has occurred
|
It appears that geth update no longer supports POW, so it is no longer possible to include --mine as a command line argument. After removing --mine, it started behaving like the default builder.
--mine https://stackoverflow.com/questions/76648917/cant-start-mining-with-geth |
I am testing geth's private network using this project as a reference.
The device I'm using is an azure VM:
The command line arguments to geth are:
The manifest template is:
The execution result is (excerpt of the error part):
The text was updated successfully, but these errors were encountered: