mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 02:25:53 +00:00
clang-format
This commit is contained in:
@@ -3139,8 +3139,10 @@ DEFINE_HOOK_FUNCTION(
|
||||
WRITE_WASM_MEMORY_AND_RETURN(
|
||||
write_ptr,
|
||||
write_len,
|
||||
keylet_type == keylet_code::AMENDMENTS ? cAmendments.data()
|
||||
: keylet_type == keylet_code::FEES ? cFees.data()
|
||||
keylet_type == keylet_code::AMENDMENTS
|
||||
? cAmendments.data()
|
||||
: keylet_type == keylet_code::FEES
|
||||
? cFees.data()
|
||||
: keylet_type == keylet_code::NEGATIVE_UNL
|
||||
? cNegativeUNL.data()
|
||||
: cEmittedDir.data(),
|
||||
@@ -6004,9 +6006,9 @@ DEFINE_HOOK_FUNCTION(
|
||||
|
||||
size_t free_count = hook_api::max_slots - hookCtx.slot.size();
|
||||
|
||||
size_t needed_count = slot_into_tx == 0 && slot_into_meta == 0 ? 2
|
||||
: slot_into_tx != 0 && slot_into_meta != 0 ? 0
|
||||
: 1;
|
||||
size_t needed_count = slot_into_tx == 0 && slot_into_meta == 0
|
||||
? 2
|
||||
: slot_into_tx != 0 && slot_into_meta != 0 ? 0 : 1;
|
||||
|
||||
if (free_count < needed_count)
|
||||
return NO_FREE_SLOTS;
|
||||
|
||||
Reference in New Issue
Block a user