From 0dd824e0880c935367001b8f6a3ff0b7af0c3d31 Mon Sep 17 00:00:00 2001 From: xdustinface Date: Thu, 1 Oct 2020 11:41:34 +0200 Subject: [PATCH] lib: Remove deprecated mnsync `IsFailed` from is_synced() in dashd.py --- lib/dashd.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/dashd.py b/lib/dashd.py index a64a2014..1eed93cb 100644 --- a/lib/dashd.py +++ b/lib/dashd.py @@ -94,9 +94,7 @@ def is_masternode(self): return not (self.get_current_masternode_vin() is None) def is_synced(self): - mnsync_status = self.rpc_command('mnsync', 'status') - synced = (mnsync_status['IsSynced'] and not mnsync_status['IsFailed']) - return synced + return self.rpc_command('mnsync', 'status')['IsSynced'] def current_block_hash(self): height = self.rpc_command('getblockcount')