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.
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
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,260 B | 43504f4091c0… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 2,260 B | 7c4d5b7c9ec8… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| Before: flags 5 (authorized, clawback enabled). | some change where 2 fields match | snapshotcorewalker |
| After: flags 6 (maintain liabilities, clawback enabled). | some change where 2 fields match | snapshotcorewalker |
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 walkerEntry id trustline.maintain-liabilities · compiled from catalog/trustline.maintain-liabilities.json · entry.json
A trustline balance is clawed back
CLAWBACK burns 10 XPF from mm's trustline and emits a clawback event.
Four trustlines from three operation sources in one transaction, one alphanum-12 at the int64-max limit
One transaction, three operation sources (alice, bob, mm), alphanum-4 and alphanum-12 assets, and a trustline limit of 922337203685.4775807 (int64 max stroops).