Neil
e0a6b082d2
First message on an interface is server.version ( #4407 )
- Use server.ping to ping (valid as of protocol version 1.2) rather
than server.version (deprecated as a ping)
- Ping every 5 mins rather than every 1 minute. By default servers
don't consider a connection stale until 10 minutes of inactivity.
- Remove unused last_request member of interface
Port of c3f26e59db
7 years ago
Neil Booth
1900e58e88
Subscribe to raw headers
The old interface is deprecated
Port of fe303c97c3
7 years ago
SomberNight
219c2a363a
fix #4401
7 years ago
SomberNight
cfc52e6441
follow-up #4396 : new 2fa wallets could not be created
7 years ago
SomberNight
141994ed1b
tests: TestWalletSending - also test raw_tx and wtxid
7 years ago
SomberNight
2b84fba67b
storage upgrade as part of the wizard. fix storage upgrade on kivy.
7 years ago
SomberNight
ec5931ae54
rename dylib for libsecp
follow c76375de91
7 years ago
SomberNight
1e06b1921e
wallet.py: access unverified_tx with self.lock
Only actually needed due to Imported_Wallet.delete_address, but it takes some time to see this.
The verifier and the synchronizer both access unverified_tx but they are both run in the Network thread.
In any case, there does not seem to be a measurable performance hit when using the lock.
7 years ago
SomberNight
060404e17c
wallet/verifier: persist wallet.verified_tx when verifier finishes
Previously verified_tx was only persisted in wallet.stop_threads(), hence only on clean shutdowns.
7 years ago
SomberNight
4159322db0
synchronizer.py: rename tx_response to on_tx_response
7 years ago
SomberNight
ee9861f0d5
wallet.py: access verified_tx with lock
7 years ago
SomberNight
6bb7558f75
InvalidPassword undefined in wallet.py
7 years ago
SomberNight
deb945d810
tests: TestWalletHistory_EvilGapLimit
7 years ago
SomberNight
7218bf1d14
tests: bip32 extended version bytes
7 years ago
ghost43
9b7a449057
util.make_dir: 0o700 permissions on folders ( #4357 )
7 years ago
SomberNight
dbec3af810
tests: introduce FAST_TESTS flag for faster local testing
7 years ago
SomberNight
1f373c1eb9
ecc: don't print trace when can't find libsecp
7 years ago
SomberNight
86992aea6c
bundle libsecp256k1 in android apk
this works as there is already a p4a recipe upstream: 74bf788a29/pythonforandroid/recipes/libsecp256k1/__init__.py
7 years ago
SomberNight
facb7bbc0e
ecc: (minor) use ECPubkey.from_point
7 years ago
SomberNight
ac94d6d055
ecc: ECPrivkey.sign clean-up
7 years ago
SomberNight
d03da4d1a2
tests: test with all AES implementations
7 years ago
SomberNight
dc1d6ac1fe
avoid hardcoding the curve generator ourselves
7 years ago
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
7 years ago
SomberNight
16e4827e8c
use libsecp256k1 if available. abstract away ecc stuff. move symmetric crypto and hash functions to crypto.py
7 years ago
SomberNight
756cc323e7
tests: dnssec
7 years ago
Johann Bauer
2e899bc38f
Add missing languages to settings dialog
7 years ago
SomberNight
51d047a35e
fix #4375
7 years ago
SomberNight
c113232e8b
tests: TestWalletHistory
check if wallet logic calculates correct balance regardless of the order in which we receive transactions from the server
7 years ago
SomberNight
5cfeb6b081
follow-up ab2f59590c
7 years ago
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.
7 years ago
Harm Aarts
812d570ee2
Rename method to reflect its goal
Answer the question *what* problem the method solves. Not *how* it is
solving it.
7 years ago
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.
7 years ago
SomberNight
b88f0434c5
wallet.py: check_history depends on load_local_history and build_spent_outpoints
if it tries to call add_transaction
7 years ago
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.
7 years ago
SomberNight
7c7aa5828b
tests: added p2wpkh-p2sh wallet to TestWalletSending
7 years ago
SomberNight
f12798e91c
follow-up #4324
7 years ago
SomberNight
a94e1d92a3
bitcoin.py: nicer exception in deserialize_privkey if prefix byte is invalid
related: #4364
7 years ago
SomberNight
b175c6b609
fix #4360
7 years ago
ghost43
dae187bada
allow fractional feerates ( #4324 )
7 years ago
ghost43
3337af0734
transaction.py: (txin guess) fix some false positive matches of p2sh-segwit ( #4336 )
7 years ago
SomberNight
ceae43afe5
trustedcoin: sign first, then prompt for OTP
7 years ago
SomberNight
c03d68d758
add 'sat' as base unit option
7 years ago
Andreas Schildbach
7dc5d64cba
Remove server from default list: cryptohead.de ( #4320 )
7 years ago
SomberNight
ae24af9bc2
wizard: move GoBack from Qt wizard to base_wizard
7 years ago
SomberNight
c8bed8791a
assert datadir available
7 years ago
SomberNight
cbf1b5d9d5
py3.4 compat: follow-up e13183ea7a
7 years ago
SomberNight
fad25af204
fix tests for travis. follow-up 68d8919416
7 years ago
SomberNight
ea55d886b7
follow-up 1d6f000868
I broke multisig..
7 years ago
SomberNight
68d8919416
tests: sends between wallets
7 years ago
SomberNight
e13183ea7a
bitcoin.py: SCRIPT-related clean-up. transaction.py: construct_witness
7 years ago