Commit Graph

70 Commits (21ae6cb9b00a17eb084ab994e5e6d4bed462f980)

Author SHA1 Message Date
Dmitri Bogomolov 5160a68c28
Moved start_proxyconfig to helper_startup;
no more prints in helper_startup
4 years ago
Dmitri Bogomolov d6c1845b71
Moved Peer from state to network.node
and trustedPeer to network.connectionpool.BMConnectionPool attribute
4 years ago
Dmitri Bogomolov 29f9cd9545
Handle bad trustedpeer setting 4 years ago
coffeedogs 6d98a4ef44
Changes based on style and lint checks. (final_code_quality_17) 5 years ago
Dmitri Bogomolov 529559d06a
Reduced BMConfigParser in the sake of readability 5 years ago
Dmitri Bogomolov ba5caf3fda
Sorted out configuration loading/updating a bit:
- used BMConfigParser.safeGet.. methods instead of try .. except
  - moved all config checks from class_sqlThread into helper_startup
  - commented out initialization of settings which are then rewritten
    by updateConfig()
5 years ago
Dmitri Bogomolov c7d3784b80
No need to import namecoin early because it's really used only in Qt UI 5 years ago
coffeedogs dd1ee618a5
Fixed: Simple Codacy errors and warnings in src/helper_*
* Some local pickle operations and non-cryptographic random operations
were marked as safe to the bandit linter
 * A bandit config file was added and assert warnings are now ignored globally
 * Tightened up exception handling and code style
5 years ago
Mahendra 4840b2db5c
add docstring for sqlQuery and sqlBulkExecute methrod in helper_sql and removed query method of sqlBulkExecute class 6 years ago
Mahendra a012d4a707
helper_startup formating 6 years ago
Mahendra 1a36361ef9
replace all random.xxx with helper random function 6 years ago
Peter Šurda 6062277d60
Rename configparser.py to bmconfigparser.py
- it was causing problems with py2app because the source of python's own
  CongigParser is also configparser.py
7 years ago
Justin Ramos fd95f8f519
allowing for max outbound connection configuration
Signed-off-by: Justin Ramos <justin.ramos@gmail.com>
7 years ago
Peter Šurda 157881bc63
Cyclic import fix
- networkDefaultProofOfWorkNonceTrialsPerByte and
  networkDefaultPayloadLengthExtraBytes cyclic import fix
- PyBitmessage should launch now when there's no keys.dat
7 years ago
Peter Šurda 8cb0953401
Moved writeKeysFile into configparser
- shared.writeKeysFile -> BMConfigParser().save
- makes it easier to get rid of circular imports
7 years ago
Peter Šurda bd520a340f
Trustedpeer fix and more refactoring
- fixed trustedPeer (thanks to anonymous bug reporter)
- moved trustedPeer and Peer into state.py
7 years ago
Peter Šurda fa0a3135e7
Fixes pointed out by landscape.io
- missing/wrong/obsolete imports
- logger formatting
7 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)
7 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
7 years ago
Peter Šurda d35062b49c
Half-open connection limit warning fix
- it only should complain if on Windows and can't determine the Windows
  version
7 years ago
Louis-Guillaume DUBOIS afa715cf1b
Fixes #867 - Changes default time format to %c 7 years ago
mailchuck 8136b022bc Typos
Still regarding portable mode path fixes
8 years ago
mailchuck 5a45d7dd8f Portable mode fixes
Fixes Bitmessage#379, Bitmessage#341
8 years ago
Henrik Olsson 57575d0a39 Fix some typos
Author:    Henrik Olsson <henrik@fixme.se>
8 years ago
Jonathan Warren ba27f6e8a6 Made error message for Raspberry Pi users less serious-sounding 9 years ago
Jonathan Warren 9044e84093 some specifyTTL work completed 9 years ago
Jonathan Warren 50c392c197 resolve merge conflict 9 years ago
Yuri 34824c044e Moved all keys.dat writing code into writeKeysFile in shared.py 9 years ago
Jonathan Warren 0865e863ec Added ability to limit network transfer rate 9 years ago
Jonathan Warren c84cdecba4 Normalize the noncetrialsperbyte and payloadlengthextrabytes for each of the user's existing addresses 9 years ago
Jonathan Warren c306062282 Bitmessage Protocol Version Three 9 years ago
Jonathan Warren 38d7db24ad Merge pull request #639 from bpeel/wip/trusted-peer
Add a 'trustedpeer' option to keys.dat
10 years ago
Neil Roberts 03263156de Add a 'trustedpeer' option to keys.dat
If this option is specified in keys.dat then Bitmessage will connect
to the host specified there instead of connecting to the hosts in the
list of known nodes. It will also stop listening for incoming
connections and the timing attack mitigation will be disabled.

The expected use case is for example where a user is running a daemon
on a dedicated machine in their local network and they occasionally
want to check for messages using a second instance of the client on
their laptop. In that case it would be much faster to catch up with
the messages by directly downloading from the dedicated machine over
the LAN. There is no need to connect to multiple peers or to do the
timing attack mitigation because the daemon is trusted.

The host is specified as hostname:port. Eg, ‘192.168.1.8:8444’.
10 years ago
Daniel Kraft 6326147d6f Make reply below quote opt-in.
Add a new preference for 'reply below quote' and only use the new
quoting style if it is set.
10 years ago
Jonathan Warren 917e27c19b minor change to new function isOurOperatingSystemLimitedToHavingVeryFewHalfOpenConnections 10 years ago
Jonathan Warren c98ca590a8 Fix #566 10 years ago
Jonathan Warren bd2803bebc various changes to 'messages expire' pull request 10 years ago
Jonathan Warren f7ef2b4e05 various changes to Identicon code 10 years ago
Jonathan Warren 753155aa86 Merge branch 'feature/Identicons' of git://github.com/sendiulo/PyBitmessage into sendiulo-feature/Identicons 10 years ago
ikarakatsanis 9066dad5e3 AQWA feature: UI setting for Bitmessage to stop trying to send messages after X hours/days/months 10 years ago
ikarakatsanis c16d9787d2 feature1_v3_AQWA 10 years ago
ikarakatsanis d487b522cf feature_v1 10 years ago
ikarakatsanis e1fc820226 changes in keys.dat, edit hours/days/months is working now, variable time_period inserted 10 years ago
Jonathan Warren 6081863b28 raise default demanded difficulty from 1 to 2 10 years ago
sendiulo aed489a2bc Merge branch 'upstream/master'
Conflicts:
	src/bitmessageqt/__init__.py
	src/bitmessageqt/bitmessageui.py
	src/bitmessageqt/settings.py
	src/bitmessageqt/settings.ui
	src/helper_startup.py
10 years ago
sendiulo a58164d831 - additional identicon type "empty" if you want to have a placeholder
- place image named 'default.*' to display a generic user icon as fallback
- place image named '[Broadcast Subscribers].*' to set the icon for broadcasts
10 years ago
Jonathan Warren 0d5f2680d4 various modifications to previous commit regarding ability to select language 10 years ago
sendiulo 6c20d83edc Merge branch 'upstream/master'
Conflicts:
	src/helper_startup.py
10 years ago
Jonathan Warren 1b5158d658 refactored helper_startup.py so that it can make use of a pre-set shared.appdata variable 10 years ago
Jonathan Warren 82db79ca39 removed option from previous commit which allowed user-settable maximum network message size pending further discussion 10 years ago