Comments (3)
You mean built into the server? Or you mean an algorithm they can execute? Basically, it would be:
- Do an account_tx. Look only at transactions you didn't initiate and where you are not the recipient.
- Look for any ripple lines between you and someone else.
- Normalize the amount so it's relative to you.
- 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.
It is harder than that we are missing meta data for figuring out something to do with which path increment was taken.
from rippled.
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)
- [ledger_entry of oracle with non numeric input of oracle_document_id do not return an error] (Version: ["2.2.0-b2"]) HOT 6
- Negative LPTokenValue following AMMWithdraw transaction HOT 1
- Compilation error in STAmount.cpp: expected nested-name-specifier before 'enum HOT 2
- ./rippled --unittest failed output HOT 4
- Peer crawler port field type inconsistency HOT 1
- [XRP EscrowCreate] (Version: [2.1.1]) HOT 2
- Sometimes, after a service restart, my full history Ripple server shows an incorrect complete ledger range. Version: 2.2.0-b3
- Invalid "success" response from book_changes (possible race condition) HOT 1
- book_changes API method doesn't follow standard ledger selection rules
- book_changes is missing `"validated": true` field in JSON-RPC response
- book_changes takes a long time querying full-history servers HOT 2
- Add SHAMap to libxrpl
- Feature request: Object transaction history RPC
- `subscribe` method doesn't create a listener ( Rippled Version: 2.2.0 ) ( "xrpl": "^3.1.0" )
- [ripple_path_find request forwarded from Clio returns failedToForward when there's load on rippled] (Version: [2.3.0-b1])
- Sign-and-submit mode doesn't autofill the correct tx fee (Version: rippled 2.1.0) HOT 1
- ripple_path_find closes websocket connection (Version: 2.3.0-b1)
- Apply `asfDisallowIncomingTrustline` blocker to `OfferCreate` txn
- Replicate OfferCreate functionality in Payments to Self HOT 2
- Vacuum is not working as intended/documented (Version: 2.2.1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rippled.