bisq icon indicating copy to clipboard operation
bisq copied to clipboard

Add API call to get DAO status

Open jmacxx opened this issue 1 year ago • 4 comments

Expose DaoFacade.isDaoStateReadyAndInSync status to API clients.


getdaostatus

NAME
----
getdaostatus - get DAO status

SYNOPSIS
--------
getdaostatus

DESCRIPTION
-----------
Returns the operating status of the Bisq DAO:
true - DAO is ready and in sync
false - DAO is not ready

At startup the status will return false until the DAO has completed synchronizing.
Trading operations should not be performed when the status is false.
While running, the status can be used to determine if DAO is in sync with the seed nodes.

EXAMPLES
--------
$ ./bisq-cli --password=xyz --port=9998 getdaostatus

jmacxx avatar Jan 26 '24 16:01 jmacxx

Just wanted to point out, there seams to be no call rate metering.

dutu avatar Jan 29 '24 22:01 dutu

I have applied the changes on top of v1.9.14 and currently using the new gRPC method. Everything working well!!

dutu avatar Jan 31 '24 09:01 dutu

Should rate metering be included as well? https://github.com/bisq-network/bisq/blob/8dda8b2464a053e2007b4f1266e36ce9113d5da9/daemon/src/main/java/bisq/daemon/grpc/GrpcWalletsService.java#L401-L426

dutu avatar Feb 09 '24 09:02 dutu

--help text change and rate metering added.

ghost avatar Feb 09 '24 19:02 ghost