Commit Graph

333 Commits

Author SHA1 Message Date
Kashiko Koibumi
0fa71f26e3
Merge branch 'openssl3' into py3 2024-05-28 13:18:54 +09:00
Kashiko Koibumi
df2631c4ee
misc fixes to run with Python3; part 2 2024-05-28 12:58:40 +09:00
Kashiko Koibumi
5fa08f4b3b
misc fixes to run with Python3 2024-05-28 00:12:27 +09:00
Kashiko Koibumi
5ccfd520b8
Merge branch 'bytes-key' into py3 2024-05-27 00:09:56 +09:00
Kashiko Koibumi
a4c4338190
use bytes() on keys to be hashable in Python3 2024-05-26 23:38:41 +09:00
Kashiko Koibumi
ba49d3289d
use binary literals for compatibility to Python3 2024-05-26 12:05:31 +09:00
Kashiko Koibumi
e0c2976a17 Merge branch 'six' into py3 2024-05-26 11:21:23 +09:00
Kashiko Koibumi
d4bb580ab1
fix importing collections for Python3 2024-05-26 11:17:30 +09:00
Kashiko Koibumi
4ee9986687
Merge branch 'six' into py3 2024-05-26 10:18:08 +09:00
Kashiko Koibumi
a11df0c583
use six.moves 2024-05-26 09:50:42 +09:00
Kashiko Koibumi
21a7bdba44
use six.int2byte(), six.byte2int, six.BytesIO 2024-05-25 12:27:32 +09:00
Kashiko Koibumi
46d56c703e
use six.itervalues(), six.iteritems() 2024-05-25 11:39:46 +09:00
Kashiko Koibumi
f70aff617b
use import paths compatible with both Python2 and Python3 2024-05-24 12:42:29 +09:00
Kashiko Koibumi
f181b85d97
replace all of arg() occurrences to format() 2024-05-22 17:14:00 +09:00
Kashiko Koibumi
72ba0b6bc1
make runnable with OpenSSL 3 in addition to other versions 2024-05-20 17:26:06 +09:00
anand k
e571ba8a51
Replaced state.streamsInWhichIAmParticipating with pool.streams 2024-05-15 09:21:37 +05:30
anand k
657c1de16b
Remove state.shutdown or replaced with self._stopped from some network thread 2024-05-13 07:23:11 +05:30
anand k
28355d70c7
Made BMConnectionPool as global runtime variable in connectionpool from singleton 2024-05-09 19:53:54 +05:30
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
anand k
5faef8d40e
moved inventory in state - global runtime variable from singleton 2024-04-19 08:21:19 +05:30
3ed84a5863
Start adding hashes with double SHA512 2024-04-13 03:17:39 +03:00
c7a3bfacfa
Move randomBytes to highlevelcrypto 2024-04-12 15:46:32 +03:00
13d090e344
Use protocol.decodeObjectParameters() for sending ACK - put it in the inventory 2024-04-05 00:38:30 +03:00
95659b6f6c
Fix bandit comments:
- suppress B301 in the single place where it appears,
  - fix placement of B607, B603 in proofofwork and B324 in bitmessagekivy.
2024-03-06 13:59:13 +02:00
anand-skss
6a33fe58e1
Code Quality 2024-03-04 15:37:03 +00:00
anand-skss
d33959defc
Code Quality 2024-02-29 17:49:43 +00:00
anand-skss
c734ac7b5f
Code Quality 2024-02-28 15:42:37 +00:00
anand k
dd64a7b507
Code Quality 2024-02-28 07:23:55 +05:30
anand k
e5e0f43b42
Code Quality 2024-02-26 13:18:02 +05:30
b66dfcaebb
Cast time as int before assembling addr message 2023-11-25 17:18:42 +02:00
0c07bb6257
Move all the network constants into the protocol, define also magic.
Closes: #1788.
2023-11-25 17:18:42 +02:00
b99670430f
Emphasize more magic imports in the network package 2023-11-25 17:18:42 +02:00
7f376b0203
Move the contents of network.assemble to protocol 2023-11-25 17:18:11 +02:00
8e46aecfb0
Fix closing inbound connections if sendoutgoingconnections is False 2023-09-18 15:42:26 +03:00
55b92dffbb
Wrap import of BMConnectionPool and AnnounceThread into try: .. except:
for partial testing on python3.
2022-09-17 04:19:43 +03:00
8fc42b758d
Make network insensitive to absence of onionhostname config option 2022-09-17 04:19:43 +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
72fc95b806
Fix filter in TCPConnection.sendAddr() preventing from sending IPv6 addresses 2022-08-30 17:22:53 +03:00
eb5f791cb6
Finalize invalid stream handling:
- prioritize the check for invalid stream
 - use BMObjectInvalidError exception, remove unused classes
2022-08-01 00:19:40 +03:00
69e540b504
Define stream number validity 2022-07-31 19:54:37 +08:00
bb7d8018c6
Fix handling of objects from unwanted streams 2022-07-31 19:27:05 +08:00
93c283a467
Place obvious bandit nosec comments 2022-05-02 18:00:55 +03:00
a5773999fe
Refactor BMConfigParser as a Module variable 2022-02-15 17:12:43 +05:30
4302126b6c
kivy porting to python3 phase1 2021-11-11 09:58:02 +05:30
ec52d2dae6
Added ignore comments for bare except warnings 2021-10-06 12:35:46 +05:30
a7d6037fc5
Minimal useragent validation 2021-09-05 17:47:37 +03:00
ef01b56291
Updated binary operator line break code quality changes 2021-08-20 13:33:59 +05:30
f9c49fbeb3
Import queue from six.moves in the top level module 2021-07-28 14:33:41 +03:00