Commit Graph

19 Commits

Author SHA1 Message Date
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
a4c4338190
use bytes() on keys to be hashable in Python3 2024-05-26 23:38:41 +09:00
8af1a13e10
Simplify storage abstract base definition 2023-11-01 13:38:48 +02:00
e1592a4260
Use dotted imports in the storage package to run on python3 2023-11-01 13:38:48 +02:00
0dd49761d0
Populate knownnodes from inventory when singleWorker starts 2020-07-21 16:21:42 +03:00
lakshyacis
6139efc377
Imported packages sequencing and formatting 2 2020-01-27 14:43:25 +05:30
lakshyacis
108b231c1c
sqlite quality fixes 2020-01-08 13:20:10 +05:30
lakshyacis
da5d085a39
sqlite pylint fixes 2019-09-27 17:01:07 +05:30
lakshyacis
54ebbcb7db
sqlite flake8 fixes 2019-09-27 17:01:07 +05:30
lakshyacis
6f910f67c0
filesystem flake8 fixes 2019-09-27 17:01:06 +05:30
96b8cff0d1
Inventory checking performance optimisation
- caching of whether an object exists in inventory was somehow removed
since storage refactoring (or it never worked). Now existence checking
is cached in the sqlite storage backend
2018-02-02 14:33:29 +01:00
8a5ec29540
Store object hash as binary in sqlite (inventory) 2018-02-01 21:24:50 +01:00
5605672f75
Fix tag search when inventory contains blobs
- recent changes caused the "tag" (and "payload") columns in the
inventory table in messages.dat to be stored as blobs. Searches by tag
(e.g. pubkey lookups) stopped working. This fixes it.
2017-12-02 02:48:10 +01:00
d2f79d3172
sqlite storage fix
- typo on cleaning
2017-11-14 23:20:15 +01:00
aa203b23ee
Fix typo introduced by code quality patch 2017-06-24 23:09:08 +02:00
2685fe29b1
Code quality improvements 2017-06-24 12:13:35 +02:00
e522f015a8
Network status updates
- only update processed numbers once every 2 seconds
- moved inventory lookups to the main inventory so now all
storage modules work with it
2017-05-31 10:15:47 +02:00
36b5e2c04f
Inventory storage abstraction
- can have multiple storage types for inventory
- sqlite is the old one, filesystem is a new available
2017-05-27 19:03:27 +02:00