-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Bump solana_rbpf to v0.8.0 #33679
Bump solana_rbpf to v0.8.0 #33679
Conversation
0b91224
to
7989aa6
Compare
4e57907
to
5aee45d
Compare
Codecov Report
@@ Coverage Diff @@
## master #33679 +/- ##
========================================
Coverage 81.8% 81.8%
========================================
Files 806 806
Lines 217893 217065 -828
========================================
- Hits 178285 177774 -511
+ Misses 39608 39291 -317 |
5aee45d
to
7356fe4
Compare
@@ -39,44 +40,46 @@ use { | |||
}, | |||
}; | |||
|
|||
pub type ProcessInstructionWithContext = BuiltinFunction<InvokeContext<'static>>; | |||
pub type BuiltinFunctionWithContext = BuiltinFunction<InvokeContext<'static>>; | |||
|
|||
/// Adapter so we can unify the interfaces of built-in programs and syscalls | |||
#[macro_export] | |||
macro_rules! declare_process_instruction { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think this macro and its callers would look less weird if the macro had a pattern where the
the ident is optional and defaults to Entrypoint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should rename a lot of things, but want to do that in different PRs.
"Entrypoint" is bad because in PRv2 every function can be an entrypoint.
MemoryMapping::new(Vec::new(), &mock_config, &SBPFVersion::V2).unwrap(); | ||
let mut result = ProgramResult::Ok(0); | ||
process_instruction( | ||
let mut vm = EbpfVm::new( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed on slack please add a comment explaining why it's ok to hardcode
here, and hardcode v1 for now
Replaces declare_syscall!() with declare_builtin_function!(). Removes Config::encrypt_runtime_environment. Simplifies error propagation.
7356fe4
to
eaec288
Compare
* Bumps solana_rbpf to v0.8.0 * Adjustments: Replaces declare_syscall!() with declare_builtin_function!(). Removes Config::encrypt_runtime_environment. Simplifies error propagation. (cherry picked from commit a5c7c99) # Conflicts: # Cargo.toml # programs/bpf_loader/src/syscalls/mod.rs # programs/sbf/Cargo.toml # runtime/src/bank/tests.rs
* Bumps solana_rbpf to v0.8.0 * Adjustments: Replaces declare_syscall!() with declare_builtin_function!(). Removes Config::encrypt_runtime_environment. Simplifies error propagation. (cherry picked from commit a5c7c99)
* Bumps solana_rbpf to v0.8.0 * Adjustments: Replaces declare_syscall!() with declare_builtin_function!(). Removes Config::encrypt_runtime_environment. Simplifies error propagation. (cherry picked from commit a5c7c99)
* Bumps solana_rbpf to v0.8.0 * Adjustments: Replaces declare_syscall!() with declare_builtin_function!(). Removes Config::encrypt_runtime_environment. Simplifies error propagation. (cherry picked from commit a5c7c99)
* updated inner_call for hashing fn to follow generic approach (#33128) * updated inner_call for hashing fn to follow generic approach * different hash compute budget values for all digests * fixed conflicts * reverted changes to compute_budget.rs and added 3method to trait to get compute budget values * updated type for result fn for HasherImpl * using Hash directly in result fn, got rid of HASH_BYTES and removed comment form compute_budget * updated import statement * cargo fmt -all * removed unused import and reference related warning * oops forgot semicolon * removed trailing white space (cherry picked from commit a60d185) * Bump solana_rbpf to v0.8.0 (#33679) * Bumps solana_rbpf to v0.8.0 * Adjustments: Replaces declare_syscall!() with declare_builtin_function!(). Removes Config::encrypt_runtime_environment. Simplifies error propagation. (cherry picked from commit a5c7c99) --------- Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
solana_rbpf v0.8.0 was released.