Skip to content

Commit d4cca25

Browse files
author
Bertrand256
committed
Removing obsolete code.
1 parent da91e3e commit d4cca25

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/proposals_dlg.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,11 +1606,6 @@ def read_voting_from_network(self, force_reload_all, proposals: List[Proposal]):
16061606
db_oper_duration = 0.0
16071607
db_oper_count = 0
16081608
network_duration = 0.0
1609-
node_info = self.dashd_intf.rpc_call(False, False, 'getnetworkinfo')
1610-
if node_info.get('version', 140000) < 140000:
1611-
getvotes_fun_name = 'getvotes'
1612-
else:
1613-
getvotes_fun_name = 'getcurrentvotes'
16141609

16151610
for row_idx, prop in enumerate(proposals):
16161611
try:
@@ -1620,7 +1615,7 @@ def read_voting_from_network(self, force_reload_all, proposals: List[Proposal]):
16201615
self.display_message('Reading voting data %d of %d' % (row_idx+1, len(proposals)))
16211616
tm_begin = time.time()
16221617
try:
1623-
votes = self.dashd_intf.rpc_call(False, False, 'gobject', getvotes_fun_name,
1618+
votes = self.dashd_intf.rpc_call(False, False, 'gobject', 'getcurrentvotes',
16241619
prop.get_value('hash'))
16251620
except Exception:
16261621
log.exception('Exception occurred while calling getvotes')

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version_str = '0.9.26-hotfix2'
1+
version_str = '0.9.26-hotfix3'

0 commit comments

Comments
 (0)