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