mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fixup Import Signers (#138)
* add guard and tests * disable xpop array feature
This commit is contained in:
@@ -290,7 +290,7 @@ Import::preflight(PreflightContext const& ctx)
|
||||
auto const& outerSigners = tx.getFieldArray(sfSigners);
|
||||
auto const& innerSigners = stpTrans->getFieldArray(sfSigners);
|
||||
|
||||
bool ok = outerSigners.size() == innerSigners.size();
|
||||
bool ok = outerSigners.size() == innerSigners.size() && innerSigners.size() > 1;
|
||||
for (uint64_t i = 0; ok && i < outerSigners.size(); ++i)
|
||||
{
|
||||
if (outerSigners[i].getAccountID(sfAccount) != innerSigners[i].getAccountID(sfAccount) ||
|
||||
|
||||
Reference in New Issue
Block a user