Commit Graph

41 Commits

Author SHA1 Message Date
a28eb6898b
Extend bmconfigparser.BMConfigParser.addresses() by a sort kwarg,
remove getSortedAccounts() in bitmessageqt.account.
2022-10-19 16:03:57 +03:00
ae5a264df0
Update BMConfigParser and add test to enable/disable identity 2022-05-19 13:29:31 +05:30
7d2b13e4ac
Format bmconfigparser:
- remove meaningless comments, rename strange args, fix line lengths,
  - revert BMConfigParser.addresses() entanglement,
  - revert BMConfigParser read_file -> readfp alias.
2022-02-21 18:46:37 +02:00
161a0b2059
Return use of BMConfigParser._temp dict,
also empty _temp in BMConfigParser._reset().
2022-02-21 18:38:47 +02:00
a5773999fe
Refactor BMConfigParser as a Module variable 2022-02-15 17:12:43 +05:30
ea16d6fefa
Override the pylint checks 2022-01-25 13:04:18 +05:30
9ba26cacae
Updated pylint ignore comments 2021-09-28 21:11:45 +05:30
a3dceb8b3e
Reformated _reset method placement, Fixed pylint issues & reverted pylint ignore comment delete changes 2021-09-28 20:44:32 +05:30
4f9593a553
Added readfp function for python3, updated StringIO & readfb based changes in setUp, teadDown and test_reset functions 2021-09-28 15:56:21 +05:30
14f1c15945
Fixed test_config.ini file path error 2021-09-28 15:56:20 +05:30
aa955acf04
added testcase for _reset()
skip python 3

ported to python 3, fixed deprecation warnings

Fixes: #1754

fixed absolute imports

corrected test for _reset()

few changes

fixed some issues in test_reset() & bmconfigparser

fixed code quality

modified test case for _reset()

fixed test case of _reset() for py3

fixed compatibilty with python2

fixed code quality

changed _reset test

added test_config file & fixed test case for reset()

fixed for python3

removed pdb

few changes

added config dict

fixed code quality

fixed code quality

fixed code quality

fixes for focal & bionic build error

added print thread name

commented test_reset()

added some print to debug, will remove later

fixed code quality

added setUp & tearDown method

added docstring

modified code

fixed code quality

modified setUp() & tearDown() method

few changes in tearDown()

cleaned code

Added PEP8 imports blank line & moved test_config.ini to test_pattern folder
2021-09-28 15:56:20 +05:30
4a2222aacd
Updated code quality base except warning code changes in class_singleCleaner.py and added test for safeGetFloat in bmconfigparser.py
Added BMConfigParser.safeGetFloat method, updated BMConfigDefaults & added specific exceptions

Added test for safeGetFloat, removed float parsing & updated logger warning

Reverted get to safeGetFloat changes
2021-09-08 13:48:59 +05:30
cis
eb85efe3e5
pybitmessage kivy app test cases and test script 2021-07-20 15:06:27 +05:30
bb144d78f6
Reverting some strange logic and formatting. Insted use six
- to replace basestring with compatible type
  - for unified configparser import
2021-05-02 18:15:08 +03:00
49f9620236
Add sqlite functions while versioning 2021-04-26 18:30:55 +05:30
06cab993d9
Fix configparser import error 2021-04-01 21:06:22 +05:30
8ff8e0e2cb
Make it possible to disable UDP announcing in settings 2021-02-22 19:56:23 +02:00
96a784b58b
Merged PeterSurda/teardown-test1:
- reset BMConfigParser before reading config file
  - enable threads name check on posix systems
  - check singleton.lock in TestProcessProto.setUpClass()
2020-11-03 17:14:00 +02:00
lakshyacis
6f35da4096
Imported packages sequencing and formatting 2020-01-30 12:14:40 +05:30
lakshyacis
3211fca953
formatting and shorten line length 2020-01-22 15:55:26 +05:30
lakshyacis
b6a81f1252
Formatting and fix License 2020-01-15 16:17:26 +05:30
lakshyacis
77b8b5aa42
bmconfigparser quality fixes 2019-11-25 10:41:56 +05:30
c63ed02153
Minimal changes to document Singleton and class definitions it wraps 2019-10-18 01:06:03 +03:00
24ae91ad0a
Set dontconnect temporary, completely avoiding saving 2019-09-20 14:31:52 +03:00
31f107f048
flake8: bmconfigparser 2018-05-18 13:55:00 +03:00
cec8519e43
Added "apiinterface" and "apiport" to BMConfigDefaults 2018-03-22 17:50:26 +02:00
fd1a6c1fa1
Dandelion update
- dandelion fixes
- try to wait as long as possible before expiration if there are no
outbound connections
- expire in invThread rather than singleCleaner thread
- deduplication of code in inv and dinv command methods
- turn on by default, seems to work correctly now
- turn off dandelion if outbound connections are disabled
- start tracking downloads earlier, and faster download loop
- remove some obsolete lines
- minor PEP8 updates
2018-02-03 11:46:39 +01:00
6ce86b1d0a
Dandelion++ implementation
- untested, some functionality may be missing, don't turn on
- also, it randomises upload of requested objects
- affects #1049
2017-09-25 01:17:04 +02:00
6c695c8ac7
Remove non-asyncore network code (partial) 2017-08-09 17:36:52 +02:00
0b07b1c89a
Peer discovery updates
- allow loopback addresses, now you can bind different loopback IP
addresses on a single system and they will auto-cross-connect
- always listen for discovery on 0.0.0.0
- [network] - bind now also applies for the TCP socket as well as UDP
socket
- closing socket iterator fix
2017-08-09 17:34:47 +02:00
bdf61489ae
Allow multiple ReceiveQueue threads
- defaults to 3
2017-07-10 07:08:10 +02:00
f5a143d0b8
Config validator
- config options can have validators
- limit maxoutboundconnections to max 8
2017-06-27 13:19:12 +02:00
b9d60f8b41
Max known nodes configurable 2017-06-24 12:17:01 +02:00
2685fe29b1
Code quality improvements 2017-06-24 12:13:35 +02:00
6044df5adf
Optional storing of expired and off-stream objects
- a new config file option, network/acceptmismatch, allows the inventory
to store objects that expired or are from a stream we're not
interested in. Having this on will prevent re-requesting objects that
other nodes incorrectly advertise. It defaults to false
2017-06-02 15:43:35 +02:00
c85d52b8e8
Asyncore updates
- asyncore is now on by default
- inv announcements implemented
- bandwidth limit implemented / fixed
- stats on download / upload speed now work
- make prints into logger
- limit knownNodes to 20k as it was before
- green light fixed
- other minor fixes
2017-05-29 00:24:07 +02:00
f8b4b427fc
Asyncore update
- bugfixes
- UDP socket for local peer discovery
- new function assembleAddr to unify creating address command
- open port checker functionality (inactive)
- sendBigInv is done in a thread separate from the network IO
thread
2017-05-27 19:09:21 +02:00
d498f1c0ae
Configparser update
- add default values for maxdownload/uploadrate, asyncore
- rework error handler slightly
2017-05-24 16:49:16 +02:00
9f4a1fa0a4
Config file defaults and address unification
- bmconfigpaser.py now allows to put default values for a specific
option in the file
- addresses as sections are now detected by "BM-" rather than
just ignoring bitmessagesettings. There can now be other sections
with a cleaner config file
2017-05-15 12:18:07 +02:00
7ebe837eb0
Make some network parameters configurable
- maxtotalconnections = maximum number of total full connections
  (incoming + outgoing) the node will allow. Default 200 as it was.
- maxbootstrapconnections = number of additional (to total) connection
  that will act in bootstrap mode, closing after sending the list of
  addresses. Default 20 as it was.
- maxaddrperstreamsend = initial address list maximum size, per
  participating stream. Default 500. Child streams get half. The
  response is chunked into pieces of max. 1000 addresses as that's the
  protocol limit.
2017-02-26 17:46:02 +01:00
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
2017-02-22 09:34:54 +01:00