You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tx_pool: fix early return in remove_transaction_keyimages
Replace CHECK_AND_ASSERT_MES macros with explicit error checks that
continue processing remaining inputs instead of returning early.
The previous behavior could leave orphaned key images in
m_spent_key_images when an error was encountered partway through
the input list, since callers already deleted the transaction from
the pool before calling this function.
Track success via an all_found flag so the return value still
indicates whether all key images were found and removed. Also clean
up empty key_image sets instead of just failing on them.
Resolves the FIXME at the top of the function that noted: "Should
probably not return early, however."
0 commit comments