Commit Graph

293 Commits

Author SHA1 Message Date
487eab6f78
fix conflicts after merging 2020-06-10 15:46:16 +05:30
lakshya
3f773c78f7
setting, openssl and bmproto quality fixes 2020-05-28 13:43:03 +05:30
d15e614bb1
Fix streams decoding in BMProto.bm_command_version() 2020-05-22 12:58:04 +03:00
navjot
58c4875ae0
worked on making python3 android app compitable 2020-05-12 16:34:12 +05:30
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
navjot
0f6c056bb7
fixed flake8 and pylint issue 2020-04-17 19:39:27 +05:30
navjot
5b3e9aaa14
fixed code quality for flake8, pylint and pycodestyle 2020-04-17 17:26:05 +05:30
jai.s
76555b1aa7
Solved SSL issue 2020-04-04 21:38:50 +05:30
lakshyacis
6650876b57
quality fixes after pull 2020-03-18 16:28:33 +05:30
jai.s
be178f23ae
Solved inventory issue 2020-03-18 15:26:02 +05:30
jai.s
cb1f1962e8
Solved ackreceived issue 2020-03-02 18:43:56 +05:30
ade796c700
fixes after new merging PR #23 2020-02-19 16:31:42 +05:30
11bec55be5
Don't put addresses into queue
- attempt to fix #1598
- seems to work
- addresses won't be uploaded/announced anymore other than after connecting,
  Later I need to find out how to announce them without causing problems, but
  for the time disabling this seems an acceptable drawback
2020-02-05 20:41:36 +08:00
jai.s
ec618d9d1a
Solved sending message issues 2020-01-27 21:41:46 +05:30
jai.s
eb2b948576
Added changes for inventory and inbox issues 2020-01-27 21:36:24 +05:30
lakshyacis
6139efc377
Imported packages sequencing and formatting 2 2020-01-27 14:43:25 +05:30
lakshyacis
c613c6d439
pylint fixes 2 2020-01-21 17:43:09 +05:30
lakshyacis
fe3a98c2b6
unidiomatic-typecheck and logging-format-interpolation issue suprressed 2020-01-21 16:15:17 +05:30
lakshyacis
1decaad156
invalid syntax pylint issue resolve 2020-01-21 15:38:12 +05:30
lakshyacis
26d75d99fd
Logging and modules issues fixes 2020-01-20 19:57:58 +05:30
lakshyacis
4d385a9c79
Code quality issues fixes 2020-01-20 18:59:51 +05:30
lakshyacis
8e6c2f3cfd
Kivy database and safegetint issues 2020-01-18 17:13:06 +05:30
jai.s
6b1abe7048
Updated origin by upstream 2020-01-15 12:26:23 +05:30
jai.s
480fc9b2e8
Fixed Inventory issue 2020-01-10 21:10:10 +05:30
lakshyacis
882aa9d970
remove useless code 2020-01-10 20:10:47 +05:30
lakshyacis
eb98abbabf
Code Formatting 2020-01-10 19:46:15 +05:30
jai.s
5ff6c26efc
Solved python3 database issue and now network connection created via using the python3 db 2020-01-10 19:06:21 +05:30
lakshyacis
f0bc74e658
Network fixes 2020-01-10 16:51:17 +05:30
jai.s
706ec5991e
Updated the branch by origin and added changes on the knownNodes file 2020-01-10 15:21:01 +05:30
jai.s
5a8fbbe429
Solved person-to-person,brodcast,publickey,objects In network section via using the python2 database 2020-01-08 17:13:55 +05:30
lakshyacis
81872c7f2f
network code quality fixes 2020-01-08 12:53:04 +05:30
lakshyacis
e436b8ecf6
commit after conflicts 2020-01-06 16:44:13 +05:30
lakshyacis
69eedf7bc2
network files fixes python3 2020-01-02 16:25:52 +05:30
03316496b7
Stop UDPSocket on socket.error 101 (Network is unreachable) 2019-12-24 12:41:01 +02:00
jai.s
9b1088b2e2
updated origin with upstream changes 2019-12-23 16:48:37 +05:30
jai.s
d8d57024db
Added new changes for the network issue 2019-12-07 20:07:35 +05:30
a69732f060
Addrthread finish
- addrthread is supposed to spread addresses as they appear. This was never
  finished during migration to asyncore
- conservative to prevent flood and loops
- randomises order
- move protocol constants into a separate file
- move addr packet creation into a separate file
- see #1575
2019-11-30 13:47:24 +01:00
jai.s
ded1defb1f
Worked on network issue and stopped the udp connection aand required the select's epoll condition and instead used select pollar method 2019-11-30 13:18:15 +05:30
2a165380bb
Restrict outbound connections on network groups
Logic borrowed from bitcoin, see CNetAddr::GetGroup() in src/netaddress.cpp
Simplified, so may not work fully identically but for our purposes it's good
enough. Won't connect to more than one host from a /16 subnet on IPv4 and a /32
subnet on IPv6.
2019-11-18 12:20:29 +01:00
jai.s
0e593b66ad
Added iteritems issues 2019-11-15 20:12:19 +05:30
jai.s
a08b0707bb
Working on the network issues 2019-11-15 16:01:14 +05:30
jai.s
fdbf7ad0f2
Worked on the network issues 2019-11-14 20:39:26 +05:30
d6c1845b71
Moved Peer from state to network.node
and trustedPeer to network.connectionpool.BMConnectionPool attribute
2019-11-11 17:13:12 +02:00
7a1f803c92
network.BMConnectionPool: added shortcuts connections()
and establishedConnections(), some formatting fixes
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
George McCandless
b42f536d23
Add a checkbox to the network settings tab that allows restricting outbound connections to onion services (i.e., hosts that end with '.onion'). 2019-10-21 00:03:41 +00:00
bbdbca253b
Added warnings about changing port settings in api and network.tcp 2019-10-18 09:35:31 +03:00
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