SomberNight
d03da4d1a2
tests: test with all AES implementations
2018-05-25 22:06:45 +02:00
SomberNight
dc1d6ac1fe
avoid hardcoding the curve generator ourselves
2018-05-25 18:29:44 +02:00
SomberNight
7c53712750
load_library: remove ctypes.util.find_library calls. remove some code dupe
...
find_library was giving priority to system dll against local dll
2018-05-25 18:20:56 +02:00
SomberNight
16e4827e8c
use libsecp256k1 if available. abstract away ecc stuff. move symmetric crypto and hash functions to crypto.py
2018-05-25 15:43:06 +02:00
SomberNight
756cc323e7
tests: dnssec
2018-05-24 22:20:58 +02:00
Johann Bauer
2e899bc38f
Add missing languages to settings dialog
2018-05-23 22:15:14 +02:00
SomberNight
51d047a35e
fix #4375
2018-05-22 12:55:50 +02:00
ThomasV
4c234397ec
Merge pull request #4351 from SomberNight/2fa_sign_then_otp
...
trustedcoin: sign first, then prompt for OTP
2018-05-18 17:36:18 +02:00
SomberNight
c113232e8b
tests: TestWalletHistory
...
check if wallet logic calculates correct balance regardless of the order in which we receive transactions from the server
2018-05-18 15:43:02 +02:00
SomberNight
5cfeb6b081
follow-up ab2f59590c
2018-05-18 10:56:01 +02:00
Harm Aarts
ab2f59590c
Push network calls into network module
...
Eventually all network calls should go through the network module
without resorting to using raw protocol strings. This, then, makes
adding an other backend easier.
Please note that the behaviour slightly changed. Initially the caller
received an unmodified response from the ElectrumX server. In it the
scripthash is present. This change replaces that scripthash with the
original address.
2018-05-17 15:20:22 +02:00
Harm Aarts
812d570ee2
Rename method to reflect its goal
...
Answer the question *what* problem the method solves. Not *how* it is
solving it.
2018-05-17 15:17:06 +02:00
Harm Aarts
d0d39e534e
Make side effect explicit
...
The removed method didn't allude to the fact it was adding the generated
hash to a dictionary. This was problematic since the code base now
seemingly had two methods for converting an address to a scripthash. One
in the network module and one in the (logical) bitcoin module.
2018-05-17 12:04:54 +02:00
SomberNight
b88f0434c5
wallet.py: check_history depends on load_local_history and build_spent_outpoints
...
if it tries to call add_transaction
2018-05-16 11:31:20 +02:00
SomberNight
e375bf48c4
transaction.py: reserialize scriptSig for incomplete txin
...
On offline imported privkey + online imported address config, the offline wallet was displaying incorrect tx size.
2018-05-15 18:53:25 +02:00
SomberNight
7c7aa5828b
tests: added p2wpkh-p2sh wallet to TestWalletSending
2018-05-14 18:33:14 +02:00
SomberNight
f12798e91c
follow-up #4324
2018-05-14 17:49:17 +02:00
SomberNight
a94e1d92a3
bitcoin.py: nicer exception in deserialize_privkey if prefix byte is invalid
...
related: #4364
2018-05-13 16:26:00 +02:00
SomberNight
b175c6b609
fix #4360
2018-05-13 03:11:20 +02:00
ghost43
dae187bada
allow fractional feerates ( #4324 )
2018-05-09 19:30:18 +02:00
ghost43
3337af0734
transaction.py: (txin guess) fix some false positive matches of p2sh-segwit ( #4336 )
2018-05-09 19:16:01 +02:00
SomberNight
ceae43afe5
trustedcoin: sign first, then prompt for OTP
2018-05-08 20:04:36 +02:00
SomberNight
c03d68d758
add 'sat' as base unit option
2018-05-05 12:52:19 +02:00
Andreas Schildbach
7dc5d64cba
Remove server from default list: cryptohead.de ( #4320 )
2018-05-03 20:30:42 +02:00
SomberNight
ae24af9bc2
wizard: move GoBack from Qt wizard to base_wizard
2018-05-01 14:47:50 +02:00
SomberNight
c8bed8791a
assert datadir available
2018-04-29 18:25:10 +02:00
SomberNight
cbf1b5d9d5
py3.4 compat: follow-up e13183ea7a
2018-04-29 15:06:19 +02:00
SomberNight
fad25af204
fix tests for travis. follow-up 68d8919416
2018-04-27 21:55:50 +02:00
SomberNight
ea55d886b7
follow-up 1d6f000868
...
I broke multisig..
2018-04-27 21:44:29 +02:00
SomberNight
68d8919416
tests: sends between wallets
2018-04-27 21:43:46 +02:00
SomberNight
e13183ea7a
bitcoin.py: SCRIPT-related clean-up. transaction.py: construct_witness
2018-04-27 16:16:27 +02:00
SomberNight
97296432a2
transaction.py: sign_txin. allow override for get_preimage_script.
2018-04-27 16:16:27 +02:00
SomberNight
1d6f000868
transaction.py: shortcut witness/scriptSig serialisation
2018-04-27 16:16:14 +02:00
SomberNight
b3110b3b46
bitcoin.py: implement add_number_to_script.
2018-04-27 16:15:44 +02:00
SomberNight
4b89b1e270
implement script_num_to_hex
2018-04-27 16:15:43 +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
Filip Gospodinov
376a815458
exchange_rate: prefer relative imports ( #4308 )
...
As this project is currently structured, absolute
imports have the drawback that they'll load modules
from installed paths rather then from the local repo
when running unit tests. This somehow breaks the main
idea of unit tests which is being able to quickly test
newest development changes. Therefore, use a relative
import here.
2018-04-25 09:42:07 +02:00
Ben Woosley
53320470f5
Format the transaction window fee rate with 1 decimal place ( #4286 )
...
* Fix format_satoshi to properly handle non-integer values
Handling the integer and fraction parts together via string formatting
simplifies the initial composition because the default behavior manages
the - sign, and the incorporation of the fractional part.
* Limit fee rate output to one decimal place
Via a new precision arg
* Introduce format_fee_satoshis and use it for all fee display
2018-04-24 18:54:14 +02:00
SomberNight
0be73ed546
wallet.py: small optimisation for get_wallet_delta
2018-04-24 15:26:56 +02:00
mhitcher
5284aef820
added therocktrading exchange rate ( #4272 )
2018-04-24 09:28:38 +02:00
ThomasV
7cee37dfb8
show bitcoin price info in history summary
2018-04-19 14:05:19 +02:00
ThomasV
624fa4769d
prepare release 3.1.3
2018-04-16 18:43:02 +02:00
Dimitris Apostolou
989c9c2b55
Fix typos
2018-04-15 20:34:40 +02:00
SomberNight
44bb1e9993
bitcoin.py: fix op_push
...
8cbc5c4be4/src/script/script.h (L464)
fdc2bc867b/txscript/scriptbuilder.go (L151)
2018-04-14 16:13:51 +02:00
SomberNight
8bdf863fca
fix: android HistoryScreen was not displaying fiat value of unconfirmed txns
2018-04-12 16:49:25 +02:00
SomberNight
3bf5afa61a
fix #4253
2018-04-12 12:17:24 +02:00
SomberNight
1935d7d165
wallet.py: remove local transactions that we don't have
...
fixes #4232
closes #4234
2018-04-11 19:53:33 +02:00
SomberNight
7dcefd999f
wallet.py: remove_transaction - make sure we pop from both txi and txo
2018-04-11 19:51:35 +02:00
SomberNight
4fed27610a
wallet.py: load unverified_tx in __init__
2018-04-11 19:45:13 +02:00
SomberNight
86b1273ec0
wallet.py: minor reordering in __init__
2018-04-11 19:45:12 +02:00