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

Add functionality for Wallet to monitor the current chain tip and sync status from its base nodes #1806

Closed
philipr-za opened this issue May 4, 2020 · 1 comment

Comments

@philipr-za
Copy link
Contributor

philipr-za commented May 4, 2020

Currently the wallet has no knowledge of the current chain tip in the network. It would be useful to have this information for the following reasons:

  • Knowing which outputs have matured or when they will mature for inclusion in transactions
  • Being able to label a transaction output with a maturity to indicate its age.
  • Being able to know if a base node has synced before checking with it if our outputs are spendable.

In order to monitor the current chain tip the Wallet will need to enquire the current chain status from its base node. This is done in the Liveness service currently and should be made available to the Wallet.

Effort must be made to determine of the Base Node is currently synced with the rest of the network which might involve requesting this info from multiple BNs using the functionality from #1805

@philipr-za
Copy link
Contributor Author

#2194 provides the sync status.

It will still be useful to add a Base Node monitoring service to the wallet that maintains knowledge of the current chain tip.

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