Skip to content

Commit

Permalink
history: show value in XEC units
Browse files Browse the repository at this point in the history
There was still a hardcoded `decimal_point=8` in the code. This caused the `history` command line to show values in MegaXEC instead of XEC.
  • Loading branch information
PiRK committed Jun 20, 2022
1 parent f628c95 commit 5ba8478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electroncash/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from enum import Enum, auto
from typing import ItemsView, List, Optional, Set, Tuple, Union, ValuesView

from .constants import DUST_THRESHOLD
from .constants import DUST_THRESHOLD, XEC
from .i18n import ngettext
from .util import (NotEnoughFunds, ExcessiveFee, PrintError,
UserCancelled, InvalidPassword, multisig_type, profiler,
Expand Down Expand Up @@ -1503,7 +1503,7 @@ def sort_func_receives_before_sends(h_item):
return h2

def export_history(self, domain=None, from_timestamp=None, to_timestamp=None, fx=None,
show_addresses=False, decimal_point=8,
show_addresses=False, decimal_point: int = XEC.decimals,
*, fee_calc_timeout=10.0, download_inputs=False,
progress_callback=None):
''' Export history. Used by RPC & GUI.
Expand Down

0 comments on commit 5ba8478

Please sign in to comment.