Commit Graph

2478 Commits (b6a81f1252531ff6ebe5b6563e6f17778f905eba)

Author SHA1 Message Date
lakshyacis 7eced454d1
http flake8 fixes 4 years ago
lakshyacis 68e09a5e30
http-old pylint fixes 4 years ago
lakshyacis 5fcb7fc05e
http-old flake8 fixes 4 years ago
lakshyacis d8ea0afe40
downloadthread.py Pylint fixes 4 years ago
lakshyacis 8589f01d3d
downloadthread.py flake8 fixes 4 years ago
lakshyacis b927d51eb3
dandelion.py pylint fixes 4 years ago
lakshyacis f1b6b16940
connectionpool.py pylint fixes 4 years ago
lakshyacis 5521c16478
bmproto pylint fixes 4 years ago
lakshyacis 469d289a97
Announcethread Pylint Fixes 4 years ago
lakshyacis 548fcf0d0a
announcethread Flake8 Fixes 4 years ago
lakshyacis b48197ff0d
build_osx file flake8 Fixes 4 years ago
lakshyacis cc869d0426
bitmessagemain flake8 Fixes 4 years ago
Peter Šurda 395fbcd0f0
Add intermediary tests
- primitive serialisation (BN_bn2bin and ctypes) used in intermediary tests
4 years ago
Peter Šurda b934c4e01e
Minor refactoring to separate objects 4 years ago
Peter Šurda 076aeaa19f
Import path changes as requested 4 years ago
Peter Šurda 2e0f7755c6
Blind signature support in pyelliptic
- add blind signature functionality to pyelliptic as described in #1409
- add tests for blind signatures
- PEP8 fixes for pyelliptic
- some minor refactoring is necessary for further integration, this is just a
  minimal implementation to pass a test
4 years ago
Dmitri Bogomolov f180b1a5b0
Moved randomtrackingdict to network, it's used only there 4 years ago
Dmitri Bogomolov 709e194347
Fix #1504 (regression introduced in 0c1e516) 4 years ago
Dmitri Bogomolov e8bd427b9f
flake8 for bitmessageqt.safehtmlparser (with docstrings from #1368) 4 years ago
Dmitri Bogomolov 97366ede73
Do not save hidden service parameters if onionhostname is set 4 years ago
Dmitri Bogomolov 53d77ce911
Dumb tor configurator using stem 4 years ago
Dmitri Bogomolov ec11632297
Introduce pluggable proxy configurators 4 years ago
Dmitri Bogomolov 2bd75b87bd
Use config = BMConfigParser() in bitmessagemain.Main 4 years ago
Dmitri Bogomolov d8d76ed42d
No random.seed() in protocol.assembleVersionMessage() 4 years ago
Dmitri Bogomolov ad2a2b3fb4
Inherit helper_threading.StoppableThread from threading.Thread
and do random.seed() in its __init__
4 years ago
Dmitri Bogomolov a7a634be1b
Add self peers with rating 1 4 years ago
Dmitri Bogomolov 92c0196887
Add self peer into knownnodes if detected external IP with UPnP 4 years ago
Dmitri Bogomolov 668a73abf6
Fixed my mistake in knownnodes, in ef54bca 4 years ago
Dmitri Bogomolov ea5c447ea4
protocol: replace missing state.extPort by 'extport' setting
Fixes #1497
4 years ago
Dmitri Bogomolov c5ce2e36d5
shared.extPort is obsolete 4 years ago
Dmitri Bogomolov 9992626438
Fix API command 'shutdown' 4 years ago
Dmitri Bogomolov ae76d369f2
A test for API command 'shutdown' 4 years ago
Dmitri Bogomolov 27e74a15d7
flake8: network.connectionchooser 4 years ago
Dmitri Bogomolov 67d14f9e73
Docstrings in network.bmproto from #1362 4 years ago
Dmitri Bogomolov bbab0010e6
Moved a test script from network.tcp to tests.core 4 years ago
Dmitri Bogomolov 391b5ded87
Docstrings in network from #1368 4 years ago
Dmitri Bogomolov 2998599442
Docstrings in network from #1401 4 years ago
Dmitri Bogomolov 19ab56a979
network.connectionpool: get any setting with .safeGet.. 4 years ago
Dmitri Bogomolov 996e71ae6f
flake8 in network package 4 years ago
Peter Šurda 0eb4f46923
Formatting based on review 4 years ago
Peter Šurda 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
4 years ago
Dmitri Bogomolov e07cd1462e
Added address menu plugins to each popup menu except for Blacklist,
closes #819
4 years ago
Dmitri Bogomolov e6f3e52014
qrcode plugin: added address label and adjusted formatting 4 years ago
Dmitri Bogomolov 8b065d2e57
Fix unwanted AttributeError in messagetypes 4 years ago
Dmitri Bogomolov c9bc97f4b2
Set status icon color to yellow if last inbound connection is lost 4 years ago
surbhi ff020c5192
fix windows header files api issue 4 years ago
Dmitri Bogomolov f7e1601185
flake8 imports in blacklist 4 years ago
Dmitri Bogomolov fbf5bcc74c
Blacklist object has no .statusBar() method - use UISignalQueue.put() 4 years ago
Dmitri Bogomolov 38e5d93272
Resend onionpeer object if it expired while the node ran 4 years ago
Dmitri Bogomolov a5300e8584
Took into account pylint undefined-loop-variable warnings 4 years ago
Dmitri Bogomolov 0c1e516921
Implemented folder and widget args in propagateUnreadCount(), removed the rest 4 years ago
Dmitri Bogomolov ffdd91b021
Fixed propagateUnreadCount() result when having unread messages in trash 4 years ago
Dmitri Bogomolov 29f9cd9545
Handle bad trustedpeer setting 4 years ago
Dmitri Bogomolov f868c1ad11
Fixing my bug in 453e045 4 years ago
Dmitri Bogomolov d0d0b2ec84
Insert exactly 16 bytes of encoded remote host name into version message 4 years ago
Dmitri Bogomolov df16f5047c
Cleanup the translation project 4 years ago
Dmitri Bogomolov 3e800c72a0
Fix ternary operator use to translate "Copy subject to clipboard" 4 years ago
Dmitri Bogomolov 828f4d207f
Subject appeared to be str 4 years ago
Dmitri Bogomolov 4a097e99b3
Fixes for @omkar1117 4 years ago
Dmitri Bogomolov 581c8ee087
Style fixes and pylint hint in inventory 4 years ago
Dmitri Bogomolov 01d4fbe60b
Resolved pylint warnings 4 years ago
Dmitri Bogomolov 453e045ae5
Minimal implementation of onionpeer object 4 years ago
Dmitri Bogomolov e3344ade59
Escape HTML in MessageList_SubjectWidget (fixes #1234) 5 years ago
Dmitri Bogomolov 38f36d7860
Added package fallback and suppressed pylint relative-import warning 5 years ago
Dmitri Bogomolov 0d7b3a3823
Suppressed pylint warnings in test_crypto 5 years ago
Dmitri Bogomolov e163137893
Added pycrypto fallback for RIPEMD160 hash function 5 years ago
Dmitri Bogomolov 7b9824afc9
Separate method for stopping the bitmessage process and new test case
for settings in the generated config, which particularly checks that
extralowdifficulty settings are not applied to daemon.
5 years ago
Dmitri Bogomolov 4b72a433c6
New config setting - `extralowdifficulty` to use for testing:
replaces shared.useVeryEasyProofOfWorkForTesting and automatically
applies to test-mode.
5 years ago
Peter Šurda 23ca9c8c6b
PyOpenCL compatibility fix
It looks like PyOpenCL obsoleted the enqueue_read_buffer method, and
enqueue_copy should be used instead. Even though enqueue_copy already exists
with the earliest version of PyOpenCL I looked at, I wrote it in a
backwards-compatible way so that it doesn't break in case I missed something.

Tested on OSX in frozen mode, but it should be platform-independent.
5 years ago
Dmitri Bogomolov d2e4d068d4
Added the same "Send message to this address" item to subscription
context menu and ordered the menus in the same way.
5 years ago
Dmitri Bogomolov 34ceb98d34
Reused AccountMixin.accountString() in other methods of MyForm
and simplified manipulations with addressbook selection.
5 years ago
Dmitri Bogomolov 9a58af4de5
New method foldertree.AccountMixin.accountString():
composes the 'label <address>' string which is used in
MyForm.on_action_Send() instead of bare address.
5 years ago
Dmitri Bogomolov 5a9a2dd54c
Resolve pylint warnings 5 years ago
Dmitri Bogomolov 71e4c29419
"Send message to this chan" item in chan context menu (closes #1445) 5 years ago
sandakersmann 37489cf7fe
Changed http to https in about.io 5 years ago
sandakersmann fcc7a4e579
Update about.ui to 2019 5 years ago
Marius Kjærstad e0efb7fd2f
Merge branch 'v0.6' into v0.6 5 years ago
Dmitri Bogomolov acea683139
Test SIGTERM signal handling 5 years ago
Dmitri Bogomolov c38d250389
Resolved pylint warnings and removed allThreadTraceback() entirely 5 years ago
Dmitri Bogomolov f2d3b69bf8
Removed another copy of unused convertIntToString() from addresses 5 years ago
Dmitri Bogomolov 3ec798bcfb
helper_generic is obsolete 5 years ago
Dmitri Bogomolov 87bf2ac1f5
Handled pylint warnings (closes #1436) 5 years ago
Dmitri Bogomolov d1c601e7ae
Added an option to reply on own messages i.e. send update 5 years ago
Dmitri Bogomolov 7e1ee815b9
Rerender more widgets when deleting address by API 5 years ago
Dmitri Bogomolov e25fb857cb
Slightly reduced TCPConnection.sendAddr() and changed
in order to send only nodes with non-negative rating
5 years ago
sandakersmann 6d31578976
Revert 2019 back to 2017 in about.ui 5 years ago
sandakersmann 8924d4be5c
Changed copyright year to 2019 5 years ago
Dmitri Bogomolov 5e0d168db6
Do not show context menu on 'sent' folder
because the 'sent' table have no column 'read'
5 years ago
Dmitri Bogomolov ffbc09758c
Moved sslProtocolVersion and sslProtocolCiphers to network.tls 5 years ago
Dmitri Bogomolov b52cb9360f
Moved unused timeOffsetWrongCount from shared to BMProto 5 years ago
Dmitri Bogomolov 394c676ba2
Moved successfullyDecryptMessageTimings to class_objectProcessor 5 years ago
Dmitri Bogomolov c2a3b5faed
Removed unused varibles defined in shared:
alreadyAttemptedConnections*, needToWriteKnownNodesToDisk
5 years ago
Dmitri Bogomolov 3adadd398f
Removed from shared the functions duplicating protocol:
decryptAndCheckPubkeyPayload, isBitSetWithinBitfield
5 years ago
Dmitri Bogomolov 5b5ec2b63d
shared.connectedHostsList is obsolete 5 years ago
Peter Šurda 585b56cd2b
Fix logic
- thanks @g1itch!
5 years ago
Peter Šurda 4ad6401449
Logic error in download reset
- fix requesting the same object over and over again, now it continues to
  iterate through the other objects and only resets the queue after a timeout
  after the last received object
5 years ago
Peter Šurda c3939875d3
Fix repeated downloads
- a bug in RandomTrackingDict caused requesting to download the same objects
  over and over
- the bug is that the lastObject wasn't properly initalised, this caused the
  write buffer to fill with "getdata" requests until the first object was
  received
- this PR should address both the excessive bandwidth as well as excessive CPU
  usage during downloading
5 years ago
Justin Ramos 2f422d46c5
use /usr/local/opt/openssl symlink, ignore a.out 5 years ago
Peter Šurda 1cdbb90f22
Get rid of map 5 years ago
Peter Šurda 3a4eed0f8b
getdata performance optimisation
- reduce number of calls to time.time()
- no need to shuffle, that's done by the upload thread
- get rid of unused import
5 years ago
Peter Šurda 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
5 years ago
PyBitmessage Translations 2457643426
Auto-updated language ja from transifex 5 years ago
Dmitri Bogomolov e1d5604674
Fix #1408 (duplicate connections to some hosts), got from chan 5 years ago
PyBitmessage Translations 4e7cd784ad
Auto-updated language zh_cn from transifex 5 years ago
PyBitmessage Translations 328302f936
Auto-updated language eo from transifex 5 years ago
PyBitmessage Translations ee2b957296
Auto-updated language pl from transifex 5 years ago
Dmitri Bogomolov 38318150bd
Moved missingObjects dict from state to network.objectracker 5 years ago
GONQ b2af007280
PGP-signed spelling fix for the connection warning dialog. 5 years ago
coffeedogs 6d98a4ef44
Changes based on style and lint checks. (final_code_quality_17) 5 years ago
PyBitmessage Translations 881e523877
Auto-updated language zh_cn from transifex 5 years ago
coffeedogs 0a30eb0225
Changes based on style and lint checks. (final_code_quality_7) 5 years ago
Dmitri Bogomolov ea38e91839
Fixing namecoin button again (broken in c7d3784):
* separate method MyForm.resetNamecoinConnection() - sets MyForm.namecoin
    to fresh instance of namecoin.namecoinConnection, tests it and shows or
    hides "Fetch Namecoin ID" button;
  * that method is called when MyForm initializes and when settingsDialog
    instance is accepted;
  * namecoin.namecoinConnection.query() checks found address and always
    prepends it with display name, if query result doesn't contain "name"
    field it will be the query string.
5 years ago
Peter Šurda 8ad064dcac
Fix: Shift handling when deleting from Sent
Due to the way Qt.KeyboardModifiers works, treating it as an integer results in
unexpected behaviour. As a result, When deleting from Sent, it always deleted
rather than moved an item to trash, when selecting "Move to Trash" from the
context menu. This fixes it.
5 years ago
Dmitri Bogomolov 0e63392ee3
Fix #1385: not check for pyqt if daemon = true set in config 5 years ago
Dmitri Bogomolov 58bc170bda
Fix #1383 - formatting artifact in 7ed459b 5 years ago
Dmitri Bogomolov ae2cebb2a6
Minimal test for clientStatus consistency 5 years ago
Dmitri Bogomolov 9ef928b4a9
Removed extra call of shared.thisapp.cleanup() in bitmessageqt 5 years ago
Dmitri Bogomolov ff04bf072e
Allow re-call of MyForm.quit() if user selected to wait at first 5 years ago
Dmitri Bogomolov 4383b49be8
flake8 for bitmessageqt.MyForm.quit() 5 years ago
coffeedogs 10128b7560
Changes based on style and lint checks. (final_code_quality_2) 5 years ago
coffeedogs 78ddb2f2f2
Changes based on style and lint checks. (final_code_quality_12) 5 years ago
coffeedogs 0bceeca524
Changes based on style and lint checks. (final_code_quality_5) 5 years ago
coffeedogs c875769b15
Changes based on style and lint checks. (final_code_quality_3) 5 years ago
coffeedogs a72da271d5
Changes based on style and lint checks. (final_code_quality_1) 5 years ago
Dmitri Bogomolov 1c914d8cd8
flake8 and style correction for network.udp 5 years ago
Dmitri Bogomolov 625e83f4b4
Corrected style a bit 5 years ago
Dmitri Bogomolov 49985a435f
Special class BMStringParser for sending ACK (resolves #1374) 5 years ago
Dmitri Bogomolov 7c7d6781a2
Removed old code from protocol, shared, state
and class_objectProcessor modules (#1374), temporarily commented
  shared.checkAndShareObjectWithPeers() call
5 years ago
Dmitri Bogomolov 1c2bef46c1
e417b62 allows to remove sleep from cleaner test 5 years ago
Dmitri Bogomolov 5572e6b3a1
Suppress pylint warning about 'relative import' 5 years ago
Dmitri Bogomolov daf556ca50
Added tests for knownnodes:
- import of pickled knownnodes;
  - default knownnodes if nothing imported;
  - knownnodes starvation (#1335), demanded changes in networkthread.
5 years ago
Dmitri Bogomolov 2bbda63b9c
Added address length check 5 years ago
Dmitri Bogomolov c8a781c7c5
Marked use of random, subprocess and xmlrpclib in tests
for skipping by bandit
5 years ago
Dmitri Bogomolov cfdb6beb54
Moved tests from helper_msgcoding into TestCore.test_msgcoding() 5 years ago
Dmitri Bogomolov ea8991c05b
Test case for config, not runs pybitmessage yet 5 years ago
Dmitri Bogomolov d8b4682ee9
Style fixes and docstrings for tests 5 years ago
Dmitri Bogomolov a3300ba8f1
A test case for core (which will be ran in main thread) 5 years ago
Dmitri Bogomolov 51df0507e2
Fixed signal files creation 5 years ago
Dmitri Bogomolov 589900f7c3
Added a test for chan creation/joining 5 years ago
Dmitri Bogomolov c49c131929
New test case class hierarchy:
- TestProcessProto has common setUpClass and tearDownClass methods
  - TestProcess is for testing the PyBitmessage process (using psutil)
5 years ago
Dmitri Bogomolov c28d463261
Added doctstrings for all tests and a test for sendBroadcast API command 5 years ago
Dmitri Bogomolov 981dddade4
Added test for createRandomAddress API command 5 years ago
Dmitri Bogomolov 10346c84aa
Basic API tests and simple apinotify handler 5 years ago
Dmitri Bogomolov 5b1d2e56a1
Changes into test mode:
run in background, stop after 30 sec since last API response
5 years ago
coffeedogs 7ed459b644
Changes based on style and lint checks. (final_code_quality_6) 5 years ago
Dmitri Bogomolov d8be7cd19a
Right check in module tr - right import order 5 years ago
Dmitri Bogomolov 533df80ce9
Resolving pylint warnings 5 years ago
Dmitri Bogomolov bd5bdda009
Moved class singleAPI to api module and `import api` below config check 5 years ago
Dmitri Bogomolov ef54bcaf82
The changes in #1325 are buggy. Implementing it properly. 5 years ago
Dmitri Bogomolov b2c8b77938
Closes #1360: validate knownnodes received from the network 5 years ago
Dmitri Bogomolov 6969ec0ec9
Removed commented config check and added module docstring 5 years ago
Dmitri Bogomolov e417b6257f
Fixes #1335:
- moved knownnodes cleanup to knownnodes module,
  - added a check for last node in stream initiating DNS based bootstrap.
5 years ago
Dmitri Bogomolov 4c184d8ffe
Fix import of pickled knownnodes.dat 5 years ago
surbhi 95e300d7ca
Fix pylint Too many arguments Issue 5 years ago
surbhi a5833be1b7
Fix pylint Instance of 'str' has no 'ids' member issue 5 years ago
surbhi abd3e02d72
Fix pylint global variable undefined at the module level issue 5 years ago
surbhi f4d25ab0ed
Fix pylint global variable warning issue 5 years ago
surbhi f004021c6d
Fix pylint issues based on no-self 5 years ago
surbhi 30fc79ed45
Fix pylint issues 5 years ago
surbhi 686967c36d
Fix flake8 issues 5 years ago
surbhi f98acd3ae0
Implementing swipe left to right delete feature for inbox, sent message to be archieved in Kivy 5 years ago
surbhi d8a5b9356f
Implement sent item message loading feature for current account logged with dynamic dispatching of accounts 5 years ago
surbhi c163001ee8
Loadmessage list feature with current account get and ngletters images icon 5 years ago
surbhi b1f7489b09
Implemement Ui for Inbox Load feature with create new address based on random number 5 years ago
Alexx Saver 50ee7fa740
Fix subprocess.check_call 5 years ago
Peter Šurda b0446ab4ab
Improve pickle knownnodes error handling
- Fixes #1333 (untested)
5 years ago
PyBitmessage Translations 62024ca7e9
Auto-updated language fr from transifex 5 years ago
Dmitri Bogomolov 358e621710
Round peer rating to 2 decimal places before saving knownnodes 5 years ago
Dmitri Bogomolov 342e2a209c
Use DNS seed only if knownnodes are empty 5 years ago
Dmitri Bogomolov 3ce4694591
Lower log_level for IOError while reading namecoin.conf 5 years ago
Dmitri Bogomolov a1a8d3a05d
Fixed undesirable log_level replacement in depends 5 years ago
Dmitri Bogomolov 5115425a61
Debian forgotten in e92a85e 5 years ago
PyBitmessage Translations 5a5f94eb3d
Auto-updated language zh_cn from transifex 5 years ago
PyBitmessage Translations 5934648da2
Auto-updated language eo from transifex 5 years ago
PyBitmessage Translations 6552662d83
Auto-updated language pl from transifex 5 years ago
PyBitmessage Translations b99511ce2b
Auto-updated language ja from transifex 5 years ago
surbhi 27d64df26e
Suggested Review changes in import statement sequence 5 years ago
surbhi 8d5ff9abba
Added changes for create new message feature for send button and cancel button 5 years ago
surbhi b0809c3c23
Added images for create message icon and new idenetity 5 years ago
surbhi 178194dd4c
Implement Ui for adding New Identity feature with navigation Enhancement 5 years ago
surbhi 1adcf7f3f4
Changes made for Exit application button feature with trash enhancement 5 years ago
surbhi bb8d4c5a1f
Added Navigation Drawer UI with create feature 5 years ago
Dmitri Bogomolov e1d2ead701
Fix exception 'KeyError: None' in checkdeps introduced in e92a85e,
Fixes #1316
5 years ago
Dmitri Bogomolov 996a48f298
Confirmation for network switch 5 years ago
PyBitmessage Translations 8537fbb2cc
Auto-updated language fr from transifex 5 years ago
surbhi 13d41c7647
added imports for wrapper main file kivy running 5 years ago
surbhi 956f689eeb
Fixes some issue of kivy running 5 years ago
surbhi a859dd78e7
moving a kivy module to a separate folder having Ui too 5 years ago
surbhi c22fd4e8a7
Changes made on UI for Desktop and Mobile Clients with suggested review changes 5 years ago
surbhi 7aac991c4f
Changes made on UI for Desktop and Mobile Clients 5 years ago
surbhi 4770790597
Added kivy for making it run on Desktop and Mobile Clients 5 years ago
surbhi 6b2f82a7cd
Added suggested review changes for PR 1297 5 years ago
surbhi d7efd746f2
fix Missing module docstring issue with other pep8 5 years ago
surbhi b4a0d8ad37
fix codacy coding standards issue 5 years ago
surbhi c1868456df
Added kivy basic architecture for support mobile client PyBitmessage 5 years ago
Dmitri Bogomolov 529559d06a
Reduced BMConfigParser in the sake of readability 5 years ago
Dmitri Bogomolov ba5caf3fda
Sorted out configuration loading/updating a bit:
- used BMConfigParser.safeGet.. methods instead of try .. except
  - moved all config checks from class_sqlThread into helper_startup
  - commented out initialization of settings which are then rewritten
    by updateConfig()
5 years ago
Dmitri Bogomolov 2504c80da6
Fix an issue from #1153 for setup without plugins package 5 years ago
Dmitri Bogomolov c7d3784b80
No need to import namecoin early because it's really used only in Qt UI 5 years ago
Dmitri Bogomolov 795b855c65
Returned logger setting to debug though slightly deduplicated 5 years ago