Commit Graph

399 Commits

Author SHA1 Message Date
anand k
a71b44e95c
moved dandelion_enabled from state to Dandelion class as enabled attr 2024-06-11 14:48:29 +05:30
anand k
e571ba8a51
Replaced state.streamsInWhichIAmParticipating with pool.streams 2024-05-15 09:21:37 +05:30
anand k
95af3a859b
Renamed dandelion flag to dandelion_enabled 2024-04-22 08:59:00 +05:30
anand k
5faef8d40e
moved inventory in state - global runtime variable from singleton 2024-04-19 08:21:19 +05:30
e4488ba370
Move loading cryptors into objectProcessor init. 2023-10-19 16:23:15 +03:00
6b90332730
Pass config and state to network.start(),
don't import announcethread in the network init, use dotted imports,

work around too-many-locals pylint warning
2022-09-17 04:19:42 +03:00
a3d0e24623
Move start of network threads to the network package,
reduce exported symbols and imports. Remove unused thread variables from state.
2022-09-17 04:19:42 +03:00
78e16e61a0
Build tests into the windows bundle if DEBUG=True is set in pyinstaller spec 2022-08-07 17:36:21 +03:00
a5773999fe
Refactor BMConfigParser as a Module variable 2022-02-15 17:12:43 +05:30
Marius Kjærstad
584ea0f6a0
Changed copyright year to 2022 2022-01-17 18:11:23 +01:00
9a194f0bae
Added statusBar, getAllInboxMessages, getAllInboxMessageIds, getInboxMessageById, getInboxMessagesByReceiver, trashMessage, trashInboxMessage & addSubscription, methods testcases & updated related functions 2021-12-02 19:11:35 +05:30
083451c8ac
Move _fixSocket from bitmessagemain to helper_startup,
so it can be used in test_networkgroup.
2021-09-05 15:09:05 +03:00
d872a23ae3
Update obsolete file() calls in bitmessagemain 2021-08-27 14:18:39 +03:00
8ff8e0e2cb
Make it possible to disable UDP announcing in settings 2021-02-22 19:56:23 +02:00
e77238fa07
Support tox and request more warnings:
- make separate tests runner - tests.py; python setup.py test still works
  - tox.ini with coverage config
  - -b: issue warnings about comparing bytearray with unicode
  - export PYTHONWARNINGS=all on stage install
2021-02-18 17:12:43 +02:00
d05255625b
Universal pathmagic returns app dir; activated in setup for python3 2021-02-17 17:11:25 +02:00
6029ec85b6
Add python 3.7. Use general shebangs in scripts to test with python3;
Use 2.7_with_system_site_packages for python2 to run qt tests
as suggested in Travis doc instead of bypassing virtualenv by shebang.
2021-02-17 17:11:24 +02:00
d36e7615a9
remove kivy specification file along with component changes of version from upstream 2021-02-09 19:59:40 +05:30
6ffb912f2a
detach kivy version from upstream 2021-01-16 23:11:19 +05:30
84b5f2982c
Allow running pybitmessage -t without tests package 2020-11-04 14:25:21 +02:00
2142888cbe
Inherited APIError from xmlrpclib.Fault.
From now on any errors are raised.
2020-09-14 13:11:42 +03:00
d56191ebba
Move knownnodes module into network package 2020-07-21 16:21:43 +03:00
d6953eb450
New package: bitmessageqt.tests
any test cases from it will be added to tests.core test suite if possible,
e.g. PyQt is functional. TestSupport - minimal test case for support module
to reproduce #1633.
2020-06-15 12:06:31 +03:00
d09782e53d
Obsolete bitmessagemain.connectToStream(), use BMConnectionPool method 2020-05-05 17:30:31 +03:00
185ad66ea5
Moved most of variables from shared elsewhere (mostly to state) 2020-05-05 17:27:38 +03: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
5160a68c28
Moved start_proxyconfig to helper_startup;
no more prints in helper_startup
2020-01-04 14:28:45 +02:00
sandakersmann
9119507b03
Changed copyright year to 2020 2019-12-27 18:23:02 +01:00
lakshyacis
af52d95503
bitmessagemain quality fixes 2019-11-25 10:41:55 +05:30
388de96495
Alphabetical internal import order in bitmessagemain 2019-11-11 12:03:04 +02:00
341651973a
Reduced imports:
- exported from network package all objects used outside;
  - made all threads available in threads module.

Wrote some module docstrings.
2019-11-11 12:03:03 +02:00
7a89109fc9
New logging approach in order to reduce imports from submodules
and use logging without risk of circular import. Only subpackage
that imports from debug is bitmessageqt - because it also uses
debug.resetLogging().
Instead of from debug import logger is now recommended to use:

import logging

logger = logging.getLogger('default')

All subclasses of StoppableThread now have a logger attribute.
All threading related stuff except for set_thread_name()
was moved from helper_threading to network.threads.

Fixed two my mistakes from previous edit of debug in a1a8d3a:

 - logger.handlers is not dict but iterable
 - sys.excepthook should be set unconditionally
2019-10-18 09:35:24 +03:00
a7cfe5ba32
Try to test with tor 2019-09-25 18:55:01 +03:00
lakshyacis
cc869d0426
bitmessagemain flake8 Fixes 2019-08-29 16:13:27 +05:30
ec11632297
Introduce pluggable proxy configurators 2019-08-08 11:46:50 +03:00
2bd75b87bd
Use config = BMConfigParser() in bitmessagemain.Main 2019-08-06 18:59:13 +03:00
4b72a433c6
New config setting - extralowdifficulty to use for testing:
replaces shared.useVeryEasyProofOfWorkForTesting and automatically
applies to test-mode.
2019-04-22 11:32:29 +03:00
Marius Kjærstad
e0efb7fd2f
Merge branch 'v0.6' into v0.6 2019-03-23 15:14:56 +01:00
c38d250389
Resolved pylint warnings and removed allThreadTraceback() entirely 2019-03-11 16:08:41 +02:00
3ec798bcfb
helper_generic is obsolete 2019-03-11 16:08:41 +02:00
sandakersmann
8924d4be5c
Changed copyright year to 2019 2019-02-05 15:16:30 +01:00
ca567acab3
Put uploads into a separate thread
- instead of being processed in the ReceiveQueue thread, uploads are now done
  in a dedicated thread. Only the parsing is done in ReceiveQueue thread.
- the UploadThread is modelled based on the DownloadThred, but simpler.
- it checks for intersection attack, eliminates duplicates and restricts the
  write buffer size to 2MB (may still grow slightly higher if too many big
  objects are requested, but the absolute limit appears to be about 4.5MB in the
  worst case scenario).
- the restriction of the write buffer may cause some upload throttling (to
  about 2MB per second per connection), but can be optimised later
- fixes #1414
2018-12-20 20:34:01 +01:00
0e63392ee3
Fix #1385: not check for pyqt if daemon = true set in config 2018-11-04 15:16:56 +02:00
5572e6b3a1
Suppress pylint warning about 'relative import' 2018-10-22 17:18:24 +03:00
daf556ca50
Added tests for knownnodes:
- import of pickled knownnodes;
  - default knownnodes if nothing imported;
  - knownnodes starvation (#1335), demanded changes in networkthread.
2018-10-22 17:18:24 +03:00
a3300ba8f1
A test case for core (which will be ran in main thread) 2018-10-22 17:18:23 +03:00
51df0507e2
Fixed signal files creation 2018-10-22 17:18:23 +03:00
5b1d2e56a1
Changes into test mode:
run in background, stop after 30 sec since last API response
2018-10-22 17:18:22 +03:00