Skip to content

Conversation

@luke-jr
Copy link
Member

@luke-jr luke-jr commented Jan 6, 2019

Makes the GUI transaction list more like the RPC, and IMO clearer in general.

As a side effect, this also fixes the GUI entries when a transaction is a net profit to us, but some inputs were also from us.

@fanquake fanquake added the GUI label Jan 6, 2019
@luke-jr
Copy link
Member Author

luke-jr commented Jan 6, 2019

Apparently tests need updating. Concept ACK/NACK?

@promag
Copy link
Contributor

promag commented Jan 6, 2019

Before:
screenshot 2019-01-06 at 18 06 22

After:
screenshot 2019-01-06 at 18 06 41

In #12578 the "Sent to" row would only have 0.1 and the fee would be in a separate row.

@hebasto
Copy link
Member

hebasto commented Jan 6, 2019

@promag

In #12578 the "Sent to" row would only have 0.1 and the fee would be in a separate row.

I cannot reproduce that.

@Empact
Copy link
Contributor

Empact commented Jan 7, 2019

Concept ACK - seems like a nice simplification, and IMO the table is more clear

@hebasto
Copy link
Member

hebasto commented Jan 7, 2019

Does this approach work for special transactions (e.g., CoinJoin, Pay-to-Endpoint etc)?

@luke-jr
Copy link
Member Author

luke-jr commented Jan 7, 2019

Does this approach work for special transactions (e.g., CoinJoin, Pay-to-Endpoint etc)?

It can't. If you have a tx from A & B to C & D, there's no logical way to know the correct logical transaction(s) that comprise it, without some kind of metadata.

@luke-jr
Copy link
Member Author

luke-jr commented Jan 7, 2019

(It might display it nicer, though, as a single "net change" entry)

@kristapsk
Copy link
Contributor

Haven't tested, but in the screenshot above "Received with" is before "Sent to". Shouldn't it be other way around?

@promag
Copy link
Contributor

promag commented Jan 7, 2019

@kristapsk yap, it makes more sense if you consider the order important.

@luke-jr
Copy link
Member Author

luke-jr commented Jan 7, 2019

Tests and sorting fixed. Ready for review.

@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 9, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@jonasschnelli
Copy link
Contributor

Concept ACK
I guess this is much more understandable.

MarkLTZ added a commit to litecoinz-core/litecoinz that referenced this pull request Nov 18, 2019
@luke-jr luke-jr force-pushed the rm_send2self branch 2 times, most recently from da5656e to 14bb8db Compare February 15, 2020 20:16
@luke-jr
Copy link
Member Author

luke-jr commented Feb 15, 2020

Rebased

@jonasschnelli
Copy link
Contributor

Re-concept ACK.
Can we have more eyes/reviews on that PR?
@promag, @hebasto?

@jonasschnelli
Copy link
Contributor

Maybe also a QT test that produces a variate of transaction types including CoinJoins with an optional to manually verify the transaction table (or a produced screenshot) would be great.

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 14bb8db on Linux Mint 19.3 (x86_64):

  • one "recipient"
    • master
      Screenshot from 2020-06-04 15-27-37
    • this PR
      Screenshot from 2020-06-04 15-28-08
  • two "recipients"
    • master
      Screenshot from 2020-06-04 15-34-50
    • this PR
      Screenshot from 2020-06-04 15-32-51

  1. I'd prefer to keep the "Payment to yourself" type as descriptive enough.

  2. Could a send-to-self tx has only two records: combined debit and combined credit?

@luke-jr
Copy link
Member Author

luke-jr commented Jun 4, 2020

I'd prefer to keep the "Payment to yourself" type as descriptive enough.

How would that even work? Why?

Could a send-to-self tx has only two records: combined debit and combined credit?

That breaks labels and defeats the point of having multiple recipients. If you want that as a user, you can just use one recipient?

@hebasto
Copy link
Member

hebasto commented Jun 5, 2020

@luke-jr

I'd prefer to keep the "Payment to yourself" type as descriptive enough.

How would that even work? Why?

On master, one could easily spot send-to-self txs in the tx list, and use sorting in "Type" column. I believe it is convenient. Without "Payment to yourself" type such UX is lost.


Could a send-to-self tx has only two records: combined debit and combined credit?

That breaks labels...

Agree.

... and defeats the point of having multiple recipients. If you want that as a user, you can just use one recipient?

It is up to a user how many txouts one wants to create in a send-to-self tx, no?

@luke-jr
Copy link
Member Author

luke-jr commented Jun 5, 2020

On master, one could easily spot send-to-self txs in the tx list, and use sorting in "Type" column. I believe it is convenient. Without "Payment to yourself" type such UX is lost.

What is the use case?

It is up to a user how many txouts one wants to create in a send-to-self tx, no?

But you want to make anything other than 1 (in effect) require multiple transactions...

@hebasto
Copy link
Member

hebasto commented Jun 5, 2020

On master, one could easily spot send-to-self txs in the tx list, and use sorting in "Type" column. I believe it is convenient. Without "Payment to yourself" type such UX is lost.

What is the use case?

For example, a user want to review send-to-self txs made some time ago...

@luke-jr
Copy link
Member Author

luke-jr commented Jun 5, 2020

What is the use case for "send-to-self txs"?

The only time I've ever seen actual sends-to-self occur, are also cases in which deviations of behaviour are bad...

@hebasto
Copy link
Member

hebasto commented Jun 5, 2020

The only time I've ever seen actual sends-to-self occur, are also cases in which deviations of behaviour are bad...

... tend to agree with you.

What is the use case for "send-to-self txs"?

The scope of this PR is to how to present the existing "send-to-self" txs to a user in the GUI, as I understand it.

The discussions about "should send-to-self txs exist" or "what is the use case for send-to-self txs" deserve their own issues/pulls :)

@luke-jr
Copy link
Member Author

luke-jr commented Jun 5, 2020

This replaces send-to-self. As in, they cease to exist conceptually.

(And they never had any existence beyond conceptually.)

…g whether a transaction is a send or receive

This changes behaviour (IMO for the better) in the case where some but not all inputs are from us, and the net amount is positive.
If we didn't send it, it can't possibly be change, even if that's the key's purpose
@luke-jr
Copy link
Member Author

luke-jr commented Aug 20, 2020

Rebased. This has quite a few Concept ACKs - how about some code review? :/

@fanquake
Copy link
Member

Rebased. This has quite a few Concept ACKs - how about some code review? :/

Lets try and make that happen over in the GUI repo.

@fanquake fanquake closed this Sep 19, 2020
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants