Skip to content
New issue

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

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

Already on GitHub? # to your account

Add observer stats for confirmations #2100

Merged

Conversation

cryptocode
Copy link
Contributor

The observer stats facilitate debugging callbacks and websockets. The subtotal for stats "observer/confirmation*" should match the stat "confirmation/blocks_confirmed" if everything works as expected (notification is async so numbers may be slightly out of sync for short periods of time)

If a websocket client has a different count, it indicates a bug in websockets, the external client, or the configuration/subscription (though beware intermittent network issues may cause lost messages as WS doesn't guarantee delivery; a queue system like mqtt is needed for that)

@cryptocode cryptocode added this to the V19.0 milestone Jun 20, 2019
@cryptocode cryptocode requested a review from wezrule June 20, 2019 12:10
@cryptocode cryptocode self-assigned this Jun 20, 2019
@cryptocode cryptocode added the incomplete This item is incomplete and should not be merged if it is a pull request label Jun 21, 2019
@wezrule wezrule removed the incomplete This item is incomplete and should not be merged if it is a pull request label Jun 23, 2019
@cryptocode cryptocode merged commit 7b957a8 into nanocurrency:master Jun 23, 2019
@cryptocode cryptocode deleted the stats/observer_confirmations branch June 23, 2019 16:23
argakiig pushed a commit that referenced this pull request Jun 27, 2019
* Add observer stats for confirmations

* Test that observer stats are updated
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants