-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat(dashmate): Add contract and block height data to dashmate status
output
#540
Comments
Remote block height is currently broken in v24, because insight is answering too slow, shall we create another task for fallin back to getchaintips? |
Why it works in v0.23 then? |
In v23 there is no client timeout implemented and it simply waits for the response and it can take ages to receive the answer (that is why status command is slow in v23). If the request dropped by timeout with server, the command will throw an error |
I'm not sure |
|
@strophy According to what you saying the fallback will confuse people because you don't know is it a view from outside or just vision of an isolated node. |
In the event of a chain fork, everyone will be trying to figure out if they are on an isolated network or if the insight/fallback data is incorrect because the remote source ended up on a chain fork. I think the best option here in the status command is to provide multiple clearly labeled block heights to help people diagnose errors quickly, and highlight our height in green if matches insight. |
Sounds good to me! |
Expected Behavior
Dashmate
status
command have info about block height dataCurrent Behavior
It does not show block height data
Possible Solution
Add block height data to the status command. Additionally, the fallback strategy for obtaining best block height should be implemented.
Call to the external blockchain explorer is used in dashmate status for obtaining the correct chain for best block height and its used as truth of source. This call can fail, server may be down, or other reasons, and this leads to the command fail as well. Add fallback to the getchaintips dashcore RPC method and mark the information as the local by coloring it in yellow.
The text was updated successfully, but these errors were encountered: