Commit Graph

1114 Commits

Author SHA1 Message Date
Kevin Froman e267bbbead catch value error on insert queue removal 2019-08-14 01:40:03 -05:00
0Gitnick 00ad409737 Some microimprovements 2019-08-13 20:06:14 -05:00
0Gitnick 26b1cc5d87 Delegate code in onionrproofs 2019-08-13 19:12:45 -05:00
Kevin Froman e86f154522 * prevent the same message from being inserted at the same time in the http api
* bumped toomanyobjs
* correct pysocks raise
fixes #34
2019-08-13 17:28:53 -05:00
0Gitnick 34c00069f5 Fix difficulty calculator for new blocks 2019-08-13 16:54:03 -05:00
0Gitnick 7c7058a691 Remove unused variables in onionrproofs.py 2019-08-13 15:26:20 -05:00
0Gitnick 6c091acd34 Shorten hashMeetsDifficulty function 2019-08-13 15:18:43 -05:00
0Gitnick 401723f5ab Comment step function 2019-08-13 15:10:58 -05:00
0Gitnick 60c9a395f6 Delegate finding leading zeroes to library functions 2019-08-13 15:04:20 -05:00
0Gitnick 8a36144675 Fix difficultyModifier 2019-08-13 14:51:46 -05:00
0Gitnick ae845940d9 Increase random bits mainly for preventing duplicate nonces for the same block 2019-08-13 08:13:52 -05:00
Kevin Froman 795266edaf Download queue log messages now skip-based x10
fixes #31
2019-08-13 04:16:11 -05:00
Kevin Froman 9601a3d072 log what block is being uploaded by hash 2019-08-12 18:49:16 -05:00
Kevin Froman 56dc2e0ce7 re-add bootstrap node since it is apparently fixed 2019-08-12 18:48:51 -05:00
Kevin Froman 1493e029ea catch keyboard interupt when generating deterministic keys 2019-08-12 18:48:20 -05:00
Kevin Froman c07cfeec9e improve node public disclaimer page 2019-08-12 01:55:47 -05:00
Kevin Froman 26b0a05d66 * uploads now only remove from upload queue on 'exists' for efficiency-security trade off
fixes #26
2019-08-11 23:00:08 -05:00
Kevin Froman 97d04440ee added upload queue class to remember block inserts across restarts 2019-08-11 22:32:58 -05:00
Kevin Froman da2c6b5b9c handle and setup onion service streams better 2019-08-11 15:44:56 -05:00
Kevin Froman 0e9da24d79 refactored lookup timer calls in communicator 2019-08-11 15:44:16 -05:00
Kevin Froman 00e2445475 make tor restart more aggressive as last resort for tor-death bug 2019-08-11 13:53:38 -05:00
Kevin Froman 3e99bd3a83 remove cliui for now 2019-08-10 21:13:15 -05:00
Kevin Froman 0cd1ee8bb6 hopefully improve tors connectivity with torrc changes 2019-08-10 19:42:47 -05:00
Kevin Froman bf6bbd3024 added forgotten imports in blockmetadata 2019-08-09 23:18:30 -05:00
Kevin Froman 75ec108496 improved network stability by having automatic tor restarts 2019-08-09 20:04:56 -05:00
Kevin Froman daff149acc refactoring 2019-08-09 15:41:27 -05:00
Kevin Froman 7c02f6fff1 * refactored blockmetadata
* be more careful with block type length
+ work on chat
2019-08-09 15:07:32 -05:00
Kevin Froman 8c7319048d bug fixes 2019-08-08 01:25:48 -05:00
Kevin Froman ef01d3b577
+ added notifications for mail messages
+ added authors.md
2019-08-07 22:45:18 -05:00
Kevin Froman 41368a2747 fix broken connection pool 2019-08-07 18:14:13 -05:00
Kevin Froman 76356d5e3f added some more readmes 2019-08-07 17:46:57 -05:00
Kevin Froman 636cf3a8d1 added readme for communicator 2019-08-07 00:42:37 -05:00
Kevin Froman ae435bd5f9 limit log file line count 2019-08-06 21:50:15 -05:00
Kevin Froman bd5b6a1802 do not update address databases on every request 2019-08-06 16:19:26 -05:00
Kevin Froman bf9b244180 fixed some bugs 2019-08-06 00:49:31 -05:00
Kevin Froman 9080374d7b onionr.py fully removed 2019-08-05 22:10:21 -05:00
Kevin Froman 3409a2888f progress removing onionr.py 2019-08-05 18:09:04 -05:00
Kevin Froman 3a90185cd3 progress removing onionr.py 2019-08-05 14:01:53 -05:00
Kevin Froman 2bc908deb6 progress removing onionr.py 2019-08-05 12:57:25 -05:00
Kevin Froman 6bf8bb1db6 progress removing onionr.py 2019-08-05 11:30:19 -05:00
Kevin Froman cbe10f914a progress removing onionr.py 2019-08-05 00:25:27 -05:00
Kevin Froman 0690e9ca0e progress removing onionr.py 2019-08-04 23:23:12 -05:00
Kevin Froman 705962e9e7 progress removing onionr.py 2019-08-04 23:08:56 -05:00
Kevin Froman 2f9c1de062 progress removing onionr.py 2019-08-04 19:34:57 -05:00
Kevin Froman aea32bd1bc progress removing onionr.py 2019-08-03 23:52:57 -05:00
Kevin Froman a6fec9eefb progress removing onionr.py 2019-08-02 18:00:04 -05:00
Kevin Froman 6e526bf629 progress removing onionr.py 2019-07-31 00:10:28 -05:00
Kevin Froman e037633735 progress removing onionr.py 2019-07-30 13:13:10 -05:00
Kevin Froman 453e8588c5 progress removing onionr.py 2019-07-30 00:19:22 -05:00
Kevin Froman 802af58d46 do not have duplicate class name in onionrpluginapi 2019-07-29 13:43:50 -05:00
Kevin Froman 2316e3c6e4 fixed encrypt plugin having bad import 2019-07-29 13:13:40 -05:00
Kevin Froman b7d4aaed9a
Fixed up mail CSS and message deletion 2019-07-29 13:05:27 -05:00
Kevin Froman 9cd33971d4 added new bootstrap node 2019-07-28 23:14:06 -05:00
Kevin Froman 0fee4eb390 added auto refresh to circle ui 2019-07-28 23:07:29 -05:00
Kevin Froman 9933cd1b82 circles now working ok in ui 2019-07-28 22:00:38 -05:00
Kevin Froman ccbf687ad1 work on chat 2019-07-28 13:05:32 -05:00
Kevin Froman a086198ca0 work on chat 2019-07-28 00:44:21 -05:00
Kevin Froman da21999287 work on chat 2019-07-28 00:33:26 -05:00
Kevin Froman 7514fd5228 work on chat 2019-07-27 16:56:06 -05:00
Kevin Froman ef6bb8c1e9 added keymanager test 2019-07-27 15:29:15 -05:00
Kevin Froman b24c683f5f work on chat 2019-07-27 02:29:16 -05:00
Kevin Froman faf85c10d2 fixed importer 2019-07-26 21:42:55 -05:00
Kevin Froman 4bbbff7651 added getopenport 2019-07-26 18:20:27 -05:00
Kevin Froman 3f5834da95 removed empty pkgbuild 2019-07-26 16:18:12 -05:00
Kevin Froman bf12ce6d8c removed unnecessary imports in onionr.py 2019-07-26 16:17:34 -05:00
Kevin Froman e45ce2e4dd progress in removing core 2019-07-26 16:11:24 -05:00
Kevin Froman 405e8cdd24 added identify home test 2019-07-26 16:05:58 -05:00
Kevin Froman c7efc1ba08 added network merger test 2019-07-26 00:55:20 -05:00
Kevin Froman 19fa128710 progress in removing core 2019-07-25 11:14:13 -05:00
Kevin Froman 3d50dbcaac remove core to merge easyinstall 2019-07-24 20:58:09 -05:00
Kevin Froman c6badab18e progress in removing core 2019-07-24 14:35:18 -05:00
Kevin Froman ac70966c41 progress in removing core 2019-07-24 13:23:31 -05:00
Kevin Froman 147ae953db progress in removing core 2019-07-24 13:10:37 -05:00
Kevin Froman 3097407774 progress in removing core 2019-07-24 12:22:19 -05:00
Kevin Froman 274505a51f progress in removing core 2019-07-24 11:32:23 -05:00
Arinerron fff2b7b18f
master <- easy-releases 2019-07-22 16:59:48 -07:00
Kevin Froman a74f2c5051 progress in removing core 2019-07-22 00:24:42 -05:00
Kevin Froman 26c3b519c7 progress in removing core 2019-07-21 21:23:22 -05:00
Kevin Froman 4025983ca7 progress in removing core 2019-07-21 11:15:20 -05:00
Kevin Froman 50a8e8958a progress in removing core 2019-07-20 19:29:08 -05:00
Kevin Froman f843ccc3b2 progress in removing core 2019-07-20 16:21:03 -05:00
Kevin Froman e7c8c93dab progress in removing core 2019-07-20 10:52:03 -05:00
Kevin Froman 348ec1081f progress in removing core 2019-07-20 01:02:30 -05:00
Kevin Froman e351710189 progress in removing core 2019-07-19 19:41:15 -05:00
Kevin Froman e1676ef168 progress in removing core 2019-07-19 19:01:16 -05:00
Kevin Froman e12781a49d progress in removing core 2019-07-19 14:49:56 -05:00
Kevin Froman 08d3e3a231 progress in removing core 2019-07-18 23:59:44 -05:00
Kevin Froman dbbefafd19 progress in removing core 2019-07-18 18:07:18 -05:00
Kevin Froman 1775b96a04 progress in removing core 2019-07-18 12:40:48 -05:00
Kevin Froman e69c8dbb60 progress in removing core 2019-07-18 00:11:52 -05:00
Kevin Froman 8163292ed9 progress in removing onionr core 2019-07-17 17:41:33 -05:00
Kevin Froman bf8a9c4f27 refactoring core databases to not use core anymore 2019-07-17 11:58:40 -05:00
Kevin Froman 000538ddc8 fixes in board, refactoring core databases to not use core anymore 2019-07-17 11:25:29 -05:00
Kevin Froman 1ced21f40c forgot navbar.js, work on board web ui refreshing and appearance 2019-07-17 00:10:39 -05:00
Kevin Froman 837286a970 use proper data folders 2019-07-14 22:01:56 -05:00
Kevin Froman 650d5077ed correct onionr.py open port function call 2019-07-14 02:05:25 -05:00
Kevin Froman 7aadd6a3b5 refactored netcontroller into a module 2019-07-14 01:58:57 -05:00
Kevin Froman 9298b3716b
refactored logger into a module 2019-07-13 19:29:33 -05:00
Kevin Froman 4256de5097 updated screenshots to have new ui 2019-07-13 01:35:49 -05:00
Kevin Froman 2811173051 fix broken peer cleanup 2019-07-12 19:03:06 -05:00
Kevin Froman 2a124c423b fixed broken plugin blueprint loading 2019-07-12 17:31:11 -05:00
Kevin Froman b008616636 fixed flask's nonsense with relative dirs 2019-07-12 13:47:50 -05:00
Kevin Froman 1ba26541b2 put peerprofiles in its own file 2019-07-12 12:51:35 -05:00
Kevin Froman f5e613134b
removed unnecessary imports in onionrpeers 2019-07-12 12:29:05 -05:00
Kevin Froman 021fa87f30
refactored onionrpeers into a module 2019-07-12 12:21:08 -05:00
Kevin Froman ec2f24b257
refactored api servers into module 2019-07-12 02:07:30 -05:00
Kevin Froman 62200d4d98 fixed broken daemon queue thread count 2019-07-11 13:26:57 -05:00
Kevin Froman dbd154d450 mostly finished refactoring communicator into a module 2019-07-11 02:39:35 -05:00
Kevin Froman 9bf6c76557 refactoring communicator into module 2019-07-10 17:38:20 -05:00
Kevin Froman be318f2403 punish peers for overloading get responses 2019-07-10 02:29:05 -05:00
Kevin Froman 52c7ba860d fixed mail UI for redesign 2019-07-09 22:17:56 -05:00
Kevin Froman b822a74c53 based block size protection added 2019-07-09 01:25:20 -05:00
Kevin Froman fe142528ca added streamedrequests dependency for future use 2019-07-08 13:42:06 -05:00
Kevin Froman bd647c9ccc correct downloadblocks bhash var name 2019-07-03 21:52:09 -05:00
Kevin Froman bcc475dc61 refactor downloadblocks, removed old main.js, correct replay protection check 2019-07-03 21:28:16 -05:00
Kevin Froman 873740c5ad reject large requests 2019-07-02 21:50:22 -05:00
Kevin Froman 98fcd9d139 fixed duplicate upload namespace 2019-07-02 19:43:18 -05:00
Kevin Froman 4538a7e470 undo replace mistake 2019-07-02 19:35:59 -05:00
KF 0e2928db38 * refactored client api endpoints to their own file and class 2019-07-02 18:16:04 -05:00
KF 2f07b2d00e * fixed some mail elements for bulma redesign
* added dll, exe to .gitignore
* fixed some miscpublicapi endpoints httpapi calls
2019-07-02 17:34:26 -05:00
Kevin Froman 10ef9ce41b refactored api servers, especially the public server. Client server to recieve similar refactoring soon 2019-07-02 01:32:26 -05:00
Kevin Froman 54dabefe45 incomplete work on refactoring client api endpoints 2019-07-01 15:38:55 -05:00
Kevin Froman 02c71eab2f * fixed fd handler probably
* fixed security level in ui redesign
* moved client api insertblock to its own blueprint
2019-06-29 15:17:48 -05:00
Kevin Froman cff38cb7c2 sync and onionrservices fixes 2019-06-29 13:18:31 -05:00
Kevin Froman d70afbf92b merge refactorinsert into travis' ui work 2019-06-28 17:26:37 -05:00
Travis 33340746dd Implemented Bulma for the new UI.
Tried to use the template element and JavaScript for some elements.
2019-06-28 16:24:34 -05:00
Kevin Froman bb5378ec4c fix importblocks metadata call not having core inst 2019-06-28 16:10:29 -05:00
Kevin Froman a27a5e5a45 added support for 0-truncated hashes in stringvalidators, added test for hash validation 2019-06-28 00:00:38 -05:00
Kevin Froman 03fbf32af9 added reconstructhash for working with block hashes without their leading zeroes 2019-06-27 21:43:50 -05:00
Kevin Froman dce453db81 fixed output in onionr.py, work on docs 2019-06-27 13:45:28 -05:00
Kevin Froman 44bcbac8ef + added optimization check
* fixed stats table
* added main docs file (WIP)
2019-06-27 01:36:52 -05:00
Kevin Froman 683aaa3978 added boilerplates 2019-06-26 15:13:36 -05:00
Kevin Froman 94ba3e29d1 do not show traceback when adding existing determiistic key 2019-06-26 14:54:13 -05:00
Kevin Froman 7f4605998c fix some commands terminal output 2019-06-26 01:34:34 -05:00
Kevin Froman 60d47e1e41 remove utils from netcheck 2019-06-26 00:41:49 -05:00
Kevin Froman 3bb0e48a06 added some of the missing boilerplate 2019-06-26 00:26:50 -05:00
Kevin Froman c8a50c5956
fixed broken waitforshare 2019-06-25 23:48:24 -05:00
Kevin Froman 0b34951423 redo new logging 2019-06-25 19:33:55 -05:00
Kevin Froman a5a50a84d4 adjust test to use new stringvalidation module 2019-06-25 19:32:44 -05:00
Kevin Froman 122eb4ee5f Finished removing onionrutils for the most part, except for some possible bugs remaining 2019-06-25 19:15:04 -05:00
Kevin Froman c7e06205b7 OnionrUtils fully removed (but not fully bug free)
flow now uses daemon thread for displaying output
2019-06-25 18:07:35 -05:00
Kevin Froman 909c002dc4 more progress in removing onionrutils class 2019-06-25 03:21:36 -05:00
Kevin Froman d378340099 * further splitting onionrutils into a module 2019-06-23 12:41:07 -05:00
Kevin Froman 0d258e1a16 * more utils refactoring, requests this time 2019-06-23 02:25:40 -05:00
Kevin Froman 7830484760 * started refactoring onionrusers into a full module instead of a class
* now use daemon threads to prevent process hanging
2019-06-23 02:00:27 -05:00
Kevin Froman e4ec850b60 correctly import add in blockmetadb 2019-06-22 18:06:16 -05:00
Kevin Froman 2b64cc9ba4 correct add function name 2019-06-22 18:01:55 -05:00
Kevin Froman 4e00bdb348 fixed small cli logging bugs 2019-06-22 17:54:41 -05:00
Kevin Froman 50e93f46e4 * Major core refactoring
* renamed clandestine to esoteric
2019-06-22 16:16:12 -05:00
Kevin Froman 5cee375b02 fixed small cli logging bugs 2019-06-20 16:59:36 -05:00
Kevin Froman 12227b6bcb a little work on clandestine UI 2019-06-20 02:59:32 -05:00
Kevin Froman 6630071802 log to terminal again in places where it should 2019-06-19 19:59:05 -05:00
Kevin Froman 065e97ab11 improved logging messages to be less spammy 2019-06-19 15:29:27 -05:00
Kevin Froman 8082570b7f * bumped nacl and unpaddedbase32 verison
* added/improved support for unpaddedbase32 keys
* greatly improved home UI and mail
* deniable blocks shouldnt use forward secrecy anymore
* dont add yourself as a contact
2019-06-19 01:57:13 -05:00
Kevin Froman cb2e803ae8 use contact module for friend command list names instead of getName() 2019-06-18 11:55:14 -05:00
Kevin Froman 1b897ebe1d disabled api crash detector to see if it is the thing causing crashes 2019-06-18 10:02:54 -05:00
Kevin Froman 50ac5f1520 Merge branch 'master' of ssh://github.com/beardog108/onionr 2019-06-17 23:34:05 -05:00
Kevin Froman 4f44906740 added announce node config 2019-06-17 23:33:22 -05:00
Travis 3855aa544f Updated favicon
Moved onionr-icon.png into shared/images
2019-06-17 22:36:19 -05:00
Kevin Froman 1daf410f8b bumped api crash timeout again 2019-06-17 15:51:00 -05:00
Kevin Froman 6c69d72d34 + added add to contact button in box message viewer
* fixed/improved name setting for friends/contacts
2019-06-16 23:24:12 -05:00
Kevin Froman b377890a79 removed another defunct config value 2019-06-16 22:02:06 -05:00
Kevin Froman ce2095d7f8 + added hit count stat
- removed bypass_tor_check as defunct config option
* actually fixed connect stat in cli for real this time
* improved ui stats more
2019-06-16 17:34:43 -05:00
Kevin Froman 3825d3857c - removed defunct config option
* changed bootstrap node
* improved web interface styles
* start-daemon script hopefully less prone to crash
* fixed openwebinterface url output
* added defaults for timer configs incase config can't be read or the values are missing
2019-06-16 15:56:22 -05:00
Kevin Froman 71805811cf corrected permissions again 2019-06-16 13:20:54 -05:00
Kevin Froman 8a9a5abe2e * phrase security.md better
* display correct number of peers in stats
* hopefully fix sigpipe issue
2019-06-16 12:55:48 -05:00
Kevin Froman 901b275d40 fixed everything being executable permission 2019-06-16 02:04:32 -05:00
Kevin Froman 934602ee09 handle keyboardinterrupt, eof and blank file path in interactive ui 2019-06-16 01:30:17 -05:00
Kevin Froman c07901ec06 reduced config reloads by a lot 2019-06-16 01:06:32 -05:00
Kevin Froman 7cb5f212ec Started reducing unnecessary disk i/o:
* Spawn core.Core() much less
2019-06-15 13:56:57 -05:00
Kevin Froman d054722bce Merge branch 'docs' into windowspow 2019-06-14 23:26:30 -05:00
Kevin Froman a6595fd8bc minor boilerplate adjustments 2019-06-14 23:26:10 -05:00
KF 5e73f83c57 + added powchoice.py to use old pow on windows, temporary fix for subprocess method not working there
* various bug fixes
2019-06-14 20:31:01 -05:00
Kevin Froman f5b3406684 + added tor data deletion command
* better support multiple tor versions in tor bootstrap (latest broke on manjaro before this)
* reduced interval for upload block timer to 5 seconds
* show message if inbox is empty in webui mail
2019-06-14 13:02:02 -05:00
Kevin Froman faa79bb35c netcheck now also uses last incomming connection time 2019-06-14 02:05:58 -05:00
Kevin Froman c4fa0c15f0 * doubled clock skew for blocks to 120 secs
* added onionr .onion to public api disclaimer page
2019-06-14 00:28:21 -05:00
Kevin Froman 2d78d3d017 fixed announce bug from refactor and added static data readme 2019-06-13 18:40:45 -05:00
Kevin Froman c85bb73d77 documented onionrusers better with readme 2019-06-13 14:53:20 -05:00
Kevin Froman 5edf0e234a added more subdirectory readmes 2019-06-13 11:24:34 -05:00
Kevin Froman 64944f6f7c - removed onionrdaemontools (split into many files, mostly into communicatorutils)
- removed included secrets.py since 3.6 is required now anyways
2019-06-13 01:58:17 -05:00
Kevin Froman 3d93a37d0c start removing daemontools by moving node announcement to communicatorutils file, deniable block insertion now config option 2019-06-12 21:35:30 -05:00
Kevin Froman 268325c07d
- removed simplecache for now
* fixed existingRand bytes check in announce in onionrdaemontools
* moved openhome to its own file
* slight comment and boilerplate changes
+ added more readme files for subdirectories
2019-06-12 15:12:56 -05:00
Kevin Froman 737719cb54 boilerplate and comment changes, added first subdirectory readme (for communicatorutils) 2019-06-12 01:44:15 -05:00
Kevin Froman 335db64096 * Progress in adjust tagline in files, license boilerplate fixes
* Import adjustments
2019-06-11 19:05:15 -05:00
Kevin Froman 2d20ecdfd3 * send introduce command instead of using duplicated logic
* remove unnecessary imports
* improve if self-address peer comparison to avoid some config reads
2019-06-11 01:08:44 -05:00
Kevin Froman d18f56eee2 added missing secrets import 2019-06-10 23:22:35 -05:00
Kevin Froman af6834cfd0 added missing secrets import 2019-06-10 23:21:44 -05:00
Kevin Froman 6e1f26dc91 dont allow anonymous to be set as a friends alias in the interface 2019-06-10 22:19:31 -05:00
Kevin Froman 7e058b29e0
* Removed hard coded data dir in daemon launch
* Documented subprocess pow better
* Calculate block size better for pow
+ Added monero donation address
2019-06-07 00:09:14 -05:00
Kevin Froman 3322778ff4 refactored onionr commands and other small adjustments 2019-06-01 11:54:36 -05:00
Kevin Froman 7e85b4a995 added current BS node 2019-05-18 13:49:25 -05:00
Kevin Froman 075467ad20
* updated contributing.md with better explanations
* added clandestine endpoint and web files, basic page layout
* better comply with gplv3 in pgpwords module
2019-05-18 13:46:48 -05:00
Kevin Froman b582377c8c fixed config and other bugs, improved connection server 2019-05-15 18:25:36 -05:00
Kevin Froman 4e3ad27485 newline in quoted mail 2019-05-13 00:01:37 -05:00
Kevin Froman e8baafa3b8 makedirs, not mkdirs 2019-05-12 09:44:02 -05:00
Kevin Froman b49199c7d1 makedirs, not mkdirs 2019-05-12 09:41:36 -05:00
Kevin Froman 4fcf3d69cd fix config setup not returning bool for existing data directory 2019-05-12 09:21:17 -05:00
Kevin Froman d4191b2cb5 communicator refactoring and better documentation 2019-05-11 13:32:56 -05:00
Kevin Froman d17970b181
+ Have Tor reject socks requests to non-onion services as a small security measure
* More refactoring
2019-05-09 00:27:15 -05:00
Kevin Froman 2879595c66 refactored communicator a bit 2019-05-07 22:28:06 -05:00