Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listsinceblock and listtransactions don't show incoming unconfirmed transactions #1157

Open
santins77 opened this issue Jun 8, 2018 · 21 comments
Labels
Milestone

Comments

@santins77
Copy link

The list of transactions returned by listsinceblock and listtransactions don't show the incoming transactions with 0 confirmations. They are only shown when they reach one confirmation. This rpc api behavior is different comparing to bitcoin and some other bitcoin family coins

@iFoggz
Copy link
Member

iFoggz commented Jun 8, 2018

the listtransactions functionality is not much different then bitcoins actually . if the transaction has 0 confirms it does show for me in listtransactions with 0 confirms (sent to myself). default it shows only 10 transactions. there are some issues regarding listsinceblock in the main release that is addressed in development slated for release in near future.i'll verify there were no changes to listtransactions since release

only time no tx would be shown is if it conflicted -1

also note that if someone sends u a tx u wont see it till 1 confirm anyway as the block u receive that has the tx is considered first confirm

@santins77
Copy link
Author

I'm having the issue when the transaction is sent from some external address to my wallet. When I sent money from my wallet to another address the commands seem to work OK. That is why I mention in incoming transactions.

@iFoggz
Copy link
Member

iFoggz commented Jun 8, 2018

so your sending from a wallet to another wallet then? or are you sending between two addresses within same wallet?

@iFoggz
Copy link
Member

iFoggz commented Jun 8, 2018

any txs received from the network from two different wallets wont show till 1 confirm as it sits in the memory pool until a staked block carries the transaction

@santins77
Copy link
Author

Do you have in mind to change that behavior? In bitcoin, lite, and others the show this transactions in those cases

@iFoggz
Copy link
Member

iFoggz commented Jun 8, 2018

that would likely occur when we do a rebase to add the functionality of showing transactions sitting in the memory pool.

@iFoggz
Copy link
Member

iFoggz commented Jun 8, 2018

we will be re-basing to update the long overdue code in the files

@santins77
Copy link
Author

santins77 commented Jun 8, 2018

OK. Nice! Thanks for the info

@iFoggz
Copy link
Member

iFoggz commented Jun 8, 2018

getrawmempool rpc command will display all txs in the memory pool waiting to be staked in a block. you can still gettransaction a tx if it is in the memorypool

@denravonska denravonska added this to the Elizabeth milestone Apr 17, 2019
@jamescowens jamescowens modified the milestones: Elizabeth, Fern Jul 6, 2019
@jamescowens jamescowens modified the milestones: Fern, Gladys Aug 3, 2019
@jamescowens jamescowens modified the milestones: Gladys, Hilda Oct 27, 2020
@jamescowens jamescowens modified the milestones: Hilda, Ingrid Feb 25, 2021
@jamescowens jamescowens modified the milestones: Ingrid, Janice Jun 15, 2021
@jamescowens jamescowens modified the milestones: Janice, Kermit's Mom Dec 5, 2021
@iFoggz
Copy link
Member

iFoggz commented Jun 1, 2022

this behavior still present?

@iFoggz
Copy link
Member

iFoggz commented Jun 1, 2022

So I don't know if I consider this an overall problem still:

listtransactions:
If sent to myself: will show with 0 confirmations
if received from someone else: will show after 1 confirmation
immature stakes will show immediately as its technically confirmed 1 time unless the network disagrees and a reorg occurs at a later time in which they shouldn't be showing anymore as they are -1 conflicted and they are ignored.

I don't agree with a unconfirmed transaction showing up unless at least 1 confirm but that my opinion. It is in the memory pool awaiting to be accepted into the network.

listsinceblock:
this is block based so if a transaction is not in a block then I see no reason for the wallet to show it.

It is just my opinion that a transaction with 0 confirms should not show in listtransaction nor GUI as well. I make no plan(s) to touch this issue myself. I think it would be more confusing for the non technical user to see a transaction appear and only to disappear after the next block because it was rejected by the network for any number of reasons.

If no one else agrees they could take this one on.

@joewinkler
Copy link

joewinkler commented Jun 1, 2022

I think it is more confusing, a transaction you've sent by yourself not being in the transaction list. You may be confused, whether you really did this transaction. If it is clearly visible there are no confirmations yet, I cannot see any problem in showing transactions without confirmation.

@iFoggz
Copy link
Member

iFoggz commented Jun 2, 2022

a transaction being sent by yourself to yourself will show as well as a transaction you sent will show as well.

What i was saying is I don't think it should show a incoming transaction to you from someone else that hasnt had atleast 1 confirm.

The original poster wanted to see 0 confirm incoming transactions from other people to him.

@jamescowens
Copy link
Member

jamescowens commented Jun 2, 2022 via email

@iFoggz
Copy link
Member

iFoggz commented Jun 2, 2022

I agree, any input from @cyrossignol and @div72 on this?

@div72
Copy link
Member

div72 commented Jun 2, 2022

I disagree.

Imagine a situation where I am a vendor and you are a long time customer buying a low value item at a market. I would rather not wait ~96 seconds before the tx gets in to a block and just accept the payment when it hits my mempool since I trust you and there is low risk and low loss.

Irregardless of what I think though, we should follow upstream in order to maintain compatibility with scripts designed for it.

@jamescowens
Copy link
Member

@div72 has a good point.

@iFoggz
Copy link
Member

iFoggz commented Jun 2, 2022

@div72 I do agree to that point however we still not there so this will likely be pushed off repeatedly since all the files are changed as well as locations of things upstream.

@div72
Copy link
Member

div72 commented Jun 2, 2022

@iFoggz Alright, let's do the RPC port then. I'll start that tomorrow.

@jamescowens
Copy link
Member

We need to be super careful during the port that we do not unwittingly break Gridcoin specific stuff. The port is going to be irritating I think... :)

@iFoggz
Copy link
Member

iFoggz commented Jun 2, 2022

it wouldnt just be rpc part to be ported but all the src/wallet/rpc src/wallet parts. they broke stuff up and moved alot around

to me this isnt an issue but rather a goal apart of the portign of all the bitcoin code is more what i was getting at.

@jamescowens jamescowens modified the milestones: Kermit's Mom, LaVerne Jul 17, 2022
@jamescowens jamescowens modified the milestones: LaVerne, Miss Piggy Feb 2, 2023
@jamescowens jamescowens modified the milestones: Miss Piggy, Natasha Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants