-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Use block time for wallet transactions found in rescan #1159
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
Conversation
During normal 24/7 operation, the first-seen time is still used, right? |
the behaviour with this patch would be: transactions first seen in a "tx" message or self-generated get clock time, transactions first seen in a block or found by rescanning: block time. |
It's problematic if transactions can be "timed" older than the most recent wallet transaction, or in the future. Doing so would make "listtransactions" out of order (or worse, reordered). |
In general I prefer this behavior to the current one... though txn appearing 'out of order' in the transaction history is unfortunate. ... but traditional banking sites do that all the time and people seem to survive. |
I'd mind less if they actually appeared out of order, but I'm pretty sure they're sorted by time, so they'll reorder. :/ I care less, if listtransactions shows all 3 times (seen, block, and "best guess") and sorts by seen time... |
I think it's fine for the JSON call to show all the different times, as people may need them for different purposes. On the other hand, @sipa's change is great for the GUI. |
Why not do it this way, without changing function args list:
|
Can we get some more discussion here? Agreement on this would be nice. |
We discussed this a bit back in December. I think having all 3 times (received, block, and "smart") in JSON-RPC and just the smart times in Bitcoin-Qt is the best solution.
|
Thats sounds good to me— perhaps a later commit can make a tooltip show the three times in the gui? I assume that recievetime would be a sent time for txn you sent (being that you received them the same instant)? |
Yes, the smart time would also logically be the sent time as well. |
Right, we can put all the times in the "transaction details" window. |
I'm officially -ENOCARE. Code appears correct to my minimal scan. @gavinandresen ? @gmaxwell based on your comments, it sounds like you ACK this code? |
ACK. Looks obviously better than the current behavior. |
This is NACK since it breaks listtransactions. #1393 |
I'm very unsure myself whether I want this merged. Luke's version is more complex but probably behaves as expected in more use cases. I'm not sure either should be merged without some testing... |
(Obsoleted by Luke's version.) |
test_bitcoin_fuzzy: Further updates
…llet is unlocked for staking only 9253412 [GUI][Trivial] Rewording of Error message while trying to send with the transaction with wallet unlocked for staking only (NoobieDev12) Pull request description: Not sure if this is good or it needs to be: > Error: The wallet is unlocked for anonymization and staking only.**\n**Unlock the wallet to send the transaction.  ACKs for top commit: random-zebra: Text updated. ACK 9253412 furszy: utACK 9253412 Tree-SHA512: 32862256a34fd644aaa987296d2a190c288697481b2063b67cad93104bc5baf3712aad42fb7c418c38db4f7e1c96add61863eab0871a21f9250fe99fdee15ff7
…est framework 3e22efd [tests] Convert bash test scripts to functional test framework (Peter Bushnell) da477a6 [rpc] Correction to help info (Peter Bushnell) Pull request description: There are several bash scripts that cover functionality that is not covered by CI. These tests are ported here to the Python functional test framework and will now be run by CI. Minor correction was made to an RPC calls help info as this came up during porting. Tree-SHA512: d947a59aeec9ee50a1af3cff82b1d5de8bbebbae160565f31e2dbdfad300edda9726bbbaf23a53d4d9c9e75de5f6829d8860ff2b845f6fee6931908fba302b80
Instead of rescan time.