mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 18:45:55 +00:00
additional fix
This commit is contained in:
@@ -72,6 +72,16 @@ Remit::preflight(PreflightContext const& ctx)
|
|||||||
return temREDUNDANT;
|
return temREDUNDANT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ctx.rules.enabled(fix20250131))
|
||||||
|
{
|
||||||
|
if (!dstID || dstID == noAccount())
|
||||||
|
{
|
||||||
|
JLOG(ctx.j.warn())
|
||||||
|
<< "Malformed transaction: Remit to invalid account.";
|
||||||
|
return temMALFORMED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx.tx.isFieldPresent(sfInform))
|
if (ctx.tx.isFieldPresent(sfInform))
|
||||||
{
|
{
|
||||||
AccountID const infID = ctx.tx.getAccountID(sfInform);
|
AccountID const infID = ctx.tx.getAccountID(sfInform);
|
||||||
@@ -309,7 +319,8 @@ Remit::doApply()
|
|||||||
std::uint32_t const seqno{
|
std::uint32_t const seqno{
|
||||||
sb.rules().enabled(featureXahauGenesis)
|
sb.rules().enabled(featureXahauGenesis)
|
||||||
? sb.info().parentCloseTime.time_since_epoch().count()
|
? sb.info().parentCloseTime.time_since_epoch().count()
|
||||||
: sb.rules().enabled(featureDeletableAccounts) ? sb.seq() : 1};
|
: sb.rules().enabled(featureDeletableAccounts) ? sb.seq()
|
||||||
|
: 1};
|
||||||
|
|
||||||
sleDstAcc = std::make_shared<SLE>(keylet::account(dstAccID));
|
sleDstAcc = std::make_shared<SLE>(keylet::account(dstAccID));
|
||||||
sleDstAcc->setAccountID(sfAccount, dstAccID);
|
sleDstAcc->setAccountID(sfAccount, dstAccID);
|
||||||
|
|||||||
Reference in New Issue
Block a user