02Sheet 02.03.078 · Entries

A trustline set to authorized-to-maintain-liabilities

SET_TRUST_LINE_FLAGS clears AUTHORIZED (1) and sets AUTHORIZED_TO_MAINTAIN_LIABILITIES (2) on bob's XPF trustline, which also carries TRUSTLINE_CLAWBACK_ENABLED (4) inherited from the issuer: flags go from 5 to 6.

FIG. · Where it sits · inside LedgerCloseMetaCAP-0018 · CAP-0035 · H-C10
trustline flag AUTHORIZED_TO_MAINTAIN_LIABILITIES

The shape

SET_TRUST_LINE_FLAGS clears AUTHORIZED (1) and sets AUTHORIZED_TO_MAINTAIN_LIABILITIES (2) on bob's XPF trustline, which also carries TRUSTLINE_CLAWBACK_ENABLED (4) inherited from the issuer: flags go from 5 to 6. Readers that test flags == 2 instead of the bit miss the state; readers that ignore the clawback bit miss that the balance can be clawed back.

Variants

VariantProtocolNetworkSourceSizesha256
p30-mainnet-generatedP30mainnet passphrasegenerated by stellar-core v30.0.02,260 B43504f4091c0…
p30-testnet-generatedP30testnet passphrasegenerated by stellar-core v30.0.02,260 B7c4d5b7c9ec8…

What a correct reader returns

A correct reader findsValueBacked by
Before: flags 5 (authorized, clawback enabled).some change where 2 fields matchsnapshotcorewalker
After: flags 6 (maintain liabilities, clawback enabled).some change where 2 fields matchsnapshotcorewalker

Check it yourself

make verify   # schema, hashes, the byte-for-byte round trip and every fact above
make oracle   # the facts' values, re-read by stellar-core and the schema walker

Entry id trustline.maintain-liabilities · compiled from catalog/trustline.maintain-liabilities.json · entry.json

On this page