From 601158f6fb7cedcb1af5719ede84bfeb9f1d1276 Mon Sep 17 00:00:00 2001 From: 813492291816 Date: Sun, 15 Nov 2020 22:37:22 +0000 Subject: [PATCH] add pendingDownload to return of API clientStatus --- src/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api.py b/src/api.py index 641ce16e..cde454c8 100644 --- a/src/api.py +++ b/src/api.py @@ -1419,9 +1419,9 @@ class BMRPCDispatcher(object): """ Returns the bitmessage status as dict with keys *networkConnections*, *numberOfMessagesProcessed*, *numberOfBroadcastsProcessed*, - *numberOfPubkeysProcessed*, *networkStatus*, - *softwareName*, *softwareVersion*. *networkStatus* will be one - of these strings: "notConnected", + *numberOfPubkeysProcessed*, *pendingDownload*, *networkStatus*, + *softwareName*, *softwareVersion*. *networkStatus* will be one of + these strings: "notConnected", "connectedButHaveNotReceivedIncomingConnections", or "connectedAndReceivingIncomingConnections". """ @@ -1438,6 +1438,7 @@ class BMRPCDispatcher(object): 'numberOfMessagesProcessed': state.numberOfMessagesProcessed, 'numberOfBroadcastsProcessed': state.numberOfBroadcastsProcessed, 'numberOfPubkeysProcessed': state.numberOfPubkeysProcessed, + 'pendingDownload': network.stats.pendingDownload(), 'networkStatus': networkStatus, 'softwareName': 'PyBitmessage', 'softwareVersion': softwareVersion