Commit Graph

344 Commits

Author SHA1 Message Date
Kashiko Koibumi
c59b9e6df1
fix bug on dandelion specific with Python3 2024-05-31 13:17:17 +09:00
Kashiko Koibumi
13c5e676e2
fix user agent format on debug log 2024-05-31 02:59:54 +09:00
Kashiko Koibumi
6bb138e483
use hexlify() to display hash ID 2024-05-31 02:31:41 +09:00
Kashiko Koibumi
4702dd2593
fix TLS configuration bug 2024-05-31 00:49:37 +09:00
Kashiko Koibumi
0ff6b43d6e
fix imports 2024-05-30 21:19:16 +09:00
Kashiko Koibumi
35abdf204a
Merge branch 'v0.6' into py3 2024-05-30 18:38:31 +09:00
Kashiko Koibumi
822b90edaa
fix to connect with TLS in Python3 2024-05-28 13:54:58 +09:00
Kashiko Koibumi
c3d083d142
Merge branch 'memoryview' into py3 2024-05-28 13:41:44 +09:00
Kashiko Koibumi
10e5563d45
misc fixes to run with Python3; part 3 2024-05-28 13:40:17 +09:00
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
anand k
a209d65a26
Moved dandelion runtime var from state to network->dandelion 2024-05-27 09:20:21 +05:30
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
4309cb3699
use buffer() in Python2 and use memoryview in Python3 2024-05-26 13:27:43 +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