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

Address view is missing transactions when in postgresql mode #404

Closed
raedah opened this issue Mar 22, 2018 · 6 comments
Closed

Address view is missing transactions when in postgresql mode #404

raedah opened this issue Mar 22, 2018 · 6 comments

Comments

@raedah
Copy link

raedah commented Mar 22, 2018

Lite mode shows a different RECEIVED amount. Lite mode appears to be correct.

@chappjc
Copy link
Member

chappjc commented Mar 22, 2018

Can you identify what transactions are missing?

@raedah
Copy link
Author

raedah commented Mar 29, 2018

See ad7072fcf50ad2d455903a281f6ed4f280f186a624b3285e57de276be7703ac3 , one of the outputs says spent true, but does not have the link available.

@chappjc
Copy link
Member

chappjc commented Mar 29, 2018

at least for ad7072fcf50ad2d455903a281f6ed4f280f186a624b3285e57de276be7703ac3 (and the unlinked spending txn fa377e53ef7447484c608054e8cb61fe7e4699474e22f4b8aa3e8cb097c9ca80), the cause is a PSQL not correctly adding all connected blocks from the new main chain. The others like sqlite, stakedb, and blockdata have reorg handlers that work, since they must. dcrpg needs one too.

@chappjc
Copy link
Member

chappjc commented Mar 29, 2018

BTW, I love that this is issue #404

@raedah
Copy link
Author

raedah commented Apr 4, 2018

A simple way to implement this would be to verify the previous x blocks when adding a new block, and replace as necessary. x should only need to be 1 since that is the largest fork that occurs.

@chappjc
Copy link
Member

chappjc commented Aug 27, 2018

Resolved on the address page by #489, and in the dcrpg backend driver by #580

@chappjc chappjc closed this as completed Aug 27, 2018
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