add pendingDownload to return of API clientStatus
This commit is contained in:
parent
cb0710e454
commit
601158f6fb
|
@ -1419,9 +1419,9 @@ class BMRPCDispatcher(object):
|
||||||
"""
|
"""
|
||||||
Returns the bitmessage status as dict with keys *networkConnections*,
|
Returns the bitmessage status as dict with keys *networkConnections*,
|
||||||
*numberOfMessagesProcessed*, *numberOfBroadcastsProcessed*,
|
*numberOfMessagesProcessed*, *numberOfBroadcastsProcessed*,
|
||||||
*numberOfPubkeysProcessed*, *networkStatus*,
|
*numberOfPubkeysProcessed*, *pendingDownload*, *networkStatus*,
|
||||||
*softwareName*, *softwareVersion*. *networkStatus* will be one
|
*softwareName*, *softwareVersion*. *networkStatus* will be one of
|
||||||
of these strings: "notConnected",
|
these strings: "notConnected",
|
||||||
"connectedButHaveNotReceivedIncomingConnections",
|
"connectedButHaveNotReceivedIncomingConnections",
|
||||||
or "connectedAndReceivingIncomingConnections".
|
or "connectedAndReceivingIncomingConnections".
|
||||||
"""
|
"""
|
||||||
|
@ -1438,6 +1438,7 @@ class BMRPCDispatcher(object):
|
||||||
'numberOfMessagesProcessed': state.numberOfMessagesProcessed,
|
'numberOfMessagesProcessed': state.numberOfMessagesProcessed,
|
||||||
'numberOfBroadcastsProcessed': state.numberOfBroadcastsProcessed,
|
'numberOfBroadcastsProcessed': state.numberOfBroadcastsProcessed,
|
||||||
'numberOfPubkeysProcessed': state.numberOfPubkeysProcessed,
|
'numberOfPubkeysProcessed': state.numberOfPubkeysProcessed,
|
||||||
|
'pendingDownload': network.stats.pendingDownload(),
|
||||||
'networkStatus': networkStatus,
|
'networkStatus': networkStatus,
|
||||||
'softwareName': 'PyBitmessage',
|
'softwareName': 'PyBitmessage',
|
||||||
'softwareVersion': softwareVersion
|
'softwareVersion': softwareVersion
|
||||||
|
|
Reference in New Issue
Block a user