Commit Graph

507 Commits

Author SHA1 Message Date
Kevin F
7b7d6a03d3 Ignore broken pipes when streaming blocks in the gossip client 2022-05-05 22:31:05 -05:00
Kevin F
50f0cfa6f4 Added basic streamblocks test, slight fixes for streamblocks 2022-05-05 00:07:58 -05:00
Kevin F
91df7507f4 db set_if_new returns bool on if a new key was set or not and doesn't raise duplicate exception 2022-05-05 00:05:53 -05:00
Kevin F
c065be0145 Fix blockdb has_block not having block path 2022-05-05 00:04:37 -05:00
Kevin F
4edbde82cc Added example plugin that tests block insertion 2022-05-01 16:06:32 -05:00
Kevin F
1b37264eb7 Work on gossip tests and cleaned up api server some 2022-05-01 00:45:26 -05:00
Kevin F
e6b61c5f59 Added put block test (1 block) 2022-04-24 15:19:39 -05:00
Kevin F
237cdde4e5 Added peer exchange test (passing) 2022-04-20 00:28:29 -05:00
Kevin F
a61cd273a8 Implemented basic server diffusal test 2022-04-05 01:17:40 -05:00
Kevin F
c7ba974264 Block diffusal mostly done 2022-04-04 00:48:30 -05:00
Kevin F
9d2c2641f4 Block diffusal mostly done 2022-04-03 01:16:58 -05:00
Kevin F
996bff267b Work on normal gossip diffusion 2022-03-30 01:13:42 -05:00
Kevin F
dae99dc2f7 Work on normal gossip diffusion 2022-03-28 00:13:36 -05:00
Kevin F
df02bdb826 Work on normal gossip diffusion 2022-03-26 18:26:55 -05:00
Kevin F
c215d4decd Work on normal gossip diffusion 2022-03-26 18:24:40 -05:00
Kevin F
b07c176f5c Refactored gossip peer set, gossip block queues, and dandelionphase to use singleton/module instances instead of being passed around 2022-03-21 01:03:53 -05:00
Kevin F
9c44069248 Misc bug fixes for gossip 2022-03-20 18:05:44 -05:00
Kevin F
fd9e6f5ede Dandelion phases now have IDs so it can be known more easily if an epoch elapsed 2022-03-20 13:00:04 -05:00
Kevin F
8b2b6a613e corrected remaining_time being used as atter when resting during end op remaining time in dandelion client loop 2022-03-20 12:56:36 -05:00
Kevin F
be1dde95a6 Corrected type hinting for block queues and peer sets 2022-03-20 12:54:57 -05:00
Kevin F
9ef6f46a5c Implemented do_stem_stream to stem blocks for dandelion++ 2022-03-20 12:53:40 -05:00
Kevin F
e985966e7c Turned dandelion stem into a module and corrected use of wait_for 2022-03-20 12:52:58 -05:00
Kevin F
f740d475c4 Specify that Onionr's pid is a pid in log 2022-03-20 12:51:54 -05:00
Kevin F
a53c31fda7 peer.get_socket implementations now must take timeout arg used for initial connection 2022-03-20 12:51:25 -05:00
Kevin F
568a192c97 Fix license docstring boilerplate spacing 2022-03-17 19:56:31 -05:00
Kevin F
6c2b1e49a2 Implemented dandelion stemout stream building 2022-03-14 10:04:28 -05:00
Kevin F
9bf16c5758 Work on stemout 2022-03-13 00:35:22 -06:00
Kevin F
19159ffa06 Work on stemout 2022-03-12 19:28:18 -06:00
Kevin F
4c54677387 Use tuple of queues for block queues instead of list for clarity that queues cannot be added 2022-03-11 11:15:18 -06:00
Kevin F
fefec8bdc8 added block store function used when not in stem phase 2022-03-10 01:10:13 -06:00
Kevin F
9d17c7bd64 Implemented server dandelion++ stem portion 2022-03-04 18:05:12 -06:00
Kevin F
17b268d9e4 lots of work on gossip 2022-03-02 07:29:59 -06:00
Kevin F
4f3da58a60 Only 1 command per peer connection should be handled 2022-02-27 13:36:39 -06:00
Kevin F
1a7ce7d386 Try mulitiple times and log an error if we can't bootstrap to anyone 2022-02-27 13:36:02 -06:00
Kevin F
44f6b90777 When checking for peer online to add to peer pool, make sure it closes and avoid attempting if its already in the pool 2022-02-27 13:34:16 -06:00
Kevin F
5337b0aba4 bootstrap logic separated out of plugin and announcement logic mostly completed 2022-02-26 01:07:18 -06:00
Kevin F
34f9ffbf6b Made peers hashable and comparable for their use in the peer set 2022-02-26 01:06:17 -06:00
Kevin F
8d394c76a7 Peer announcing client side done 2022-02-25 01:02:04 -06:00
Kevin F
df3568fc15 Scaffolding before implementing peer exchange logic 2022-02-24 01:03:50 -06:00
Kevin F
850468dc39 Scaffolding before implementing peer exchange logic 2022-02-23 11:47:01 -06:00
Kevin F
d6b1c98cbd Ping loop while brainstorming. 2022-02-22 14:34:19 -06:00
Kevin F
8eec2167c8 Tor can now initialize peers 2022-02-21 15:15:26 -06:00
Kevin F
d48af45210 better error handling in plugin importing 2022-02-18 14:40:00 -06:00
Kevin F
15875d26c6 Work on gossip system and tor transport 2022-02-16 23:58:04 -06:00
Kevin F
2bcfbf0d79 Tor address generation completed. New system stores the priv key in config as a cleaner method 2022-02-16 00:49:32 -06:00
Kevin F
e5b396fc11 Work on gossip system and tor transport 2022-02-14 17:47:54 -06:00
Kevin F
713aeb199d Added DandelionPhase to pick stem mode or not 2022-02-12 14:36:45 -06:00
Kevin F
026f39b680 Work on new gossip system 2022-02-11 00:56:19 -06:00
Kevin F
ebb75b136d Fix sigterm handler shutdown call 2022-02-10 17:38:22 -06:00
Kevin F
ed6e2d05b4 ignore another python path in big brother disk ministry 2022-02-10 17:37:58 -06:00
Kevin F
d388bba646 Added files for new dandelion++ gossip and transport system 2022-02-09 19:29:16 -06:00
Kevin F
cbd9a3cbec bump version codename 2022-02-09 19:28:52 -06:00
Kevin F
e55beec18c Adjusted onionrthreads to take kwargs 2022-02-09 19:28:31 -06:00
Kevin F
cedd01c98f Removed netcontroller
Removed etc (moving most to onionrutils)
Small refactoring
2022-02-06 19:18:53 -06:00
Kevin F
29b28accf1 Started test for blockdb 2022-02-05 13:25:28 -06:00
Kevin F
79639ba0af Added unittest for onionr subprocess module 2022-02-05 00:24:31 -06:00
Kevin F
061e2d1e01 Added generic multiprocess wrapper
Corrected blocks after timeout function
2022-02-04 00:18:57 -06:00
Kevin F
eb763cf293 Work on blockdb functions 2022-02-03 12:55:07 -06:00
Kevin F
ff9eb13579 Added block type iteration generator 2022-02-03 00:32:26 -06:00
Kevin F
844723cea9 Remove tests associated with removed code 2022-02-02 14:45:27 -06:00
Kevin F
44d5eeab2a Remove tests associated with removed code 2022-02-02 00:34:50 -06:00
Kevin F
21d1f69bbe Removed some dead scripts 2022-01-31 22:55:50 -06:00
Kevin F
fd93f6151e + Add pijion support
* Fix shutdown
2022-01-30 23:59:34 -06:00
Kevin F
1d22b43ef9 Removed old block system 2022-01-30 19:39:24 -06:00
Kevin F
e99056afac More cleanup 2022-01-19 18:47:28 -06:00
Kevin F
cb647daa85 Cleaning up transport remnants 2022-01-11 18:13:19 -06:00
Kevin F
4bd9bd6e9d Removed lan and tor transports 2022-01-11 01:20:15 -06:00
Kevin F
2352e066cc work on moving to vdf 2022-01-06 14:48:22 -06:00
Kevin F
6a8ab46815 Added vdf create wrapper
Removed some dead code
2021-12-31 15:46:56 -06:00
Kevin Froman
9306143e4c dont check hostname if not bound to loopback in client api security 2021-01-23 04:00:03 +00:00
Kevin Froman
7303cf041e if binding to 0.0.0.0, don't validate source ip in client api 2021-01-23 04:00:03 +00:00
Kevin Froman
4e96d18396 print tor errors to stdout 2021-01-23 04:00:03 +00:00
Duncan X Simpson
3a98183fa0 Compare uid not username in create_dirs() 2021-01-23 04:00:03 +00:00
Kevin Froman
07d9207808 Fix regression when opening homepage 2021-01-16 06:38:12 +00:00
Kevin Froman
ad91a3222f show web url every time onionr daemon starts 2021-01-16 02:08:36 +00:00
Kevin Froman
87685fd728 add license to disk ministry 2021-01-15 21:36:57 +00:00
Kevin Froman
b267d3028e bump version to 8.0.2 2021-01-15 08:55:42 +00:00
Kevin Froman
76f1d164e7 + added basic dev guide
* fixes #22
* When restarting from cli, always output to previous process' terminal
2021-01-15 07:30:38 +00:00
Kevin Froman
79b46b62eb add SO link to err msg when sqlite is not installed 2021-01-13 09:37:47 +00:00
Kevin Froman
ae84d09e8e * detect stale run file
fixes #27
2020-12-22 08:57:15 -06:00
Kevin Froman
9d55c62d68 * revert pow to 5
* is is_alive in sneakernet observer
* catch subprocess err in 3.9.x (dirty hack) in vanityonionr and block gen
* bump version
2020-12-22 01:53:04 +00:00
Kevin Froman
ae359de562 Added custom port and bind address args 2020-12-16 04:44:25 +00:00
Kevin Froman
9d6216e16b decrease pow, bump version 2020-12-04 09:41:40 +00:00
Kevin Froman
7820c87b79 bump version 2020-12-03 06:36:15 +00:00
Kevin Froman
93d176badc fix upload.py logging b_hash define 2020-12-03 06:12:06 +00:00
Kevin Froman
968f468027 Merge branch 'fixmultiprocessexit' of /home/user/win-merges/bare-onionr/onionr into fixmultiprocessexit 2020-12-03 05:24:42 +00:00
Kevin Froman
86fd936d52 exit faster from communicator 2020-12-03 05:20:03 +00:00
Kevin Froman
e34b499044 purge old blocks if POW increases 2020-12-02 20:46:36 -06:00
Kevin Froman
01ed4d49d0 fix wsl apport breaking sites 2020-12-03 01:25:24 -06:00
Kevin Froman
9db9c495c8 check block POW *before* syncning from lan 2020-12-02 23:01:12 -06:00
Kevin Froman
dcc304be9d fix wsl apport breaking sitecreator 2020-12-02 23:00:51 -06:00
Kevin Froman
eaf61c280a fixed subprocesspow not exiting on wsl 2020-12-01 16:24:10 -06:00
Kevin Froman
e831a27ae3 bug fixes in block creation and directory security 2020-11-23 03:47:50 +00:00
Kevin Froman
28044f2bd7 bump version 2020-11-22 01:11:14 +00:00
Kevin Froman
30a4285b92 - Removed direct connections (will be a different project in the future)
- removed chat for now
- removed onionrcommunicatortimers
2020-11-21 05:31:19 +00:00
Kevin Froman
59330149e1 removed netcheck comm timer 2020-11-18 22:16:37 -06:00
Kevin Froman
a775f3b26d dont upload blocks that arent valid (anymore?), progress removing communicator timers 2020-11-16 06:57:38 +00:00
Kevin Froman
cc703fc404 progress removing communicator timers 2020-11-15 18:52:52 +00:00
Kevin Froman
ecd2cc54da progress removing communicator timers 2020-11-15 18:26:25 +00:00
Kevin Froman
bbd76da333 added flood fill work, misc bug fixes and removing communicator timers 2020-11-13 08:17:48 +00:00