question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Aggregate transfers in MultiPayment sent to the same recipient

See original GitHub issue

Currently, a MultiPayment transaction can be built with separate payments to the same recipient.

To reduce the number of { recipient, amount } items stored in a MultiPayment transaction (and to save computational power on the node), the crypto package could aggregate separate payments sent to the same recipient in a single MultiPayment in the builder.

Example ( considering [ { recipient: amount } ... ] ):

[ {sameAddress : 1 }, { sameAddress : 2 }, { otherAddress: 5 } ]

Becomes:

[ { sameAddress : 3 }, { otherAddress : 5 } ]

Additionally, an optional parameter could be added to the builder to configure whether the MultiPayment should aggregate payments or not (enabled by default).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
faustbriancommented, Feb 19, 2020

I rather avoid behaviour this. If the user passes in a certain set of data then we will use this as we have to assume that it was his intention, if he wants to aggregate them he can do that but something like that is part preparing your data for signing and not something a library should just do.

The data is permanently stored on the blockchain and us altering any kind of user data is a no go. What they pass in goes on the blockchain.

0reactions
ghostcommented, Feb 19, 2020

This issue has been closed. If you wish to re-open it please provide additional information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Aggregate Transfer Definition - Law Insider
Aggregate Transfer shall refer to the total percentage of the shares of stock, partnership interests, membership interests, or any other equity interests (which ......
Read more >
US8407082B2 - Aggregation of validated transactions for settlement ...
27. The method as defined in claim 1 , further comprising differentiating multiple riders having the same account based on the access transaction...
Read more >
Consolidated Financial Statements for Bank Holding Companies
addressed to the appropriate Federal Reserve Bank (that ... provision for allocated transfer risk related to loans and leases.
Read more >
Digital Banking User Guide - Heartland Bank
Sent Messages. Transfer & Payments. Quick, One-time Transfers. Standard One-time or Recurring Transfers. Memo for Transfers. Linking Accounts.
Read more >
FFIEC 031,032,033,034 Call Report Instructions
can send the data file containing its Reports of Condition and Income to EDS ... (4) by transferring financial assets in exchange for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found