Commit Graph

2051 Commits (8cb095340169345e2597e8ad9c4bd1b18626dfe0)
 

Author SHA1 Message Date
Peter Šurda 8cb0953401
Moved writeKeysFile into configparser
- shared.writeKeysFile -> BMConfigParser().save
- makes it easier to get rid of circular imports
6 years ago
Peter Šurda 5ca8a52662
Typos, extra imports and similar
- pointed out by landscape.io
- also updated dev/ssltest.py to work the same way as the main program
6 years ago
Peter Šurda 689d697a40
Refactor bandwidth limit and speed calculator
- also fixes potential deadlocks
6 years ago
Peter Šurda ad75552b5c
Move shutdown from shared.py to state.py 6 years ago
Peter Šurda bcc7692e14
Add safeGetInt to BMConfigParser 6 years ago
Peter Šurda 02a7c59de8
OpenSSL 1.1.0 compatibility fixes
- part 2, continued from previous commit
6 years ago
Peter Šurda 59b5ac3a61
OpenSSL 1.1.0 compatibility fixes
- function check missed 1.1.0 release
- TLS didn't work with anonymous ciphers
6 years ago
Peter Šurda 6247e1d3ea
Add more debug info and error handling to ssltest 6 years ago
Peter Šurda ff593273bf
Add ssltest.py for developers/debugging 6 years ago
Peter Šurda fa2f87743e
SSL handshake fix
- SSL handshake would often fail, because verack packet was being sent
  at the same time as the do_handshake was executed in a different
  thread. This makes it so that do_handshake waits until verack is done
  sending.
- also minor modifications in SSLContext initialisation
6 years ago
Peter Šurda cc4c07025b
Sending thread fix 6 years ago
Peter Šurda 8d278182a7
Indentation 6 years ago
Peter Šurda 93bdc3c800
Remove extra print 6 years ago
Peter Šurda d0b1cbfe1f
Add current git HEAD info to support request 6 years ago
Peter Šurda 5ae676f2ad
Minor support fix 6 years ago
Peter Šurda 6778d6046f
Add OpenSSL 1.1.0 compatibility
- thanks to Wolfgang Frisch <wfr@roembden.net>
6 years ago
Peter Šurda 59cf33c9a1
Remove obsolete import 6 years ago
Peter Šurda 65701e5997
neededPubkeys fix
- was still using shared.neededPubkeys
6 years ago
Peter Šurda ff8deebf60
Keep track of network protocol status 6 years ago
Peter Šurda 810e50a040
Fix minor issues
- landscape.io complained
- obsolete imports
- ciphers -> self.ciphers
6 years ago
Peter Šurda 2cf2188bc3
Object sending fix
- forgot to move broadcastToSendDataQueues in class_singleWorker.py
6 years ago
Peter Šurda bd520a340f
Trustedpeer fix and more refactoring
- fixed trustedPeer (thanks to anonymous bug reporter)
- moved trustedPeer and Peer into state.py
6 years ago
Peter Šurda e7470a4757
Remove leftover from debugging 6 years ago
Peter Šurda 5ceb920bd6
TLS tuning
- allow TLS > 1.0 with python >= 2.7.9
- tune ssl_context with python >= 2.7.9
6 years ago
Peter Šurda c738d93056
Assorted fixes
- landscape.io was complaining, this fixes most easily fixable errors
6 years ago
Peter Šurda cdcdf11d59
Missing import fix 6 years ago
Peter Šurda fa0a3135e7
Fixes pointed out by landscape.io
- missing/wrong/obsolete imports
- logger formatting
6 years ago
Peter Šurda ac348e4e6b
Fixes and refactoring
- fixes errors introduced in the earlier refactoring
- more variables moved to state.py
- path finding functions moved to paths.py
- remembers IPv6 network unreachable (in the future can be used to skip
  IPv6 for a while)
6 years ago
Peter Šurda 5d2bebae28
Add IPv4 multicast range to ignored addresses 6 years ago
Peter Šurda 8bcfe80ad0
Refactoring of config parser and shared.py
- got rid of shared config parser and made it into a singleton
- refactored safeConfigGetBoolean as a method of the config singleton
- refactored safeConfigGet as a method of the config singleton
- moved softwareVersion from shared.py into version.py
- moved some global variables from shared.py into state.py
- moved some protocol-specific functions from shared.py into protocol.py
6 years ago
Peter Šurda 2654b61bd7
Compiletest for non-Windows systems 6 years ago
Peter Šurda 085e335969
Proxy update (for the new network subsystem) 6 years ago
Peter Šurda 75090abaaf
Advanced dispatcher class
- generic class the new asyncore-based network subsystem that handles
  buffered data transfer
6 years ago
Peter Šurda b4703ec6ce
Make objectHashHolder into a list
- was a dict
6 years ago
Peter Šurda 9c214b4a24
Inventory refactoring #2
- forgot to add api.py
6 years ago
Peter Šurda e84b19613e
Inventory refactoring
- minor refactoring, made it into singleton instead of a shared global
  variable. This makes it a little bit cleaner and moves the class into
a separate file
- removed duplicate inventory locking
- renamed singleton.py to singleinstance.py (this is the code that
  ensures only one instance of PyBitmessage runs at the same time)
6 years ago
Peter Šurda 4f543e14c1
TLS handshake fix
- TLS handshake in python is apparently always asynchronous, so it needs
  proper handling of SSLWantReadError and SSLWantWriteError
- also adds a timeout and a proper shutdown if handshake fails
6 years ago
PyBitmessage Translations 541979a159
Auto-updated language fr from transifex 7 years ago
PyBitmessage Translations 9a26ce5be1
Auto-updated language ja from transifex 7 years ago
PyBitmessage Translations e92161650b
Auto-updated language pl from transifex 7 years ago
PyBitmessage Translations a87bfb8a82
Auto-updated language eo from transifex 7 years ago
PyBitmessage Translations 77d7dcbd2d
Auto-updated language sk from transifex 7 years ago
PyBitmessage Translations 3b896e69e7
Auto-updated language de from transifex 7 years ago
Peter Šurda fefb959338
Notify if C PoW missing
- Linux users often don't know that the C PoW is available and complain
  it's slow. This will try to build it, and adds availability
  notification in the status bar
- also, the updateStatusBar signal now allows emphasised notifications,
  which will remain visible for a longer period of time and also
  reappear if a status change happened in the meantime
7 years ago
PyBitmessage Translations 9d9052dda2
Auto-updated language zh_cn from transifex 7 years ago
PyBitmessage Translations 49832231ca
Auto-updated language de from transifex 7 years ago
Peter Šurda 025950c05e
Fix locale init
- date/time wasn't localised correctly on startup
7 years ago
PyBitmessage Translations dd777d6e43
Auto-updated language de from transifex 7 years ago
PyBitmessage Translations d8b8e0e9dd
Auto-updated language fr from transifex 7 years ago
Peter Šurda 114563ed2f
Default logger output UTF-8
- fixes errors when using locales other than EN
7 years ago