mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-14 15:45:50 +00:00
This commit is contained in:
@@ -46,7 +46,7 @@ Import::makeTxConsequences(PreflightContext const& ctx)
|
|||||||
if (!inner || !inner->isFieldPresent(sfFee))
|
if (!inner || !inner->isFieldPresent(sfFee))
|
||||||
return beast::zero;
|
return beast::zero;
|
||||||
|
|
||||||
if (!meta)
|
if (!meta || !meta->isFieldPresent(sfTransactionResult))
|
||||||
return beast::zero;
|
return beast::zero;
|
||||||
|
|
||||||
auto const result = meta->getFieldU8(sfTransactionResult);
|
auto const result = meta->getFieldU8(sfTransactionResult);
|
||||||
@@ -1143,10 +1143,14 @@ Import::doApply()
|
|||||||
|
|
||||||
auto const [stpTrans, meta] = getInnerTxn(ctx_.tx, ctx_.journal, &(*xpop));
|
auto const [stpTrans, meta] = getInnerTxn(ctx_.tx, ctx_.journal, &(*xpop));
|
||||||
|
|
||||||
if (!stpTrans || !stpTrans->isFieldPresent(sfSequence) || !stpTrans->isFieldPresent(sfFee))
|
if (!stpTrans ||
|
||||||
|
!stpTrans->isFieldPresent(sfSequence) ||
|
||||||
|
!stpTrans->isFieldPresent(sfFee) ||
|
||||||
|
!meta ||
|
||||||
|
!meta->isFieldPresent(sfTransactionResult))
|
||||||
{
|
{
|
||||||
JLOG(ctx_.journal.warn())
|
JLOG(ctx_.journal.warn())
|
||||||
<< "Import: during apply could not find importSequence or fee, bailing.";
|
<< "Import: during apply could not find one of: importSequence, meta, tx result or fee, bailing.";
|
||||||
return tefINTERNAL;
|
return tefINTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user