Commit Graph

29 Commits

Author SHA1 Message Date
Kashiko Koibumi
97c9b7eaf6
Revert "run autopep8 on src"
This reverts commit 24b83aae2a.
2024-05-17 11:51:14 +09:00
Kashiko Koibumi
24b83aae2a
run autopep8 on src 2024-05-17 01:53:27 +09:00
Kashiko Koibumi
1b3ce71f19
use bytes for key of hashtable in replacement of hexlified string 2024-05-16 23:45:10 +09:00
Kashiko Koibumi
6a090e802e
fix some bugs related to the migration to Python3
Now getpubkey and one-to-one messaging works.
2024-05-16 02:56:36 +09:00
Kashiko Koibumi
cdbe5f80e2
fix exception from network status 2024-05-15 12:41:50 +09:00
Kashiko Koibumi
4f0e34b4be
make message sending work in Python 3 2024-05-15 11:50:38 +09:00
Kashiko Koibumi
741f8dd461
fix some parts of inventory syncing
Remained works:
* Objects are not saved.
* Decryption does not work.
* Can not shutdown.
2024-05-14 23:28:16 +09:00
Kashiko Koibumi
057e856925
try to migrate to Python3 + PyQt6; part 2
TLS is disabled
2024-05-13 12:47:42 +09:00
Kashiko Koibumi
6dfecbe361
try to migrate to Python3 + PyQt6 2024-05-13 08:06:24 +09:00
anand k
95af3a859b
Renamed dandelion flag to dandelion_enabled 2024-04-22 08:59:00 +05:30
anand k
1c8ae8fef3
moved Dandelion in state - global runtime variable from singleton 2024-04-21 22:40:19 +05:30
93c283a467
Place obvious bandit nosec comments 2022-05-02 18:00:55 +03:00
lakshyacis
f0bc74e658
Network fixes 2020-01-10 16:51:17 +05:30
d2a896697d
Used logger.isEnabledFor() to prevent unneeded calculations 2019-10-18 09:35:31 +03: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
lakshyacis
b927d51eb3
dandelion.py pylint fixes 2019-09-02 13:53:06 +05:30
2998599442
Docstrings in network from #1401 2019-07-26 12:08:18 +03:00
996e71ae6f
flake8 in network package 2019-07-26 12:07:57 +03:00
0eb4f46923
Formatting based on review 2019-07-11 15:32:00 +02:00
465a276c02
Dandelion fixes
- expiration wasn't handled correctly
- objects with no child stems never expired. While this is better for
  anonymity, it can cause objects getting stuck
- upon expiration the nodes weren't marked as not having the object, causing it
  to not be advertised
- I haven't tested it but at least I don't think can make things worse
2019-07-11 11:03:48 +02:00
066b419e16
Bugfixes
- typo in dandelion
- stealth ackdata fix for broadcasts and mailing lists
2018-02-09 00:49:08 +01:00
08bb85a952
Dandelion staticmethod fix 2018-02-07 17:22:26 +01:00
3d1fa473fb
Dandelion updates
- expiration now uses poisson distribution just like in the bitcoin
version
2018-02-06 22:28:56 +01: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
3aa6f386db
Dandelion fixes
- dandelion would always think there is a cycle and trigger fluff
- cycle fluff trigger didn't correctly re-download and re-announce the
object. Now it remembers between (d)inv and object commands that it's
in a fluff trigger phase.
2017-11-18 09:47:17 +01:00
2d34e73648
Dandelion updates
- fixes and feedback from @gfanti and @amiller
- addresses #1049
- minor refactoring
- two global child stems with fixed mapping between parent and
child stem
- allow child stems which don't support dandelion
- only allow outbound connections to be stems
- adjust stems if opening/closing outbound connections (should
allow partial dandelion functionality when not enough outbound
connections are available instead of breaking)
2017-10-20 01:21:49 +02:00
333170b172
Dandelion fixes
- more exception handling
- only use outbound connections for stems
(thanks to @amillter for info)
- don't create stems if config disabled
- addresses #1049
2017-10-06 16:33:44 +02:00
b1442ecb0a
Dandelion fixes and updates
- also, randomise the item order in an inv/dinv command
2017-09-30 13:42:04 +02: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