Commit Graph

139 Commits

Author SHA1 Message Date
Kashiko Koibumi
01296a86b9
Merge branch 'strict-blob' into py3 2024-05-30 20:06:32 +09:00
Kashiko Koibumi
d676ea3ec2
quick workaround for BLOB as TEXT problem (#2247) 2024-05-30 18:13:15 +09:00
Kashiko Koibumi
c3d083d142
Merge branch 'memoryview' into py3 2024-05-28 13:41:44 +09:00
Kashiko Koibumi
6ec9fb1a7e
Merge branch 'binary' into py3 2024-05-28 08:40:40 +09:00
Kashiko Koibumi
96c764bd94
refined: read from and write to SQLite database in binary mode
This modification is a preparation for migration to Python3.
2024-05-27 22:43:01 +09:00
Kashiko Koibumi
0f858bca89
read from and write to SQLite database in binary mode
This modification is a preparation for migration to Python3.
2024-05-27 04:45:40 +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
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
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
f181b85d97
replace all of arg() occurrences to format() 2024-05-22 17:14:00 +09:00
anand k
5faef8d40e
moved inventory in state - global runtime variable from singleton 2024-04-19 08:21:19 +05:30
d547a8be2f
Encode WIF string before passing to highlevelcrypto.decodeWalletImportFormat() 2024-04-15 05:27:45 +03:00
ae3ff8c07e
Fix outdated exception handlers for singleWorker._getKeysForAddress() 2024-04-14 04:58:26 +03:00
3ed84a5863
Start adding hashes with double SHA512 2024-04-13 03:17:39 +03:00
c1ca7044d2
Moved decodeWalletImportFormat() from shared to highlevelcrypto,
not addresses, where it's supposed to be because it uses
pyelliptic.arithmetic, addresses.decodeBase58() returns int which needs
to be encoded. Defined encodeWalletImportFormat() and replaced all uses.
2024-04-07 03:30:50 +03:00
799237c7ff
Don't use BMConfigParser in highlevelcrypto, instead use digestAlg kwarg,
both in .sign() and .verify(), extend TestHighlevelcrypto.test_signatures().
2024-04-05 03:10:24 +03:00
anand-skss
6a33fe58e1
Code Quality 2024-03-04 15:37:03 +00:00
anand-skss
c734ac7b5f
Code Quality 2024-02-28 15:42:37 +00:00
anand k
b43c9c4a75 Code Quality 2024-02-23 23:50:04 +05:30
a5773999fe
Refactor BMConfigParser as a Module variable 2022-02-15 17:12:43 +05:30
4d1bca76a8
Updated code quality binary operator next line changes in class_singleWorker.py 2021-09-20 20:20:34 +05:30
6dffb1e470
Added UISignalQueue.put at NoSectionError & NoOptionError exceptions & updated existing UISignalQueue.put msg 2021-08-24 14:16:44 +05:30
fc19c54836
Updated code quality bare except warning code changes in class_singleWorker.py
Added specific exceptions, added log warning and added and removed except handling after some method changes

Imported queue & configparser from six.moves

Added specific exceptions & updated logger warning msgs
2021-08-24 14:16:43 +05:30
navjot
9c5d329c90
replace print with logger and remove unused file 2021-01-18 23:31:45 +05:30
184664d758
SQL operations asserts and code quality
- complain if trying to execute SQL statements without a running
  `.threads.sqlThread`. This is to give better test feedback if used
  incorrectly
- refactor `.helper_sql.sql_ready` as a `threading.Event`
- code quality
2021-01-01 17:54:05 +01:00
navjot
6c5bb62123
replaced double quotes with Single quotes in class_singleWorker module 2020-10-31 13:07:51 +05:30
navjot
a7c1018f47
fixed CQ for src.class_singleWorker module 2020-10-31 13:07:51 +05:30
navjot
30044f7516
implemented filter query in sent table on the bases of folder= 'sent' 2020-10-31 13:07:51 +05:30
d56191ebba
Move knownnodes module into network package 2020-07-21 16:21:43 +03:00
0dd49761d0
Populate knownnodes from inventory when singleWorker starts 2020-07-21 16:21:42 +03:00
185ad66ea5
Moved most of variables from shared elsewhere (mostly to state) 2020-05-05 17:27:38 +03:00
lakshyacis
3211fca953
formatting and shorten line length 2020-01-22 15:55:26 +05:30
lakshyacis
b6a81f1252
Formatting and fix License 2020-01-15 16:17:26 +05:30
5a35de6bca
Fix sendOnionPeerObj() broken in 9923e97 2019-12-21 13:14:28 +02:00
lakshyacis
9923e97279
class_singleWorker quality fixes 2019-11-25 10:48:35 +05:30
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
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
ad2a2b3fb4
Inherit helper_threading.StoppableThread from threading.Thread
and do random.seed() in its __init__
2019-08-06 18:07:19 +03:00
38e5d93272
Resend onionpeer object if it expired while the node ran 2019-06-14 12:38:48 +03:00
f868c1ad11
Fixing my bug in 453e045 2019-06-06 09:21:59 +03:00
4a097e99b3
Fixes for @omkar1117 2019-05-10 12:24:47 +03:00
01d4fbe60b
Resolved pylint warnings 2019-05-10 12:24:46 +03:00
453e045ae5
Minimal implementation of onionpeer object 2019-05-10 12:24:41 +03:00
3adadd398f
Removed from shared the functions duplicating protocol:
decryptAndCheckPubkeyPayload, isBitSetWithinBitfield
2019-02-04 22:19:39 +02:00
coffeedogs
0a30eb0225
Changes based on style and lint checks. (final_code_quality_7) 2018-11-12 14:21:56 +00:00
coffeedogs
8979a1bef5
Fixed: Addressed PR comments 2018-05-08 12:53:58 +01:00
coffeedogs
c99c3fc782
Fixed: Codacy issues in src/class_*.py 2018-05-03 19:05:39 +01:00