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

on rescans, getting wrong time for new found txs #268

Closed
c-e-d-git opened this issue Aug 27, 2018 · 6 comments
Closed

on rescans, getting wrong time for new found txs #268

c-e-d-git opened this issue Aug 27, 2018 · 6 comments

Comments

@c-e-d-git
Copy link

When the wallet scans for missing txs, new found txs are set to the actual time in the wallet transaction list instead of the time of the block they are included in.
Even with the variances in timestamps of blocks it would be better than actual time of search.
Something like min (blocktime, actual time) to prevent timestamps into the future.

@Keyare
Copy link

Keyare commented Aug 27, 2018 via email

@c-e-d-git
Copy link
Author

Sorry, it's core code. 99% sure inherited from btc code.
Not especially tested in BMD

@c-e-d-git
Copy link
Author

Now tested in BMD 3.1.3:
It takes the time of the last know tx before the scan/reindex for every missing tx found.
Even more confusing than actual time of the scan.
Like said above, blocktime of tx is far better.

@Keyare
Copy link

Keyare commented Sep 14, 2018 via email

@c-e-d-git
Copy link
Author

Shouldn't be a big deal to grab the time when scanning the blocks for transactions.
i.e.
getblockhash 185000
a38ce7a0ff353b0377f0d07ddd8f91be3c6bf62c020b0e4f56ba8f313897b265

getblock a38ce7a0ff353b0377f0d07ddd8f91be3c6bf62c020b0e4f56ba8f313897b265
{
"hash": "a38ce7a0ff353b0377f0d07ddd8f91be3c6bf62c020b0e4f56ba8f313897b265",
"confirmations": 2791,
"size": 2931,
"height": 185000,
...
"time": 1536784391,
"mediantime": 1536784139,
"nonce": 0,
"bits": "1808ab60",
"difficulty": 126824300419.4244,
...
}
time or mediantime, not a big difference and close enough

@Keyare
Copy link

Keyare commented Jun 15, 2019

Closed. Deprecated version.

@Keyare Keyare closed this as completed Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants