Giter VIP home page Giter VIP logo

Comments (3)

JoelKatz avatar JoelKatz commented on August 22, 2024

You mean built into the server? Or you mean an algorithm they can execute? Basically, it would be:

  1. Do an account_tx. Look only at transactions you didn't initiate and where you are not the recipient.
  2. Look for any ripple lines between you and someone else.
  3. Normalize the amount so it's relative to you.
  4. Subtract the previous value (if any) and add the new value from/to a running total.

This doesn't cover the edge case where a deposit to them in one currency ripples through an offer that pays them a transfer fee in another currency.

from rippled.

ahbritto avatar ahbritto commented on August 22, 2024

It is harder than that we are missing meta data for figuring out something to do with which path increment was taken.

from rippled.

JoelKatz avatar JoelKatz commented on August 22, 2024

I don't think it matters, except for the edge case I mentioned. If you're not a party to the transaction, all you care about is what, on net, happened to your liabilities. (I figured out how to fix the edge case. If you're the recipient, subtract the destination amount because it's a liability. If you're the originator, add the sent amount because it's a negative against liabilities. Process all transaction that affect your ripple state nodes.)

from rippled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.