mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-29 23:26:45 +00:00
no safety log
This commit is contained in:
@@ -4,10 +4,10 @@ use steel::*;
|
|||||||
/// No-op, use instruction data for logging w/o truncation.
|
/// No-op, use instruction data for logging w/o truncation.
|
||||||
pub fn process_log(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult {
|
pub fn process_log(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult {
|
||||||
// Load accounts.
|
// Load accounts.
|
||||||
let [signer_info] = accounts else {
|
// let [signer_info] = accounts else {
|
||||||
return Err(ProgramError::NotEnoughAccountKeys);
|
// return Err(ProgramError::NotEnoughAccountKeys);
|
||||||
};
|
// };
|
||||||
signer_info.as_account::<Block>(&ore_api::ID)?;
|
// signer_info.as_account::<Block>(&ore_api::ID)?;
|
||||||
|
|
||||||
// For data integrity, only a block can log messages.
|
// For data integrity, only a block can log messages.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user