Skip to content

Commit

Permalink
Namecoin: Use compact encoding for JSON in DNS dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Dec 12, 2019
1 parent 53f285d commit 281d0b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electrum_nmc/electrum/gui/qt/configure_dns_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ def get_value(self):
if value == {}:
return b""
else:
return json.dumps(value).encode("ascii")
# Use compact encoding for JSON
return json.dumps(value, separators=(',', ':')).encode("ascii")

def update_headers(self, headers: Union[List[str], Dict[int, str]]):
# headers is either a list of column names, or a dict: (col_idx->col_name)
Expand Down

0 comments on commit 281d0b7

Please sign in to comment.