Skip to content

Commit 39491ef

Browse files
committed
Changes to upstream merge
1 parent f291242 commit 39491ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+282
-759
lines changed

AUTHORS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ Genjix - Porting pro-mode functionality to lite-gui and worked on server
99
Slush - Work on the server. Designed the original Stratum spec.
1010
Julian Toash (Tuxavant) - Various fixes to the client.
1111
rdymac - Website and translations.
12-
kyuupichan - Miscellaneous.
12+
kyuupichan - Miscellaneous.
13+
BitcoinGold Developers - Forked BTG Version

Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<array>
77
<dict>
88
<key>CFBundleURLName</key>
9-
<string>bitcoin</string>
9+
<string>bitcoingold</string>
1010
<key>CFBundleURLSchemes</key>
1111
<array>
12-
<string>bitcoin</string>
12+
<string>bitcoingold</string>
1313
</array>
1414
</dict>
1515
</array>

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include LICENCE RELEASE-NOTES AUTHORS
22
include README.rst
3-
include electrum.conf.sample
4-
include electrum.desktop
3+
include electrum-gold.conf.sample
4+
include electrum-gold.desktop
55
include *.py
66
include electrum
77
include contrib/requirements/requirements.txt

RELEASE-NOTES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Release 3.2
2+
3+
First release containing changes for BitcoinGold
4+
5+
16

27
# Release 3.1.1 - (March 12, 2018)
38

contrib/build-osx/osx.spec

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ from PyInstaller.utils.hooks import collect_data_files, collect_submodules, coll
55
import sys
66
import os
77

8-
PACKAGE='Electrum'
9-
PYPKG='electrum'
10-
MAIN_SCRIPT='electrum'
11-
ICONS_FILE='electrum.icns'
8+
PACKAGE='Electrum Gold'
9+
PYPKG='electrum-gold'
10+
MAIN_SCRIPT='electrum-gold'
11+
ICONS_FILE='electrum-gold.icns'
1212

1313
for i, x in enumerate(sys.argv):
1414
if x == '--name':
@@ -85,13 +85,13 @@ exe = EXE(pyz,
8585
debug=False,
8686
strip=False,
8787
upx=True,
88-
icon=electrum+ICONS_FILE,
88+
icon=electrum-gold+ICONS_FILE,
8989
console=False)
9090

9191
app = BUNDLE(exe,
9292
version = VERSION,
9393
name=PACKAGE + '.app',
94-
icon=electrum+ICONS_FILE,
94+
icon=electrum-gold+ICONS_FILE,
9595
bundle_identifier=None,
9696
info_plist={
9797
'NSHighResolutionCapable': 'True',

contrib/build-wine/build-electrum-git.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
NAME_ROOT=electrum
3+
NAME_ROOT=electrum-gold
44
PYTHON_VERSION=3.5.4
55

66
# These settings probably don't need any change

contrib/build-wine/deterministic.spec

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ else:
1111
raise BaseException('no name')
1212

1313

14-
home = 'C:\\electrum\\'
14+
home = 'C:\\electrum-gold\\'
1515

1616
# see https://github.com/pyinstaller/pyinstaller/issues/2005
1717
hiddenimports = []
@@ -31,7 +31,7 @@ datas = [
3131
(home+'lib/servers.json', 'electrum'),
3232
(home+'lib/checkpoints.json', 'electrum'),
3333
(home+'lib/servers_testnet.json', 'electrum'),
34-
(home+'lib/checkpoints_testnet.json', 'electrum'),
34+
(home+'lib/servers_regtest.json', 'electrum'),
3535
(home+'lib/wordlist/english.txt', 'electrum/wordlist'),
3636
(home+'lib/locale', 'electrum/locale'),
3737
(home+'plugins', 'electrum_plugins'),
@@ -86,11 +86,11 @@ exe_standalone = EXE(
8686
a.scripts,
8787
a.binaries,
8888
a.datas,
89-
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name + ".exe"),
89+
name=os.path.join('build\\pyi.win32\\electrum-gold', cmdline_name + ".exe"),
9090
debug=False,
9191
strip=None,
9292
upx=False,
93-
icon=home+'icons/electrum.ico',
93+
icon=home+'icons/electrum-gold.ico',
9494
console=False)
9595
# console=True makes an annoying black box pop up, but it does make Electrum output command line commands, with this turned off no output will be given but commands can still be used
9696

@@ -99,11 +99,11 @@ exe_portable = EXE(
9999
a.scripts,
100100
a.binaries,
101101
a.datas + [ ('is_portable', 'README.md', 'DATA' ) ],
102-
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name + "-portable.exe"),
102+
name=os.path.join('build\\pyi.win32\\electrum-gold', cmdline_name + "-portable.exe"),
103103
debug=False,
104104
strip=None,
105105
upx=False,
106-
icon=home+'icons/electrum.ico',
106+
icon=home+'icons/electrum-gold.ico',
107107
console=False)
108108

109109
#####
@@ -113,11 +113,11 @@ exe_dependent = EXE(
113113
pyz,
114114
a.scripts,
115115
exclude_binaries=True,
116-
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name),
116+
name=os.path.join('build\\pyi.win32\\electrum-gold', cmdline_name),
117117
debug=False,
118118
strip=None,
119119
upx=False,
120-
icon=home+'icons/electrum.ico',
120+
icon=home+'icons/electrum-gold.ico',
121121
console=False)
122122

123123
coll = COLLECT(
@@ -128,6 +128,6 @@ coll = COLLECT(
128128
strip=None,
129129
upx=True,
130130
debug=False,
131-
icon=home+'icons/electrum.ico',
131+
icon=home+'icons/electrum-gold.ico',
132132
console=False,
133-
name=os.path.join('dist', 'electrum'))
133+
name=os.path.join('dist', 'electrum-gold'))

contrib/build-wine/electrum.nsi

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
;--------------------------------
77
;Variables
88

9-
!define PRODUCT_NAME "Electrum"
10-
!define PRODUCT_WEB_SITE "https://github.com/spesmilo/electrum"
11-
!define PRODUCT_PUBLISHER "Electrum Technologies GmbH"
9+
!define PRODUCT_NAME "Electrum Gold"
10+
!define PRODUCT_WEB_SITE "https://github.com/BTCGPU/electrum"
11+
!define PRODUCT_PUBLISHER "BitcoinGold Organization"
1212
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
1313

1414
;--------------------------------
1515
;General
1616

1717
;Name and file
1818
Name "${PRODUCT_NAME}"
19-
OutFile "dist/electrum-setup.exe"
20-
19+
OutFile "dist/electrum-gold-setup.exe"
20+
gold
2121
;Default installation folder
2222
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
2323

@@ -58,7 +58,7 @@
5858
VIAddVersionKey ProductName "${PRODUCT_NAME} Installer"
5959
VIAddVersionKey Comments "The installer for ${PRODUCT_NAME}"
6060
VIAddVersionKey CompanyName "${PRODUCT_NAME}"
61-
VIAddVersionKey LegalCopyright "2013-2016 ${PRODUCT_PUBLISHER}"
61+
VIAddVersionKey LegalCopyright "2013-2018 ${PRODUCT_PUBLISHER}"
6262
VIAddVersionKey FileDescription "${PRODUCT_NAME} Installer"
6363
VIAddVersionKey FileVersion ${PRODUCT_VERSION}
6464
VIAddVersionKey ProductVersion ${PRODUCT_VERSION}
@@ -72,7 +72,7 @@
7272
!define MUI_ABORTWARNING
7373
!define MUI_ABORTWARNING_TEXT "Are you sure you wish to abort the installation of ${PRODUCT_NAME}?"
7474

75-
!define MUI_ICON "tmp\electrum\icons\electrum.ico"
75+
!define MUI_ICON "tmp\electrum-gold\icons\electrum-gold.ico"
7676

7777
;--------------------------------
7878
;Pages
@@ -110,8 +110,8 @@ Section
110110
Delete "$SMPROGRAMS\${PRODUCT_NAME}\*.*"
111111

112112
;Files to pack into the installer
113-
File /r "dist\electrum\*.*"
114-
File "..\..\icons\electrum.ico"
113+
File /r "dist\electrum-gold\*.*"
114+
File "..\..\icons\electrum-gold.ico"
115115

116116
;Store installation folder
117117
WriteRegStr HKCU "Software\${PRODUCT_NAME}" "" $INSTDIR
@@ -122,29 +122,29 @@ Section
122122

123123
;Create desktop shortcut
124124
DetailPrint "Creating desktop shortcut..."
125-
CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\electrum-${PRODUCT_VERSION}.exe" ""
125+
CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" ""
126126

127127
;Create start-menu items
128128
DetailPrint "Creating start-menu items..."
129129
CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}"
130130
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
131-
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\electrum-${PRODUCT_VERSION}.exe" "" "$INSTDIR\electrum-${PRODUCT_VERSION}.exe" 0
132-
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME} Testnet.lnk" "$INSTDIR\electrum-${PRODUCT_VERSION}.exe" "--testnet" "$INSTDIR\electrum-${PRODUCT_VERSION}.exe" 0
131+
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" "" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" 0
132+
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME} Testnet.lnk" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" "--testnet" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" 0
133133

134134

135-
;Links bitcoin: URI's to Electrum
136-
WriteRegStr HKCU "Software\Classes\bitcoin" "" "URL:bitcoin Protocol"
137-
WriteRegStr HKCU "Software\Classes\bitcoin" "URL Protocol" ""
138-
WriteRegStr HKCU "Software\Classes\bitcoin" "DefaultIcon" "$\"$INSTDIR\electrum.ico, 0$\""
139-
WriteRegStr HKCU "Software\Classes\bitcoin\shell\open\command" "" "$\"$INSTDIR\electrum-${PRODUCT_VERSION}.exe$\" $\"%1$\""
135+
;Links bitcoingold: URI's to ElectrumGold
136+
WriteRegStr HKCU "Software\Classes\bitcoingold" "" "URL:bitcoingold Protocol"
137+
WriteRegStr HKCU "Software\Classes\bitcoingold" "URL Protocol" ""
138+
WriteRegStr HKCU "Software\Classes\bitcoingold" "DefaultIcon" "$\"$INSTDIR\electrum-gold.ico, 0$\""
139+
WriteRegStr HKCU "Software\Classes\bitcoingold\shell\open\command" "" "$\"$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe$\" $\"%1$\""
140140

141141
;Adds an uninstaller possibilty to Windows Uninstall or change a program section
142142
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
143143
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe"
144144
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
145145
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
146146
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
147-
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\electrum.ico"
147+
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\electrum-gold.ico"
148148

149149
;Fixes Windows broken size estimates
150150
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
@@ -167,7 +167,7 @@ Section "Uninstall"
167167
Delete "$SMPROGRAMS\${PRODUCT_NAME}\*.*"
168168
RMDir "$SMPROGRAMS\${PRODUCT_NAME}"
169169

170-
DeleteRegKey HKCU "Software\Classes\bitcoin"
170+
DeleteRegKey HKCU "Software\Classes\bitcoingold"
171171
DeleteRegKey HKCU "Software\${PRODUCT_NAME}"
172172
DeleteRegKey HKCU "${PRODUCT_UNINST_KEY}"
173173
SectionEnd

contrib/deterministic-build/requirements-hw.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
btchip-python==0.1.24
1+
btchip-python==0.1.26
22
certifi==2018.1.18
33
chardet==3.0.4
44
click==6.7
5-
Cython==0.27.3
5+
Cython==0.28
66
ecdsa==0.13
77
hidapi==0.7.99.post21
88
idna==2.6
99
keepkey==4.0.2
1010
libusb1==1.6.4
1111
mnemonic==0.18
1212
pbkdf2==1.3
13-
protobuf==3.5.1
13+
protobuf==3.5.2
1414
pyblake2==1.1.0
1515
requests==2.18.4
1616
rlp==0.6.0

contrib/deterministic-build/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ecdsa==0.13
55
idna==2.6
66
jsonrpclib-pelix==0.3.1
77
pbkdf2==1.3
8-
protobuf==3.5.1
8+
protobuf==3.5.2
99
pyaes==1.6.1
1010
pyblake2==1.1.0
1111
PySocks==1.6.8

contrib/requirements/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pyaes>=0.1a1
22
ecdsa>=0.9
33
pbkdf2
4+
pyblake2
45
requests
56
qrcode
67
protobuf

electrum renamed to electrum-gold

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env python3
22
# -*- mode: python -*-
33
#
4-
# Electrum - lightweight Bitcoin client
4+
# ElectrumGold - lightweight BitcoinGold client
55
# Copyright (C) 2011 thomasv@gitorious
6+
# Copyright (C) 2018 [email protected]
67
#
78
# Permission is hereby granted, free of charge, to any person
89
# obtaining a copy of this software and associated documentation files
@@ -43,7 +44,7 @@ if jnius:
4344

4445
script_dir = os.path.dirname(os.path.realpath(__file__))
4546
is_bundle = getattr(sys, 'frozen', False)
46-
is_local = not is_bundle and os.path.exists(os.path.join(script_dir, "electrum.desktop"))
47+
is_local = not is_bundle and os.path.exists(os.path.join(script_dir, "electrum-gold.desktop"))
4748
is_android = 'ANDROID_DATA' in os.environ
4849

4950
# move this back to gui/kivy/__init.py once plugins are moved
@@ -193,7 +194,7 @@ def init_daemon(config_options):
193194
storage = WalletStorage(config.get_wallet_path())
194195
if not storage.file_exists():
195196
print_msg("Error: Wallet file not found.")
196-
print_msg("Type 'electrum create' to create a new wallet, or provide a path to a wallet with the -w option")
197+
print_msg("Type 'electrum-gold create' to create a new wallet, or provide a path to a wallet with the -w option")
197198
sys.exit(0)
198199
if storage.is_encrypted():
199200
if storage.is_encrypted_with_hw_device():
@@ -231,7 +232,7 @@ def init_cmdline(config_options, server):
231232

232233
if cmd.requires_wallet and not storage.file_exists():
233234
print_msg("Error: Wallet file not found.")
234-
print_msg("Type 'electrum create' to create a new wallet, or provide a path to a wallet with the -w option")
235+
print_msg("Type 'electrum-gold create' to create a new wallet, or provide a path to a wallet with the -w option")
235236
sys.exit(0)
236237

237238
# important warning
@@ -397,15 +398,15 @@ if __name__ == '__main__':
397398
config_options['portable'] = True
398399

399400
if config_options.get('portable'):
400-
config_options['electrum_path'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum_data')
401+
config_options['electrum-gold_path'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum-gold_data')
401402

402403
# kivy sometimes freezes when we write to sys.stderr
403404
set_verbosity(config_options.get('verbose') and config_options.get('gui')!='kivy')
404405

405406
# check uri
406407
uri = config_options.get('url')
407408
if uri:
408-
if not uri.startswith('bitcoin:'):
409+
if not uri.startswith('bitcoingold:'):
409410
print_stderr('unknown command:', uri)
410411
sys.exit(1)
411412
config_options['url'] = uri

electrum-env renamed to electrum-gold-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ fi
2121

2222
export PYTHONPATH="/usr/local/lib/python${PYTHON_VER}/site-packages:$PYTHONPATH"
2323

24-
./electrum "$@"
24+
./electrum-gold "$@"
2525

2626
deactivate

electrum.conf.sample renamed to electrum-gold.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Configuration file for the electrum client
22
# Settings defined here are shared across wallets
33
#
4-
# copy this file to /etc/electrum.conf if you want read-only settings
4+
# copy this file to /etc/electrum-gold.conf if you want read-only settings
55

66
[client]
7-
server = electrum.novit.ro:50001:t
7+
server = electrum-gold.novit.ro:50001:t
88
proxy = None
99
gap_limit = 5
1010
# booleans use python syntax

electrum-gold.desktop

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# If you want electrum to appear in a linux app launcher ("start menu"), install this by doing:
2+
# sudo desktop-file-install electrum-gold.desktop
3+
4+
[Desktop Entry]
5+
Comment=Lightweight BitcoinGold Client
6+
Exec=electrum-gold %u
7+
GenericName[en_US]=BitcoinGold Wallet
8+
GenericName=BitcoinGold Wallet
9+
Icon=electrum-gold
10+
Name[en_US]=Electrum BitcoinGold Wallet
11+
Name=Electrum BitcoinGold Wallet
12+
Categories=Finance;Network;
13+
StartupNotify=false
14+
Terminal=false
15+
Type=Application
16+
MimeType=x-scheme-handler/bitcoingold;
17+
File renamed without changes.

electrum.desktop

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)