SomberNight
a2ed08615c
minor.. move imports out of functions
2018-09-18 18:07:12 +02:00
SomberNight
39db32c3ce
follow-up prev
2018-09-18 17:59:02 +02:00
SomberNight
af63913189
network triggers: rm 'updated'; more fine-grained instead
...
rm 'interfaces'
add 'wallet_updated', add 'network_updated'
2018-09-18 16:49:48 +02:00
SomberNight
fef15f9c02
wallet: minor opt in get_history
2018-09-18 16:41:56 +02:00
SomberNight
825d7c2cbd
interface: subscribe to headers in run_fetch_blocks
...
so that 'monitor_connection' is already running while waiting for first header
2018-09-18 15:40:32 +02:00
ThomasV
3ec0ceba3e
add option to leave daemon running after GUI is closed
2018-09-18 12:05:37 +02:00
SomberNight
67d3d6b5b5
qt: don't update tabs in ElectrumWindow.__init__ directly
2018-09-18 04:19:12 +02:00
SomberNight
01246b0d97
wallet/verifier: when adding into unverified_tx, don't remove from verifier
...
Not needed since aee2d8e120
And was never really working I guess (race..)
Also, during normal initial history sync, it caused the verifier to request
proofs multiple times.
2018-09-18 03:48:14 +02:00
SomberNight
533bd97a05
qt HistoryList.update_item: perf optimisation
2018-09-18 03:19:24 +02:00
SomberNight
c8f82c71c9
wallet: small perf optimisation in add_transaction
2018-09-18 02:14:23 +02:00
SomberNight
11bf084a1f
network triggers: 'verified' notification now includes wallet
...
this is a performance optimisation.
measurements using a large wallet with 11k txns:
syncing XPUB for the first time takes 10 seconds. leaving window open, and
syncing same XPUB again in new window takes 30 seconds. in third window,
it takes ~50 seconds. then ~70s. presumably scaling linearly.
this is due to the history_list.update_item call being CPU-heavy.
now all of them take 10 seconds.
2018-09-18 01:40:34 +02:00
SomberNight
24ec7ce6b8
qt network dialog: maybe fix refresh bug
2018-09-17 22:31:31 +02:00
SomberNight
7221fb3231
interface: further simplifications for fork resolution
2018-09-17 22:30:25 +02:00
SomberNight
b3a2bce213
interface: simplify fork resolution logic
2018-09-17 22:30:21 +02:00
SomberNight
435efb47d0
wallet: lock in get_addr_io, get_tx_delta, get_tx_value
...
probably fixes #4716
2018-09-17 18:50:47 +02:00
SomberNight
1b95cced5d
verifier: perf optimisations
...
blockchain.read_header is expensive. do cheap tests first
on a wallet with 11k txns, that is synced except for spv proofs,
finishing sync now takes 80 sec instead of 180 sec
2018-09-17 18:31:25 +02:00
SomberNight
e5e3ac0364
fix #4720
2018-09-17 14:44:01 +02:00
SomberNight
aee2d8e120
verifier: fix a race during reorgs
...
related: 41e088693d
If our guess of a txn getting confirmed at the same height in the new chain
as it was at in the old chain is incorrect, there is a race between the
verifier and the synchronizer. If the verifier wins, the exception will cause
us to disconnect.
2018-09-17 03:35:25 +02:00
SomberNight
dcab22dcc7
verifier: small clean-up
2018-09-16 22:21:49 +02:00
SomberNight
78488ebcbf
aiosafe safety belts
...
traceback.print_exc was raising, and self.exception did not got set,
and the whole trace was lost. arghhhh
2018-09-16 22:17:20 +02:00
SomberNight
4360a785ad
blockchain: blockchains_lock needed to write/iterate global dict
2018-09-16 18:26:40 +02:00
SomberNight
7dc5665ab1
interface: faster bootstrap of backwards search
2018-09-16 18:18:49 +02:00
SomberNight
4d502eb2bf
qt tx notifications: wait until sync finishes
...
Comment is no longer relevant. Also, actually it was incorrect.
Each txn is only downloaded once, though 'added' multiple times to the wallet.
The triggers are only sent out by the Synchronizer, once, when downloaded.
The actual reason for the inconsistency was that get_wallet_delta can only
give complete results once the wallet is synced.
2018-09-16 09:40:07 +02:00
SomberNight
9c919e6478
interface: fix off-by-one in request_chunk
...
was harmless; usually we just downloaded an extra individual header after the chunk
2018-09-16 09:01:53 +02:00
SomberNight
1d711eeadc
interface: split up 'step'; binary search of headers
2018-09-16 08:29:01 +02:00
SomberNight
58a5346d72
network: switch lagging interface
2018-09-16 07:59:36 +02:00
SomberNight
27e42b4826
interface: if header is on other chain already, just switch (regression)
2018-09-16 07:42:25 +02:00
SomberNight
3fc9326c43
interface: try hard not to infinite loop while getting headers
2018-09-16 07:35:11 +02:00
SomberNight
da23e71db1
interface: block header search simplifications
2018-09-16 07:34:05 +02:00
SomberNight
ab94a47b8e
network: mv request_chunk to interface
...
this is a bugfix: the old code always tried to connect the chunk to
network.blockchain(). the correct behaviour is to connect to the
blockchain of the interface.
2018-09-16 06:09:14 +02:00
SomberNight
1635bc8cb3
blockchain: use HEADER_SIZE named constant instead of magic numbers
2018-09-16 03:06:21 +02:00
SomberNight
a9197236a2
change 'new_transaction' notification to include wallet
2018-09-16 02:48:13 +02:00
SomberNight
2453872a09
synchronizer: rm redundant 'updated' notification
2018-09-16 02:31:56 +02:00
SomberNight
6f5a4a5502
fix prev: rm incorrect assert
2018-09-15 08:23:49 +02:00
SomberNight
482259df8b
interface: further clean-up in 'step'
2018-09-15 07:26:36 +02:00
SomberNight
beb37aafc5
interface: clean-up 'step'; backwards search
2018-09-15 06:44:18 +02:00
SomberNight
2a958499b6
fx: disable checking mime type in get_json
...
looking at you, CoinDesk..
2018-09-15 00:30:43 +02:00
SomberNight
f38ec93ae9
qt fx settings: restore selected exchange in combobox if list changes
2018-09-14 23:07:13 +02:00
SomberNight
6ccd83397c
fx: asyncio.Event is not thread-safe; also the 'timeout' field was removed
2018-09-14 23:01:28 +02:00
SomberNight
d1f11f5fe9
fix #4717
2018-09-14 16:12:47 +02:00
SomberNight
2e61359d50
network: stop pending connections when stopping network
2018-09-13 21:20:55 +02:00
SomberNight
23f56ffa8a
network: avoid infinite reconnect loop to same server
2018-09-13 21:02:37 +02:00
SomberNight
e4bd445a38
network.new_interface: clarify how timed out interfaces are closed
2018-09-13 20:50:32 +02:00
SomberNight
64ab8222f7
interface: if request times out, no need to dump trace
2018-09-13 20:17:58 +02:00
SomberNight
819044221b
verifier: need to wait for reorg
...
fixes race between verifier and block header download.
scenario: client starts, connects to server. while client was offline,
there was a reorg. txn A was not mined in the old chain, but is mined
after reorg. client subscribes to addresses and starts downloading headers,
concurrently. server tells client txn A is mined at height H >= reorg height.
client sees it has block header at height H, asks for SPV proof for txn A.
but the header the client has is still the old one, the verifier was faster
than the block header download (race...). client receives proof. proof is
incorrect for old header. client disconnects.
2018-09-13 19:00:21 +02:00
SomberNight
78e9152723
network: get_servers to always include recent servers
2018-09-13 16:06:41 +02:00
SomberNight
43664d5f11
fixes for stdio/text gui
2018-09-13 15:11:28 +02:00
SomberNight
1f14894c43
network: add server to recent_servers only after checks
2018-09-13 03:45:21 +02:00
SomberNight
c93d137c5e
interface: minor clean-up split out _set_proxy from init
2018-09-13 01:20:20 +02:00
SomberNight
c40468a8d3
interface: disable bw rate limiting done by aiorpcx
2018-09-12 22:58:36 +02:00
SomberNight
2e18e3c62b
adapt to aiorpcx 0.8.1: rm report_crash kwarg from group.spawn
2018-09-12 22:09:59 +02:00
SomberNight
a3fb865db0
follow-up prev
...
this is already running inside interface.group
2018-09-12 21:22:46 +02:00
SomberNight
6452582a17
network: batch requests in request_server_info
2018-09-12 21:18:08 +02:00
SomberNight
e7fa42ce3e
wallet: don't write to disk when switching servers
2018-09-12 20:25:13 +02:00
SomberNight
cad4fb80c1
interface: throttle messages
2018-09-12 20:17:12 +02:00
SomberNight
47a97279af
rename CustomTaskGroup to SilentTaskGroup
2018-09-12 19:24:58 +02:00
SomberNight
2039c07a2d
interface.mark_ready: handle cancellation
2018-09-12 18:45:15 +02:00
SomberNight
1419a5c60d
interface: change how GracefulDisconnect is handled
2018-09-12 18:43:50 +02:00
SomberNight
3842205b8a
keystore: add note regarding xpubkeys
2018-09-12 18:22:34 +02:00
SomberNight
152c6abb86
network: fix another race in session.subscribe
...
key in session.subscriptions does not imply key in session.cache
2018-09-12 16:58:15 +02:00
SomberNight
9505a203d8
util: rm dead network code
2018-09-12 16:57:12 +02:00
ThomasV
15b21abc99
fix fee_histogram notifications
2018-09-12 12:56:51 +02:00
ThomasV
ce4608ae76
add help text to bump fee dialog
2018-09-12 12:18:27 +02:00
SomberNight
8cd08cc0fa
network: rm dead code; simplify
2018-09-12 01:40:54 +02:00
SomberNight
ab3c3c5ed7
interface: small clean-up
2018-09-11 22:16:30 +02:00
SomberNight
a5b3f809ce
blockchain.py: add type annotations
2018-09-11 22:14:57 +02:00
SomberNight
014c0d3a41
network: update UI when downloading chunks
2018-09-11 21:44:17 +02:00
SomberNight
518c6280e9
interface: minor clean-up re timeouts
2018-09-11 21:23:37 +02:00
SomberNight
9ffd2de492
Merge branch 'aiorpcx'
2018-09-11 20:52:58 +02:00
SomberNight
ecc296cf67
fix race in session.subscribe
2018-09-11 20:39:16 +02:00
SomberNight
8b8ca14c6d
move get_index from network to session
2018-09-11 20:37:53 +02:00
SomberNight
e829d6bbcf
wallet: put Sync and Verifier in their own TaskGroup, and that into interface.group
2018-09-11 20:24:01 +02:00
SomberNight
19d4bd4837
simplify prev
2018-09-11 18:28:59 +02:00
SomberNight
4e0d179937
rate limit txn notifications in qt
2018-09-11 18:13:52 +02:00
Janus
09dfb0fd1d
fix off-by-one error when syncing from genesis w/o checkpoints
2018-09-11 17:16:37 +02:00
ThomasV
3b6af914e1
add multiplexing capability to NotificationSession, simplify interface
2018-09-11 17:06:41 +02:00
SomberNight
1728dff576
fix prev: that's not how you use the context manager...
2018-09-11 12:25:57 +02:00
SomberNight
557334aa36
interface: introduce tip_lock
2018-09-11 11:44:49 +02:00
SomberNight
20957ac4d9
follow-up prev
2018-09-11 02:43:54 +02:00
Calin Culianu
a4396f4f13
Fixed potential bug when clicking in History List on slow wallet synch
2018-09-11 02:38:57 +02:00
SomberNight
19e244a85e
interface: rm unnecessary writes to self.tip
2018-09-10 19:47:36 +02:00
SomberNight
54cc822227
network: send out 'interfaces' event on new_interface
...
network dialog was not always showing up-to-date data
2018-09-10 19:03:06 +02:00
SomberNight
e2338581eb
broadcast_transaction: introduce async variant
2018-09-10 18:39:10 +02:00
SomberNight
b279d351d8
interface.session: add default timeout to send_request
2018-09-10 17:12:05 +02:00
SomberNight
fffec71fb3
kivy fx: make sure displayed fiat values get updated
2018-09-10 16:43:04 +02:00
SomberNight
3e3d387161
fix kivy: follow-up 3d424077fd
2018-09-10 15:18:11 +02:00
SomberNight
526319630e
network: minor fix in switch_to_interface
2018-09-10 02:30:27 +02:00
SomberNight
999ae1f713
test_mnemonic: add foreign lang tests
2018-09-10 02:03:42 +02:00
SomberNight
6b2509b106
interface.run: catch OSError instead of subtypes
2018-09-10 01:09:35 +02:00
SomberNight
b2547601a5
rm dead code
2018-09-10 01:08:51 +02:00
SomberNight
97ea4679a7
network: fix monkey-patching in set_proxy
2018-09-10 01:08:28 +02:00
SomberNight
3d424077fd
introduce NetworkParameters namedtuple
2018-09-10 00:59:53 +02:00
SomberNight
ecf4ea9ba7
move (de)serialize_server to interface; and use it
2018-09-09 23:08:44 +02:00
SomberNight
b381a7fdbf
follow-up prev
2018-09-09 22:02:42 +02:00
SomberNight
48a5b8527a
split up interface.run
2018-09-09 21:16:48 +02:00
SomberNight
096b3e6026
network.maintain_sessions: rm redundant 'update' notifications
2018-09-09 05:32:07 +02:00
SomberNight
e3fb991b1b
clean-up network start/stop a bit
2018-09-09 05:05:08 +02:00
SomberNight
cdca74aa39
move max_checkpoint from network to constants
2018-09-09 05:00:09 +02:00
SomberNight
2f224819ac
interface: small clean-up
2018-09-09 01:15:06 +02:00
SomberNight
57cac47944
fix synchronizer: ask for missing txns on start
...
Previously it could happen that a wallet was fully synced,
except it had missing transactions, and it would not recover from this state.
2018-09-08 22:44:14 +02:00
SomberNight
c5bedbd3ef
wallet: only do fiat history computations if specifically enabled
2018-09-08 19:38:38 +02:00
SomberNight
77d86f074f
verifier: don't try to request same chunk multiple times
2018-09-08 19:11:02 +02:00
SomberNight
b33b2c0945
synchronizer: more batching
2018-09-08 18:38:58 +02:00
SomberNight
c49e563881
verifier: if we fail to verify SPV proof, disconnect from server
2018-09-08 18:10:21 +02:00
SomberNight
4a88ca1a3a
fix --offline option for fx and trustedcoin
2018-09-08 17:56:29 +02:00
SomberNight
86bc59cd60
update mainnet block header checkpoints
2018-09-08 17:32:28 +02:00
Dzhelil Rufat
c9ffffc526
Remove unneccessary imports from the unit testing directory. ( #4699 )
2018-09-08 17:24:23 +02:00
SomberNight
57e66324cb
batch fee estimates
2018-09-08 15:36:16 +02:00
SomberNight
ddee03d324
interface.run: catch more exceptions
2018-09-08 02:15:51 +02:00
SomberNight
136df7e5ee
wallet: recreate Synchronizer and Verifier when switching servers
...
not that nice but solves races
2018-09-08 01:34:33 +02:00
SomberNight
32528d6aa6
rm dupe code
2018-09-08 01:10:41 +02:00
SomberNight
64a03c245c
small timeout change
...
(re KeyError: can happen after proxy settings change)
2018-09-08 00:25:38 +02:00
SomberNight
7500b1fbee
detect lost connection
...
supersedes #4697
2018-09-07 20:26:45 +02:00
SomberNight
56c3c76d8b
follow-up 26172686b8
2018-09-07 19:54:26 +02:00
SomberNight
fd40dee337
make sure to retry nodes for network
2018-09-07 19:35:35 +02:00
SomberNight
26172686b8
restructure synchronizer/verifier <--> interface coupling
2018-09-07 19:34:28 +02:00
SomberNight
1fa07c920c
network: restore previous API for broadcast_transaction
2018-09-07 17:07:15 +02:00
Janus
52b877ac3d
network: add singleton accessor classmethod, port trustedcoin to aiohttp
2018-09-07 11:35:16 +02:00
Janus
617103bb2a
labels: fix saving single label
2018-09-06 18:30:24 +02:00
SomberNight
dc51e82f54
fx: don't dump trace if getting rates fails
2018-09-06 18:25:23 +02:00
Johann Bauer
e5cd2ed52f
Goldcard: Change spelling mistake
2018-09-06 18:15:44 +02:00
SomberNight
8467f95a28
rm @profiler from Transaction.estimated_size
...
in certain situations, estimated_size is called hundreds of times, flooding the log
2018-09-06 17:51:13 +02:00
ThomasV
8fe066707a
rm import
2018-09-06 17:47:10 +02:00
Janus
573760daf0
remove generated kivy theming
2018-09-06 17:25:11 +02:00
ThomasV
73bf7a92a2
Merge pull request #4690 from spesmilo/aiorpcx-fx
...
asyncio: port exchange_rate and labels to aiohttp
2018-09-06 17:18:55 +02:00
Janus
be50394f11
aiorpcx: increase crash reporter timeout, avoid is_running in kivy
2018-09-06 17:18:26 +02:00
SomberNight
0ad504bdf0
interface: catch many common exceptions explicitly
2018-09-06 16:45:43 +02:00
Janus
6e80ba7b4f
asyncio: labels, crash_reporter, fx: migrate requests use to aiohttp
2018-09-06 16:18:45 +02:00
ThomasV
5ef04a039b
move NotificationSession
2018-09-06 15:53:41 +02:00
ThomasV
234273809a
set interface.session before marking as ready
2018-09-06 15:44:11 +02:00
SomberNight
0142e0fa22
fix 'daemon load_wallet' over RPC for python > 3.5.3
...
related: #3764
2018-09-06 15:14:35 +02:00
Janus
d367199553
async block headers: remove BlockHeaderInterface and Conn classes, make self.height a local
2018-09-06 14:17:45 +02:00
Janus
9c363db440
async block headers: avoid duplicate tip fields, handle electrumx server skipping blocks
2018-09-06 14:17:44 +02:00
SomberNight
4d95452ae7
wallet: partial fix for race in on_default_server_changed
2018-09-06 14:17:44 +02:00
SomberNight
2187615c08
verifier: request proofs in batches
2018-09-06 14:17:43 +02:00
Janus
c89020725b
address synchronizer: fetch initial addresses from wallet
2018-09-06 14:17:43 +02:00
SomberNight
14a032a0b1
disconnect from servers on exception
2018-09-06 14:17:42 +02:00
SomberNight
3f0d79f07d
blockchain.py: better handling of missing headers. more restrictive verify_chunk.
2018-09-06 14:17:42 +02:00
SomberNight
2157eae499
fix request_chunk
2018-09-06 14:17:41 +02:00
Janus
e9ceeb85af
async block headers
2018-09-06 14:17:41 +02:00
Janus
19387ff911
aiorpcx: simplify open_session
2018-09-06 14:17:39 +02:00
Janus
f12074397f
aiorpcx: reintroduce periodic fee updates
2018-09-06 14:17:39 +02:00
SomberNight
a4ffa0b22a
interface: clean-up proxy username/pw handling
2018-09-06 14:17:38 +02:00
SomberNight
6700364ac8
interface: fix cert handling
...
notably os.unlink cannot be inside the "with open"
2018-09-06 14:17:38 +02:00
Janus
9543a108be
aiorpcx: revive some maintain_sockets code, reintroduce NODES_RETRY_INTERVAL and SERVER_RETRY_INTERVAL usage, and fix --oneserver
2018-09-06 14:17:37 +02:00
ThomasV
5117a520ae
fix start_network
2018-09-06 14:17:37 +02:00
Janus
9bfb5fe71f
address synchronizer: use aiorpcx session object in network's interface,
...
request, fees
2018-09-06 14:17:36 +02:00
Janus
8f36c9167d
aiorpcx: remove callback based code, add session to Interface
2018-09-06 14:17:29 +02:00
Janus
b120584f97
aiorpcx address synchronizer
2018-09-06 14:11:36 +02:00
Janus
f733cb8947
aiorpcx: socks support
2018-09-06 14:11:36 +02:00
ThomasV
c53caecd1e
fix else statement
2018-09-06 14:11:35 +02:00
Janus
89a01a6463
aiorpcx: pin certificates
2018-09-06 14:11:35 +02:00
Janus
8080a713b2
aiorpcx: pass ssl context, sleep after connecting
2018-09-06 14:11:34 +02:00
Janus
97ea0fc439
aiorpcx: replace network loop with asyncio and try to maintain ten sessions
2018-09-06 14:11:20 +02:00
SomberNight
40ceabff79
rm redundant function from util
2018-09-05 18:36:13 +02:00
SomberNight
69a204d726
fix #4657
2018-09-05 18:30:53 +02:00
ThomasV
951fd8a47f
bump apk version number
2018-09-05 15:33:31 +02:00
SomberNight
1e3c3a528c
attempt at fixing wallet syncing crash
...
fix #3998
fix #4689
2018-09-05 15:22:57 +02:00
Janus
73e367dc3b
wallet: don't cache NaN coin price
...
if NaN coin price is cached, historial acquisition prices are not shown
correctly since the historial prices are requested after the full
history is initially shown. As such, "No data" will be shown, even
though the user required using historical pricing.
2018-09-05 14:38:43 +02:00
SomberNight
1ec71cbaca
follow-up prev
...
fix #4078
2018-09-04 16:42:08 +02:00
SomberNight
7d84409628
fix #4078
2018-09-04 16:31:35 +02:00
ThomasV
56e7ba41c4
prepare release 3.2.3 and release notes
2018-09-03 14:57:29 +02:00
SomberNight
1bb1fc37f4
network: don't ask for block -1 if server is on wrong chain
2018-08-30 19:25:42 +02:00
Filip Gospodinov
c42f0dac53
test_bitcoin: fix decorators for running tests twice ( #4669 )
...
This bug is triggered if ecc_fast._libsecp256k1 and/or
crypto.AES are not present.
Before, if the first test would have raised an exception
it would have been implicitly caught by returning from
the finally block and hence this effectively masks the
test's outcome. Now, the exception is properly propagated
causing the test to fail if an exception is raised.
2018-08-30 18:53:14 +02:00
SomberNight
6ee689345f
fix -v syntax
...
After the introduction of arguments for -v, it would sometimes incorrectly consume the CLI cmd as its argument.
This change keeps the old "-v" syntax working, at the cost of having to provide the arguments without a whitespace directly after -v (and the args need to be single letters).
2018-08-30 18:37:03 +02:00
RGauthamRam
aac7a34405
Update __init__.py ( #4668 )
...
Resolving the issue #4363
2018-08-30 16:35:01 +02:00
SomberNight
1b19cdd0f4
transaction.py: fix script_GetOp for malformed scripts
...
related fyookball/electrum#829
2018-08-28 20:17:21 +02:00
SomberNight
0137626a63
wallet restore: remove dead code. add log lines.
2018-08-28 18:20:35 +02:00
Janus
262d431ff5
x509: handle dates in the 22nd century
2018-08-24 14:56:58 +02:00
SomberNight
91c369e392
hw wallets: generalise 'minimum_library' for those that provide a version number
2018-08-23 18:31:14 +02:00
ghost43
9279f30363
Merge pull request #4470 from Coldcard/ckcc
...
Support for new hardware wallet: Coldcard
2018-08-23 16:51:52 +02:00
tiagotrs
2a5f108d4a
change prng, add warning against encrypting multiple secrets ( #4649 )
...
* substitute python prng generator with hmac_drbg
* add warning, change version
* brick cards version 0
* separate python-drbg module, include tests and license
* import to match PEP 8
* fix line break, minor changes in wording
* fixes noise_seed formatting errors
* fix import, include license exclude tests drbg module
2018-08-22 22:25:12 +02:00
SomberNight
04c1b522d6
minor fixes for prev
...
use TxOutputHwInfo namedtuple
warn user if device is set to wrong chain
undo parts of prev re testnet. fix p2wpkh.
testnet support. and minor stuff
2018-08-22 21:52:28 +02:00
Peter D. Gray
0bcea80bdf
Support for new hardware wallet: Coldcard
...
build-wine/deterministic.spec: add Coldcard plugin and ckcc-protocol dependancy
Require version 0.7.2 of ckcc-protocol (window fixes)
Rework import paths to new standards
Updated icons
New minimum version, for latest PSBT constants
Upgrade to final PSBT (BIP 174) standard encoding
Remove log noise
Show bootloader version number as well
Handle case where libraries are missing better
Remove noise about missing packages, for rest of world
Add reference to ckcc-protocol module/data
Remove dead code
Beef up the README more
Slightly better looking
Add version numbers and upgrade firmware feature
Split out DFU support into own file
First pass at adding Coinkite Coldcard hardware wallet to Electrum
2018-08-22 21:43:03 +02:00
SomberNight
bc6010303a
fix #4651
2018-08-22 17:05:48 +02:00
SomberNight
7044f1145f
ecc_fast: clarify fallback message
2018-08-17 16:01:03 +02:00
ghost43
941df4153b
wallet: try to plug gap limit for change addresses ( #4530 )
2018-08-15 14:33:12 +02:00
SomberNight
f3f5b8a5d6
fix #4312
2018-08-15 13:43:19 +02:00
SomberNight
3089edd3a2
wallet: remove method get_num_tx
2018-08-14 21:54:11 +02:00
SomberNight
f7166e95c4
wallet: move get_depending_transactions to AddressSynchronizer
...
and resolve TODO
2018-08-14 21:53:05 +02:00
SomberNight
b7178f2d21
coinchooser: small clean-up (use TxOutput.value)
2018-08-14 21:50:59 +02:00
SomberNight
88fc62e8f7
fix #4626
2018-08-14 19:38:19 +02:00
SomberNight
5f3408dd70
transaction.py: introduce TxOutputHwInfo namedtuple
2018-08-14 19:15:15 +02:00
SomberNight
b4b1de088a
move TrezorClient.expand_path to bitcoin.py
...
and allow its input to end with a '/' slash
2018-08-14 18:19:16 +02:00
SomberNight
52a4810752
trezor: add "show address" option in addresses tab context menu for all trezors
...
in case of a multisig wallet, with multiple trezors, previously only one of the trezors could be used
2018-08-14 15:02:31 +02:00
SomberNight
93578d9be2
wallet: is_mine should not depend on history keys
...
this makes clear_history work
2018-08-14 14:59:55 +02:00
SomberNight
820316e745
safe_t: disable udp transport as it was interfering with trezor emulator
2018-08-14 13:33:32 +02:00
tiagotrs
576c2718c8
Merge branch 'master' of https://github.com/spesmilo/electrum
2018-08-07 16:38:06 +02:00
tiagotrs
91bcc5f560
fix problems with hidpi monitors issue #4576 , ensure PNGS are precise the same size.
2018-08-07 16:33:58 +02:00
zebra-lucky
059a4fff5c
fix ecc_fast.py for win64 ( #4606 )
2018-08-05 22:30:58 +02:00
SomberNight
a7cfa56621
cosigner pool: don't block gui
2018-08-03 20:53:56 +02:00
SomberNight
9228cb5b8e
wallet: override get_addresses in Imported_Wallet so that clear_history works
2018-08-03 19:56:35 +02:00
SomberNight
2a9f5db576
blockchain.py: fix: chunks in checkpoint region were not getting saved if we were on a fork
2018-08-03 19:06:23 +02:00
SomberNight
531cdeffa9
blockchain.py: rename 'checkpoint' to 'forkpoint'
2018-08-03 18:25:53 +02:00
SomberNight
7307c800d7
small optimisations for history tab refresh (and related)
2018-08-03 16:12:41 +02:00
SomberNight
6b42e8448c
address_synchronizer: cache local_height in some cases
2018-08-03 16:10:36 +02:00
SomberNight
cf14d7b346
wallet: change meaning of is_used
2018-08-03 16:02:37 +02:00
SomberNight
6192bfce46
util.profiler: prepend class name to prints
2018-08-02 15:38:01 +02:00
SomberNight
2eb72d496f
transaction: introduce TxOutput namedtuple
2018-08-01 19:10:08 +02:00
SomberNight
f64062b6f1
add --noonion option to filter out onion servers
...
closes #4531
2018-07-31 20:25:53 +02:00
SomberNight
a29e2218c8
wallet: introduce namedtuples TxMinedStatus and VerifiedTxInfo
2018-07-31 17:10:15 +02:00
SomberNight
41e088693d
verifier: better handle reorgs (and storage upgrade)
2018-07-31 15:51:05 +02:00
SomberNight
861640949e
kivy: on tx broadcast, truncate error message
...
related #4593
2018-07-31 14:03:08 +02:00
SomberNight
c9c8b7656d
follow-up prev. sanity check OP_RETURN outputs
...
based on 86c63a3a08
2018-07-31 13:03:34 +02:00
SomberNight
e1b2195cf7
fix #4591 : pay to OP_RETURN on trezor
2018-07-31 12:30:43 +02:00
SomberNight
629b9cb3b5
fee estimation: split eta_to_fee into two methods
2018-07-30 19:15:05 +02:00
SomberNight
8e69174374
logging: self.print_error should not print without -v flag
2018-07-29 04:29:19 +02:00
SomberNight
eaf72aa951
network: handle one-block-long fork
...
also add fixme about incorrect behaviour in case of a fork height higher than our local chain tip
2018-07-29 04:00:02 +02:00
ghost43
0d05b84dc3
network: handle reorg (sooner) in case of multiple forks at given height ( #4537 )
2018-07-29 03:56:10 +02:00
Jean-Christophe Rona
02c30e3d52
Add support for Archos Safe-T mini hardware wallet ( #4445 )
...
commit 10c46477f3a6f2fbc0596345511e0994253081eb
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 25 19:40:05 2018 +0200
backport changes of trezor plugin
commit 213619e880f709188c1ea6272758896748e681a8
Merge: a855b75b6 6899ca252
Author: Jean-Christophe Rona <jc@rona.fr>
Date: Wed Jul 25 18:45:19 2018 +0200
Merge branch 'master' into safe-t-mini
commit a855b75b6f5af5f707c4680d0bac79eb66a85ace
Author: Jean-Christophe Rona <rona@archos.com>
Date: Wed Jul 25 18:37:12 2018 +0200
Safe-T: Switch to safet 0.1.3 to remove the rlp dependency
commit 9bee44ca33289158c91c03d47dec45de6577f17b
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 18 14:01:10 2018 +0200
safe-t: bump min fw to 1.0.5
older fw has a bug when restoring from seed
commit 01816607e8ba308cb5cff96b5fb844e4f6b8fcc1
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 18 13:57:17 2018 +0200
safe-t: fix rlp version to avoid eth stuff
commit 430206bea1fa10b762ff953fbc7652ce0d0e939d
Merge: a999ae266 b4b862b0c
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 18 13:29:41 2018 +0200
Merge branch 'master' into pr/4445
commit a999ae266f499f180946d53d4e860cc871d562ab
Author: Jean-Christophe Rona <rona@archos.com>
Date: Tue Jun 19 14:18:03 2018 +0200
Safe-T mini: Remove supported coins
This is not really useful there.
commit 7922df1031b2c4b132f7f9c90232480b5bf9585c
Author: Jean-Christophe Rona <rona@archos.com>
Date: Tue May 29 16:43:37 2018 +0200
Safe-T mini: Add support for the Safe-T mini
2018-07-25 20:11:04 +02:00
SomberNight
a799a00dc5
fix #4577
2018-07-24 18:57:49 +02:00
SomberNight
579d48cf0c
follow-up a830747f83
...
on_history expects fewer arguments than what the fee_histogram callback gives
2018-07-24 18:25:22 +02:00
SomberNight
53130da682
storage: factor out 'JsonDB'
2018-07-23 19:59:10 +02:00
SomberNight
d2abaf54e8
verifier: small refactor
2018-07-23 19:59:05 +02:00
SomberNight
89aa9eb0a7
revealer: minor fix and clean-up
2018-07-22 19:40:10 +02:00
SomberNight
a830747f83
kivy: update history screen on fee histogram
...
related: #4573
2018-07-21 23:23:25 +02:00
SomberNight
4284f4feb3
fix #4575
2018-07-21 23:09:46 +02:00
SomberNight
f8e13c5c33
kivy: use correct i18n
2018-07-21 16:15:45 +02:00
SomberNight
f7dce426cb
fix #4574
2018-07-19 19:52:06 +02:00
SomberNight
597295e359
address_synchronizer fixes
...
is_mine: wallet expects get_address_index to work
imported wallets: history did not include addr keys after creation
deterministic wallets: get_addresses() should be sorted in derivation order
2018-07-19 18:16:23 +02:00
SomberNight
0100af9389
fix #4572
2018-07-19 13:59:38 +02:00
SomberNight
01193be241
logging: when not giving args to -v, log everything, as before
2018-07-19 13:55:05 +02:00
SomberNight
cc77ba523f
fix minor undefined stuff in address_synchronizer
2018-07-19 13:47:49 +02:00
Janus
1fb0b6d7bd
plugins/ledger: just hardcode BTCHIP_DEBUG to False
2018-07-19 13:33:57 +02:00
Janus
f9f6ea4365
commands: tolerate lack of argument to 'verbosity'
2018-07-19 12:43:53 +02:00
ThomasV
b96b5af101
fix imports
2018-07-19 10:25:46 +02:00
ThomasV
0025073b24
move more methods from wallet to address_synchronizer
2018-07-19 10:15:22 +02:00
Janus
780b2d067c
Whitelist classes in verbose (-v) option
2018-07-19 01:21:33 +02:00
SomberNight
8f17f38b02
trezor/kk: when using old fw, wizard did not display instructions properly
2018-07-18 20:17:03 +02:00
SomberNight
aa86440866
fix #4566 : bip39 passphrases with multiple spaces
2018-07-18 18:42:04 +02:00
Yura Pakhuchiy
27b36486df
Trezor: fix spending coinbase outputs ( #4565 )
...
Attempt to spend coinbase output results in error:
a bytes-like object is required, not 'str'
2018-07-18 17:39:32 +02:00
SomberNight
e5661156f0
follow-up e3888752d6
2018-07-18 15:32:26 +02:00
Janus
1e715113ab
remove pbkdf2 dependency, use stdlib instead
2018-07-18 14:34:59 +02:00
tiagotrs
b4b862b0cc
add warning that seed extension will not be included in the backup ( #4555 )
2018-07-18 13:15:31 +02:00
ThomasV
e3888752d6
separate address synchronizer from wallet
2018-07-18 11:18:57 +02:00
SomberNight
8bb59fcc3c
follow-up prev: fix bug in fee_to_depth, and typo and tests
2018-07-14 19:02:41 +02:00
SomberNight
b8ab36546d
mempool fees: increase estimate by max precision of histogram
...
related: #4551
2018-07-14 18:45:02 +02:00
ThomasV
f8ee203225
rm deprecated info about apk version
2018-07-13 18:57:04 +02:00
SomberNight
b44aca1654
network: disconnect from server on incorrect header length
...
fix #4522
2018-07-13 18:11:48 +02:00
Janus
87f6aa09df
log failure to import plugins or plot module
2018-07-13 15:24:16 +02:00
ThomasV
77940148fa
fix paths in buildozer/makefile
2018-07-13 14:45:08 +02:00
Janus
097ac144d9
file reorganization with top-level module
2018-07-13 14:01:37 +02:00
Janus Troelsen
4f85615734
add simnet support ( #4455 )
2018-06-22 17:07:07 +02:00
Filip Gospodinov
61154794c8
electrum: cleanup plugin imports
...
`electrum_plugins` is imported in the `electrum` script
without being used - I assume it's done to make PyInstaller
find that package. But this can be achieved by avoiding
the usage of `__import__()` when importing `electrum_plugins`
where it's effectively used.
2018-04-26 06:12:20 +02:00
Dimitris Apostolou
989c9c2b55
Fix typos
2018-04-15 20:34:40 +02:00
fivepiece
b4d71e651b
add regtest support ( #4242 )
...
* add regtest support
* set default regtest ssl and tcp ports to 51002 and 51002
* regtest inherits parameters from testnet
2018-04-11 19:10:14 +02:00
SomberNight
7b50790584
do not raise BaseException
2018-04-07 17:10:30 +02:00
ThomasV
08e7a5f05f
remove pyjnius thread monkey patching; now in pyjnius
2018-04-01 11:18:15 +02:00
SomberNight
0f5cabc7f6
fix #4122
2018-03-14 12:42:42 +01:00
SomberNight
81b6d65764
refactor network constants
2018-03-04 22:10:59 +01:00
SomberNight
8951dc3120
restore cmd: stop wallet threads
...
while "restore" does not wait for verifier to finish, this will at least ensure that whatever has been verified, gets persisted
2018-02-26 01:33:02 +01:00
SomberNight
4cc2575d72
cli support for hw encrypted wallets
2018-02-10 20:07:06 +01:00
ThomasV
c49335ed30
Merge pull request #3346 from SomberNight/encrypt_watch_only_wallets
...
allow encrypting watch-only wallets
2018-02-03 11:02:14 +01:00
Johann Bauer
91e44ba6fc
Show error window for unhandled exceptions
...
Use exception hook from main thread for all threads
Use signal to delegate error window creation to GUI thread
Add more information to issue template
Update to PyQt5
Switch from Github to REST-Service
Report to web service instead of opening the browser
Fix imports
Change crashhub URL to electrum.org server
Explain that exception hooks are only used in the Qt Gui now
2018-01-30 10:49:31 +01:00
SomberNight
c811c5c9d9
allow encrypting watch-only wallets. initial support for hw wallet storage encryption.
2018-01-28 02:09:44 +01:00
SomberNight
a58d01ed54
setconfig rpcpassword: don't try to evaluate or reencode
2018-01-14 12:26:00 +01:00
ThomasV
4a40b3a0b2
separate merchant UI from main project
2018-01-12 10:37:14 +01:00
ThomasV
1020449684
disable jsonrpc commands in the GUI
2018-01-08 00:20:46 +01:00
ThomasV
7c702b518d
disable jsonrpc on android
2018-01-08 00:20:27 +01:00
ThomasV
412ce18201
fix previous commit
2017-11-28 18:26:58 +01:00
ThomasV
b9d8b2a571
windows: build portable version without patching the source
2017-11-28 18:21:59 +01:00
Justin Turner Arthur
857eb4ac1d
Remove unused imports. Explicitly import a few deep imports.
2017-11-13 02:28:00 -06:00
SomberNight
0db5ea67a0
bitcoin.NetworkConstants: easier changing between testnet and mainnet
2017-11-09 17:47:57 +01:00
ThomasV
e8b634ac4a
from_seed: add missing parameter
2017-11-01 14:46:44 +01:00
ThomasV
f7200cb616
use pyinstaller for OSX builds
2017-10-24 22:52:53 +02:00
ThomasV
5665b42999
remove six
2017-10-24 14:04:16 +02:00
ThomasV
5a45f257ca
fix #3071 : import error message
2017-10-20 09:53:54 +02:00
ThomasV
dc553ff108
fix #2991 : encrypt wallet files created with command line
2017-10-15 09:18:14 +02:00
ThomasV
3f3d249ed1
follow up c810c6a356
2017-10-09 11:54:17 +02:00
ThomasV
e8b564c0e7
Extend Wallet Import Format with txin type. Extend class Imported_Wallet.
2017-09-29 15:32:55 +02:00
ThomasV
a6eb9753eb
fix cmdline create with segwit option
2017-09-13 11:33:28 +02:00
ThomasV
8c5b6bdaf3
Read default server list from file. Update list with 1.1 servers. Remove nolnet option.
2017-09-13 11:30:30 +02:00
ThomasV
d531fe59b2
update make_packages script for android
2017-08-26 08:28:25 +02:00
ThomasV
cea705b153
update OSX builds with python3
2017-08-26 08:28:24 +02:00
ThomasV
b5338006f0
update pyinstaller scripts for python3 and pyinstaller3 (credit: bauerj)
2017-08-26 08:28:24 +02:00
ThomasV
c3388d9677
misc python3 updates:
...
- use jsonrpclib-pelix
- update the kivy gui
- update plugins
2017-08-26 08:28:24 +02:00
Dmitry Sorokin
c86140a608
py3 in setup.py and tox config
2017-08-26 08:28:24 +02:00
Dmitry Sorokin
d304ccdf17
py3 in qtgui
2017-08-26 08:27:47 +02:00
Dmitry Sorokin
5be78950ca
py3
2017-08-26 08:27:47 +02:00
ThomasV
255458da0a
fix #2400
2017-07-02 11:44:48 +02:00
ThomasV
cb2d5ff3d6
raise special exception for dangling links
2017-03-14 08:56:30 +01:00
ThomasV
ed42faa2e6
Revert commit 36f08ab2c3.
2017-03-08 11:22:27 +01:00
ThomasV
36f08ab2c3
changes for windows builds
2017-03-07 18:27:04 +01:00
ThomasV
6977ba603b
Merge pull request #2236 from kyuupichan/master
...
Add support for BU's nolnet
2017-03-06 12:28:45 +01:00
ThomasV
411832c4ce
cleanup storage and fix tracvis test
2017-03-06 08:33:35 +01:00
ThomasV
76dd11783b
rename load_wallet command
2017-03-05 20:32:06 +01:00
ThomasV
b8bdcc0877
rename open close commands
2017-03-05 14:57:41 +01:00
Neil Booth
8888a50549
Add support for BU's nolnet
...
Also update testnet servers
Add missing self. in print_error call
2017-03-04 11:01:32 +09:00
ThomasV
b2d66b2a6f
fix unnecessary password request
2017-03-03 16:05:13 +01:00
ThomasV
776f09b50e
restore from addresses ( fix #2173 )
2017-03-03 14:23:09 +01:00
ThomasV
fcc92c1ebd
Wallet file encryption:
...
- a keypair is derived from the wallet password
- only the public key is retained in memory
- wallets must opened and closed explicitly with the daemon
2017-03-01 13:58:04 +01:00
ThomasV
e1515743cd
replace slowaes with pyaes
2017-02-10 17:22:52 +01:00
ThomasV
f2b208429d
disable verbose option with kivy
2017-01-23 15:57:45 +01:00
ThomasV
d042d6e970
initial testnet support (petrkr)
2017-01-07 16:58:59 +01:00
ThomasV
be15b76c9b
allow client daemon to be launched in the foreground ( fix #1873 )
2017-01-07 10:10:51 +01:00
ThomasV
528c3386b4
move jnius wrapper to main script
2016-10-24 15:24:06 +02:00
ThomasV
983e152ea3
fix update_pasword bug
2016-10-17 06:42:53 +02:00
ThomasV
df6dae90d6
remove the 'deseed' command, it does not work anymore with keystores
2016-10-05 10:53:08 +02:00
ThomasV
e0ba4a967c
command line restore: strip text
2016-10-05 10:25:48 +02:00
ThomasV
3a56b00da7
follow up previous commit
2016-08-25 12:28:06 +02:00
ThomasV
b907a668ec
wizard: add derivation passphrase and bip39 support
2016-08-25 09:48:11 +02:00
ThomasV
b0afdf4614
fix command line: create, restore, importprivkey
2016-08-12 11:56:27 +02:00
ThomasV
31e9670502
make 'createrawtx' command not require wallet
2016-05-16 14:39:01 +02:00
ThomasV
671fe73788
set KIVY_DATA_DIR in main script
2016-03-08 04:55:58 +01:00
ThomasV
100ff51cc4
add import for pyinstaller
2016-02-24 19:16:59 +01:00
ThomasV
c26f898a4f
add import for pyinstaller
2016-02-24 19:12:38 +01:00
ThomasV
73822e8ec2
fix: pass cwd with config_options
2016-02-24 16:57:58 +01:00
ThomasV
305843999e
Relicensing
2016-02-24 10:20:30 +01:00
ThomasV
51ca7a056b
minor fixes
2016-02-05 08:56:23 +01:00
ThomasV
9efbb57766
init plugins only if needed
2016-02-01 22:09:55 +01:00
ThomasV
ddc1869551
disambiguate types returned by get_fd_or_server
2016-02-01 13:10:01 +01:00
ThomasV
690c862923
move static methods away from daemon class; restore initial logic
2016-02-01 10:20:22 +01:00
ThomasV
3b00f62d46
remove another unnecessary static method
2016-02-01 09:25:57 +01:00
ThomasV
1c83c3e060
do not declare pointless static methods
2016-02-01 09:12:53 +01:00
Neil Booth
ec24087b5a
Move some logic from electrum to daemon
...
Ultimate goal is to try and stop the daemon race at startup.
Need to isolate logic of checking for server and creating one.
2016-01-31 11:43:11 +09:00
Neil Booth
f6f7113978
daemon: create network inside constructor
2016-01-31 10:58:27 +09:00
ThomasV
ed401761f1
sorry, confused
...
This reverts commit 5e6a55edd5 .
2016-01-30 11:24:53 +01:00
ThomasV
5e6a55edd5
Revert "Revert "Daemon network cleanup""
...
This reverts commit 2c7b10a776 .
2016-01-30 11:13:11 +01:00
ThomasV
2c7b10a776
Revert "Daemon network cleanup"
...
This reverts commit 0a1b3eac9c .
2016-01-29 17:37:56 +01:00
Neil Booth
58d5215e2e
No need to pass daemon and network together
...
The daemon has the network
2016-01-29 22:25:59 +09:00
Neil Booth
0a1b3eac9c
Daemon network cleanup
...
All Daemon creation was preceded by Network creation, based on
config, and passing it to Daemon.
As config is passed to Daemon, it might as well create its own
network and the code is in one place.
2016-01-29 22:14:50 +09:00
ThomasV
307ec36d34
Merge branch 'master' of git://github.com/spesmilo/electrum
2016-01-29 09:29:19 +01:00
ThomasV
81b9f8281d
fix #1656
2016-01-29 09:29:07 +01:00
valesi
f7dfffd30f
Minor fixes - indentation and lone self.
...
6ba43637f5/electrum (L57)
has tab instead of spaces.
6ba43637f5/gui/kivy/nfc_scanner/scanner_android.py (L118)
has lone `self.`
2016-01-28 14:05:36 -08:00
ThomasV
6a833d9f98
electrum: check_imports
2016-01-28 14:38:10 +01:00
akshayaurora
900346b89e
kivy:Improve startup speed
2016-01-27 20:21:20 +05:30
ThomasV
80c1aab9c3
remove is_kivy test
2016-01-26 15:23:33 +01:00
Neil Booth
93e0c72ce2
Plugins: start thread at end of constructor
...
Don't add jobs twice
2016-01-24 19:59:58 +09:00
Neil Booth
028ab925ed
Remove unused imports
2016-01-24 19:52:37 +09:00
Neil Booth
dee402b961
Plugin wallets: better error when unloadable
...
Used to get:
jsonrpclib.jsonrpc.ProtocolError: (-32603, u'Server error: File "src/electrum/lib/plugins.py", line 144, in wallet_plugin_loader | KeyError: \'trustedcoin\'')
Now get:
jsonrpclib.jsonrpc.ProtocolError: (-32603, u'Server error: File "src/electrum/lib/plugins.py", line 81, in load_plugin | RuntimeError: cmdline implementation for trustedcoin plugin not found')
2016-01-24 19:39:59 +09:00
ThomasV
e5aa543707
fix #1622
2016-01-10 21:00:41 +01:00
ThomasV
62868ab29a
Register loaded wallets in daemon, to prevent a wallet from being opened twice.
...
Simplify the wizard logic.
2016-01-06 00:58:43 +01:00
Neil Booth
d63e754c67
Remove some unused hook infrastructure
2016-01-01 19:15:01 +09:00
ThomasV
fb8f9e55ef
Cleanup main script, with semantic changes:
...
The --offline flag applies only to GUI.
Commands must use the daemon if a daemon is running, otherwise they are run offline.
Commands that only require the wallet do not have the require_network flag.
2015-12-23 15:59:32 +01:00
ThomasV
93573282bf
fix wallet saving
2015-12-23 15:23:33 +01:00
ThomasV
acbe67fd1f
separation between RPC and non-RPC commands.
2015-12-23 10:54:31 +01:00
Neil Booth
e1c0298fc2
Write the wallet less often
...
This should speed up synchronization / restoration of large wallets.
Wallets are written only when they switch to up_to_date state, or
when stop_threads() is called when closing the daemon, or when
a command line command finishes.
2015-12-20 15:47:46 +09:00
ThomasV
23868d5769
commands that require wallet require daemon now
2015-12-15 10:39:25 +01:00
ThomasV
74a9e2296c
separate Network and Plugins
2015-12-03 11:18:10 +01:00
ThomasV
c7b1721f58
fix cmdline trezor
2015-12-01 12:00:18 +01:00
ThomasV
3c11c63289
fix daemon: don't oad wallet if there is a gui
2015-11-30 10:23:38 +01:00
ThomasV
4682d95a76
merge jsonrpc gui and daemon
2015-11-30 10:09:54 +01:00
ThomasV
39af17bc23
load wallets in daemon
2015-11-28 15:37:51 +01:00
ThomasV
00f298d3b1
revert e9c101f
2015-11-27 15:39:31 +01:00
ThomasV
e9c101f0c8
daemon: use daemon threads
2015-11-27 09:54:01 +01:00
ThomasV
d8ca881457
remove unused setting
2015-11-25 19:09:32 +01:00
ThomasV
1207ad3ba4
fix: websocket uses network object
2015-11-25 10:48:34 +01:00
ThomasV
2934fd17be
fix websockets
2015-11-25 10:32:46 +01:00
ThomasV
b727824eed
fix #1554 : use AF_INET instead of AF_UNIX, and write port number to lockfile
2015-11-19 12:42:11 +01:00
ThomasV
7641137ecc
simplify get_daemon
2015-11-19 11:05:49 +01:00
ThomasV
bb7b0884e3
Various fixes for command line. Make 'payto' command require network ( fixes #1525 )
2015-10-29 11:06:09 +01:00
ThomasV
079cb311ec
call wallet.wait_until_synchronized before commands
2015-10-29 05:01:06 +01:00
ThomasV
826c44e500
restore initial indentation
2015-10-28 11:13:45 +01:00
ThomasV
142b5532ec
revert to previous restore method, without daemon
2015-10-28 11:11:41 +01:00
ThomasV
ca9eb50821
dont create wallet instance twice
2015-10-28 11:03:39 +01:00
ThomasV
5b96d5166e
fix restore messages
2015-10-28 10:46:01 +01:00
ThomasV
052d8b236e
fix #1494
2015-10-28 10:36:44 +01:00
ThomasV
94ac0db91f
command line: Require 'text' argument for 'restore'. Replace 'concealed' option with ':' magic word
2015-10-28 09:33:35 +01:00
ThomasV
26682491b2
generic restore from command line
2015-10-27 14:33:41 +01:00
ThomasV
22575b9760
dont accept payment requests without uri
2015-10-23 11:20:32 +02:00
ThomasV
610ae91310
restore offline mode with gui
2015-10-16 23:46:53 +02:00
ThomasV
a5e94ef0e8
kivy: use plugins
2015-10-13 12:12:49 +02:00
ThomasV
f3bd1662f7
fix web request server. fixes #1455
2015-09-30 11:06:27 +02:00
ThomasV
52315fdb72
detect kivy from os.environ
2015-09-07 16:44:17 +02:00
Neil Booth
b5f986ee56
Torwards sane signalling for exchange_rate plugin
2015-09-05 21:47:35 +09:00
ThomasV
3cc7c1454b
move back URI rewriting to main electrum script
2015-09-03 11:18:35 +02:00
Neil Booth
87cff8e380
Check URI in "electrum" because of ambiguity
2015-09-03 18:07:15 +09:00
Neil Booth
27917af2bf
Get URIs working properly for multiple windows
2015-09-03 17:52:41 +09:00
ThomasV
4655c5f565
Fix SocketPipe:
...
* add errcode 35 for BSD
* in addition, add a very long timeout to command line pipe, in order to prevent that exception to be raised.
2015-09-03 10:47:57 +02:00
ThomasV
e3b7239d19
fix SocketPipe for returning empty array
2015-09-03 10:09:25 +02:00
Neil Booth
49797c3094
Create a Plugins class
...
Encapsulates plugin logic and removes global variable ugliness.
2015-09-03 12:02:03 +09:00
ThomasV
bdb4d3ecb8
move methods calling installwizard to main gui class
2015-09-02 12:05:33 +02:00
ThomasV
93c468504e
use the parent config instance when daemon starts a window
2015-09-02 09:55:45 +02:00
ThomasV
ba2570b8aa
check that GUI has new_window method
2015-09-01 10:25:20 +02:00
ThomasV
0e2db1e0ca
don't try to open window if started in daemon mode
2015-09-01 10:17:55 +02:00
Neil Booth
2d05e7d891
Merge the network and network_proxy
2015-08-31 12:00:38 +09:00
ThomasV
8b7a8b1337
decode json args after sendind over socket
2015-08-30 17:46:51 +02:00
ThomasV
92e0744470
Refactoring of daemon:
...
* gui and daemon are in the same process
* commands that require network are sent to the daemon
* open only one gui window per wallet
2015-08-30 11:31:51 +02:00
ThomasV
064f0b71e2
dns is used by android now
2015-08-18 12:36:12 +02:00
ThomasV
f583fcfedb
do not import dns on android
2015-08-18 12:15:56 +02:00
ThomasV
89677c47f7
cmdline: read all arguments before parsing
2015-08-17 09:46:50 +02:00
ThomasV
fa9ce51685
deprecate dumpprivkeys
2015-08-16 16:30:55 +02:00
ThomasV
02e81a3655
read command line arguments from stdin if '-' is passed
2015-08-16 16:11:52 +02:00
ThomasV
65c7dfafbc
check alias in signrequest
2015-08-07 09:00:00 +02:00
ThomasV
5ddafa8b14
rm tlslite import
2015-08-04 19:29:43 +02:00
ThomasV
77b0e7be5e
network: initial status should be 'unknown', distinct from 'connecting'
2015-07-30 11:32:16 +02:00
ThomasV
35923f1df0
add dns to imports
2015-07-29 18:37:00 +02:00
ThomasV
e2185da094
sleep to let socket threads timeout
2015-07-18 14:03:52 +02:00
Matt Tanous
dac89e212c
Update electrum
2015-07-06 18:15:22 -06:00
ThomasV
145bf5cf0a
rename decodetx and sendtx commands. merge mktx and payto commands.
2015-06-10 23:21:25 +02:00
ThomasV
2863d19579
command-line handler for trezor
2015-06-10 22:08:19 +02:00
ThomasV
ddef165e18
updates for android
2015-06-09 23:18:32 +02:00
ThomasV
fbc68d94d6
pop config variables from cmd line
2015-06-07 17:45:13 +02:00
ThomasV
4726d3a1fc
minor fix: var name
2015-06-02 14:17:14 +02:00
ThomasV
b5435a16e8
fix auto_connect name displayed in status
2015-06-02 11:41:41 +02:00
ThomasV
088d8e8415
show request status
2015-06-02 11:36:06 +02:00
ThomasV
e4946cf26e
setconfig: return False on error
2015-06-02 11:05:21 +02:00
ThomasV
e5b6b05482
show auto-connect in daemon status
2015-06-01 11:05:23 +02:00
ThomasV
ddd6a58cc7
commands: extract params and options from arguments
2015-05-31 22:42:34 +02:00
ThomasV
c4d822b0cf
add 'unsigned' option
2015-05-31 17:38:57 +02:00
ThomasV
ee20910c65
fix signtransaction flags
2015-05-31 17:21:02 +02:00
ThomasV
0caa29784c
separate param_descriptions and improve help messages
2015-05-31 10:03:53 +02:00
ThomasV
cc610d352f
merge signtxwithwallet and signtxwithkey
2015-05-31 09:28:47 +02:00
ThomasV
aa7f056d02
minor fix: sys.argv length
2015-05-31 08:36:12 +02:00
ThomasV
9acc0e4ed0
minor formatting
2015-05-31 08:06:20 +02:00
ThomasV
92a158b910
proper handling of arg_types. add more options for listaddresses
2015-05-30 18:49:58 +02:00
ThomasV
bf98b547e1
fix bug in cmd.params
2015-05-30 17:09:17 +02:00
ThomasV
d2f3e3f349
fix cmdline listcontacts
2015-05-30 12:35:58 +02:00
ThomasV
701527df20
fix -P option
2015-05-30 06:56:45 +02:00
ThomasV
3ddbbc1008
Parse arguments with argparse.
...
Move parser to commands.py
2015-05-29 19:24:50 +02:00
Neil Booth
39fe24b4d3
Rename auto_cycle to auto_connect in config
...
User config is updated if appropriate.
Add tests behaviour is as expected.
Just the one rename-it reference to auto_cycle remains.
2015-05-25 16:18:52 +09:00
Neil Booth
01d8f79a75
Clean up pick_random_server() and filter_protocol() and their
...
call sites.
Remove unused imports and redundant random pick of server
2015-05-24 21:07:35 +09:00
ThomasV
d40c12c949
check gui when loading plugins
2015-05-24 09:26:28 +02:00
ThomasV
8f98ea4aca
make plugins available without the GUI
2015-05-23 10:38:19 +02:00
ThomasV
c2a4252065
do not pass config to storage. request height from network_proxy if connected
2015-05-08 10:58:54 +02:00
ThomasV
15826e18b8
Merge pull request #1173 from kyuupichan/is_local
...
Determine is_local not based on cwd but on existence of setup-release.py
2015-04-30 06:58:57 +02:00
Neil Booth
13341dd4b5
Remove apparenlty dead import and __builtin__ assignment.
...
Googling reveals this code is likely a remnant of prior code
and no longer needed. It appears to have no effect on my system.
2015-04-30 10:31:37 +09:00
Neil Booth
d27d80eb28
Should have been setup-release.py
2015-04-30 08:29:15 +09:00
Neil Booth
f732365821
Determine is_local not based on cwd but on existence of setup-release.py
...
The goal is to be able to run local instances from arbitrary directories.
It seems that the chances of having a setup-release.py in the same directory
as an installed electrum are extremely remote: not only is the name unusual,
but the file isn't installed anyway.
2015-04-30 08:23:57 +09:00
ThomasV
8f3add1e33
filter out -psn argument
2015-04-24 23:31:31 +02:00
ThomasV
41d498fda0
open payment request file passed as argument
2015-04-21 18:08:35 +02:00
ThomasV
f9de19bd78
Merge pull request #1142 from ptrcarta/master
...
delete -psn arg on osx, fixes #1080
2015-04-20 12:10:50 +02:00
ThomasV
47f89f43b6
get rid of pyasn1 dependencies
2015-04-14 15:10:44 +02:00
ptrcarta
f6b6bbbbae
fixes osx bug where user couldn't change proxy or connect to network
...
by default osx passes a -psn arg when launching an app from command
line. this is a process serial number argument and py2app when used with
emulate_argv=True removes it.
commit d2097c15d9 removed this, thus
introducing the -psn arg on launch. this is misinterpreted by the arg
parser as a proxy setting, breaking networking.
2015-04-11 18:53:49 +02:00
ThomasV
a3422d3fae
generic multisig wallet constructor. fixes #1129
2015-04-03 11:27:57 +02:00
ThomasV
5f29017c9d
pass config.path to daemon (exemptore). fixes #901
2015-04-02 12:12:18 +02:00
ThomasV
0200778ac1
require user to start daemon explicitly
2015-03-23 11:50:13 +01:00
ThomasV
b1b1a85e80
require ca bundle
2015-03-19 13:42:45 +01:00
ThomasV
c3cba78659
remove time.sleep() used for daemon threads
2015-03-13 23:10:54 +01:00
ThomasV
1d311b0a04
don't try to import socks anymore
2015-03-01 10:27:05 +01:00
ThomasV
77d010bcec
store gui last wallet separately, to fix command line
2015-02-27 10:37:13 +01:00
ThomasV
80284d5516
updates for the old android GUI
2015-02-24 18:45:09 +01:00
ThomasV
1f58673915
add python mode for emacs
2015-02-21 12:24:40 +01:00
Andy Weidenbaum
80446aca9c
s/defaut/default/
2015-02-11 21:53:22 -08:00
ThomasV
19d7a81d70
restrict plugins to qt for now
2015-02-04 12:05:46 +01:00
ThomasV
b6c1b22c35
use sys.exit
2015-02-03 12:29:04 +01:00
ThomasV
935a9a980d
disable auo-connect is --server option is passed. fixes #992
2015-01-30 10:19:22 +01:00
ThomasV
56e80566f9
simplify packages insertion
2015-01-27 13:50:02 +01:00
Maran
2bf32880e8
Add dynamic package loading for Py2App osx binaries
2015-01-27 12:18:04 +01:00
ThomasV
3ef3bebeb3
print debug message with ca bundle status
2015-01-27 10:12:44 +01:00
ThomasV
4120678dff
add google protobuf to packages
2015-01-27 10:01:40 +01:00
ThomasV
9d40fb2ea8
detect if we are in a pyinstaller bundle
2015-01-26 16:53:59 +01:00
ThomasV
16c72d286c
try to import all python dependencies from the main script
2015-01-26 14:14:16 +01:00
ThomasV
576954555c
fix: check_password for imported wallets
2015-01-23 00:18:58 +01:00
ThomasV
63c7a27d7e
add InvalidPassword exception
2014-12-03 22:35:05 +01:00
ThomasV
72489da26d
signtxwithkey: use prompt if privkey is not passed
2014-10-30 17:03:29 +01:00
ThomasV
581ed1ed26
separate signtxwithkey and signtxwithwallet, and simplify sign_transaction
2014-10-30 16:36:29 +01:00
ThomasV
cfa965fdae
set env to python2
2014-09-19 14:05:00 +02:00
ThomasV
484cd3983b
init_plugins only for gui
2014-09-18 10:16:05 +02:00
ThomasV
b782a1bb3f
fix argument for check_seed
2014-09-15 14:42:41 +02:00