Shrink To Fit trustline

Open
#287 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
blockchain
Domain
blockchain

Research direction

Issue #287 proposes a new trustline operation that sets the trust limit to the smallest size accommodating liabilities and balances. Start by reviewing the existing trustline and transaction protocol definitions; done means specifying and documenting a backwards-compatible operation whose behavior can be emulated by existing transactions.

Written by the indexing model from the issue text.

Description

CAP enhancement help wanted needs draft

This proposes a new operation which is equivalent of a shrink_to_fit for trustlines.

The core purpose of this operation is to avoid a situation where attempts at closing a trustline fail because someone sends a small amount of asset to a trustline which is not at the limit, preventing a change trust from decreasing it.

a shrink to fit operation should set the trust line's trust limit to the smallest size to accommodate liabilities and balances.

This should be easily backwards compatible as the behavior is an emulable interleaving of existing transactions.

Dominant language
RPC
Stars
632
Forks
399
Avg merge
1d 23h
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-protocol

All issues in stellar/stellar-protocol

Similar issues

More Blockchain issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.