-
Notifications
You must be signed in to change notification settings - Fork 535
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
Impl block prevrandao #2736
Impl block prevrandao #2736
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2736 +/- ##
==========================================
- Coverage 65.35% 64.89% -0.47%
==========================================
Files 69 66 -3
Lines 9797 8563 -1234
==========================================
- Hits 6403 5557 -846
+ Misses 3394 3006 -388 ☔ View full report in Codecov by Sentry. |
I have 2 concerns with this:
|
An insecure random value that's based on parent block hash will be provided. But there are only few limited ways to trigger EVM call in
I guess we can cache the value? Otherwise we need to ensure we charge enough gas. |
I think we need to be careful with this, at least enable only on mandala & karura first |
It is known prevrandao have its limitation and cannot be used solely for cases requires strong random number, extra randomness source are required so I am not too worried about abuse. |
Closes: #2693