pshenmic / electrum-dash

Electrum-DASH - a Dash thin client
https://dash-electrum.org
MIT License
10 stars 6 forks source link

Crash on start after setting custom mixing settings #19

Open pshenmic opened 5 months ago

pshenmic commented 5 months ago

Issue

In the PrivateSend dialogue, there is a tab where you can set different denomination settings, but when you save that, application crashes instantly and is not able to recover after reopen, it begins crashing on the start. The reason is that it incorrectly saves the parameter in the store, invalid type casting.

Details

OS: Windows-10-10.0.22631-SP0 Locale: en_US Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] App version: 4.1.7.4 Wallet type: standard Description: Error mixing

Traceback: Traceback (most recent call last):
  File "electrum_dash\gui\qt\main_window.py", line 135, in onPress
  File "electrum_dash\gui\qt\main_window.py", line 2691, in <lambda>
  File "electrum_dash\gui\qt\privatesend_dialog.py", line 156, in show_ps_dialog_or_wizard
  File "electrum_dash\gui\qt\privatesend_dialog.py", line 143, in show_ps_dialog
  File "electrum_dash\gui\qt\privatesend_dialog.py", line 287, in init
  File "electrum_dash\gui\qt\privatesend_dialog.py", line 404, in add_mixing_tab
TypeError: setValue(self, val: int): argument 1 has unexpected type 'float'

Exception string: setValue(self, val: int): argument 1 has unexpected type 'float'
Exception file: electrum_dash\gui\qt\privatesend_dialog.py
Exception name: add_mixing_tab
Exception type: TypeError
image image

How to reproduce

Open PrivateSend window, click denoms, and set custom denominations for the mixing session