Add comment to clarify that the door account should not have a sponsor in the reserve check

This commit is contained in:
tequ
2026-03-23 10:28:27 +09:00
parent b695b4bf9b
commit 53bdfb2bc7

View File

@@ -1007,6 +1007,7 @@ applyCreateAccountAttestations(
// Check reserve
auto const balance = (*sleDoor)[sfBalance];
// Door account should not have a sponsor
if (auto const ret = checkInsufficientReserve(psb, tx, sleDoor, balance, {}, 1);
!isTesSuccess(ret))
return Unexpected(ret); // tecINSUFFICIENT_RESERVE