update tsh

This commit is contained in:
Denis Angell
2023-12-18 13:29:20 +01:00
parent 2876ee146d
commit b926e2e2f6

View File

@@ -131,7 +131,7 @@ getTransactionalStakeHolders(STTx const& tx, ReadView const& rv)
// issuer is also a TSH if the burnable flag is set
auto const issuer = ut->getAccountID(sfIssuer);
if (issuer != owner)
ADD_TSH(issuer, ut->getFlags() & lsfBurnable);
ADD_TSH(issuer, (ut->getFlags() & lsfBurnable) ? tshSTRONG : tshWEAK);
break;
}
@@ -150,7 +150,7 @@ getTransactionalStakeHolders(STTx const& tx, ReadView const& rv)
// issuer is a strong TSH if the burnable flag is set
if (issuer != owner)
ADD_TSH(issuer, ut->getFlags() & lsfBurnable);
ADD_TSH(issuer, (ut->getFlags() & lsfBurnable) ? tshSTRONG : tshWEAK);
// destination is a strong tsh
if (tx.isFieldPresent(sfDestination))