Commit Graph

525 Commits

Author SHA1 Message Date
Arinerron
ce8800652d www/ui/ -> ui/ 2018-07-30 22:02:01 -07:00
Arinerron
8e01063f94 Move to www 2018-07-30 21:54:17 -07:00
Arinerron
ddb3ce1e35 Various bug fixes 2018-07-30 21:41:32 -07:00
Aaron
34b919d324 Add stuff to readme 2018-07-31 00:14:42 +00:00
Kevin Froman
4decda916d
peers scores are now calculated on request success and are saved, WIP 2018-07-30 17:48:29 -05:00
Arinerron
88df88204c Add files 2018-07-29 17:43:28 -07:00
Arinerron
215fbcba68 Add web api callbacks 2018-07-29 17:37:12 -07:00
Kevin Froman
d90be83776
work on new whitepaper 2018-07-27 18:04:30 -05:00
Kevin Froman
d39208d648
added static dir and serving for web ui 2018-07-27 00:48:22 -05:00
Kevin Froman
afdee2a7a5
work on new peer profiling system 2018-07-26 22:07:50 -05:00
Kevin Froman
5f1a02e42d
upload to multiple peers 2018-07-23 15:23:32 -05:00
Kevin Froman
ca122dc1ba
upload to multiple peers 2018-07-23 15:04:36 -05:00
Kevin Froman
0beffab96e
+ added blockimporter.py
* removed outdated direct connection handler
2018-07-23 02:45:48 -05:00
Kevin Froman
71007a2d0a
+ added reverse block insertion
* handle downloading of blocks better when peer goes offline
* bumped default disk allocation
* added post request util
2018-07-23 02:43:10 -05:00
Kevin Froman
8e1b6e1e7e
added forcedifficulty 2018-07-21 19:20:28 -05:00
Kevin Froman
862b609687
* reduce spam
* another bytes fix for old python
2018-07-19 22:02:09 -05:00
Kevin Froman
ee7e4289f1
Fixed thread exhaustion for address sync 2018-07-19 17:32:21 -05:00
Kevin Froman
1c80849c38
do not attempt block decryption in metadata processing if it is not encrypted 2018-07-19 16:31:48 -05:00
Kevin Froman
85fdcab534
fixed bytes on new pow in older python versions 2018-07-19 15:12:48 -05:00
Kevin Froman
0f69bfd295
fixed bytes issue with new pow and older python 2018-07-19 14:46:13 -05:00
Kevin Froman
3b04771eb7
finished inbox and signature validation for private messages 2018-07-19 02:08:51 -05:00
Kevin Froman
732fe70ff4 Merge branch 'refactoring2' into new-pm 2018-07-18 02:36:40 -05:00
Kevin Froman
2a4cef68f8
* onionrblockapi supports pubkey encryption now
* can now read messages in mail plugin
2018-07-18 02:33:23 -05:00
Arinerron
40341b1dc3 Misc updates 2018-07-17 21:45:51 -07:00
Kevin Froman
7390945ebf
work on mail plugin inbox 2018-07-17 02:18:17 -05:00
Kevin Froman
f432d9193e
+ implemented some menus and message drafting in pm plugin
* prevent block types from being too large in metadata processing
2018-07-16 02:40:58 -05:00
Kevin Froman
f42d308b2b
- removed gui for now
* work on new pm plugin
2018-07-13 21:43:03 -05:00
Kevin Froman
40255538da
reworking PM system before migration to plugin and updating blockapi to encryption format 2018-07-13 16:02:41 -05:00
Kevin Froman
4ba1bd3513 Merge branch 'master' into refactoring2 2018-07-13 01:19:18 -05:00
Kevin Froman
6bf679d107
fixed add-peer 2018-07-13 01:14:09 -05:00
Kevin Froman
ab65f5ea95
removed old communicator 2018-07-12 23:57:03 -05:00
Kevin Froman
db203290dd
handle keyboardinterrupt better in flow 2018-07-12 18:23:58 -05:00
Kevin Froman
865bc94ccb
+ flow plugin is now working
+ added escapeAnsi function to utils
2018-07-12 02:37:10 -05:00
Kevin Froman
d879383a8a
work on new flow plugin and block metadata caching 2018-07-11 14:45:38 -05:00
Kevin Froman
f918ae9b9c
started work on flow plugin 2018-07-11 02:35:22 -05:00
Kevin Froman
ba1b154f52
fixed bug where new communicator would download blocks it already has 2018-07-10 02:29:17 -05:00
Kevin Froman
7cf4cd9862
more bytes issues 2018-07-10 02:20:32 -05:00
Kevin Froman
e0618f3166
use var instead of direct call in hash comparison in block sync 2018-07-10 02:15:55 -05:00
Kevin Froman
2c70531a51
fixed invalid bytes concat when hash is invalid on some versions 2018-07-10 02:11:58 -05:00
Kevin Froman
33787ef39d
* fixed broken block metadata validation, incorrect time integer check and missing size value for encryptType 2018-07-10 01:17:30 -05:00
Kevin Froman
9083775887
* do not report inserted message if keyboard interrupt/failure
* do not crash on keyboard interrupt in pow
2018-07-09 22:09:45 -05:00
Kevin Froman
b3b5e5bb50
+ re-added old pow system as a different class for things like ed25519 keys
* no longer run communicator threads if they need peers and we have none connected
2018-07-09 02:02:33 -05:00
Kevin Froman
f027202ac9
* Pretty much done with new POW format 2018-07-08 02:51:23 -05:00
Kevin Froman
31236eea84
hopefully issues with keyboardinterrupt 2018-07-07 19:26:01 -05:00
Kevin Froman
8727dc2241
Merge branch 'refactoring2' of gitlab.com:beardog/Onionr into refactoring2 2018-07-07 19:03:46 -05:00
Arinerron
bdb9fa8cc4 Misc updates 2018-07-05 21:27:12 -07:00
Kevin Froman
06986d2703
* now use communicator2 by default
* fixed shutdown command crash
* now handle shutdown of api in communicator
* work on new POW system (block hash being the POW hash)
2018-07-05 02:31:47 -05:00
Arinerron
c083d54abb Merge branch 'refactoring2' of https://gitlab.com/beardog/onionr into refactoring2 2018-07-04 12:07:27 -07:00
Arinerron
bd3a3bfeed Fix type bug 2018-07-04 12:07:17 -07:00
Kevin Froman
bd819a3ba6
* fixed validateMetadata not having self
+ added isIntegerString
* other fixes
2018-07-04 13:49:43 -05:00
Kevin Froman
80648cc920
added kex command 2018-07-03 18:44:12 -05:00
Kevin Froman
6f761aaeff
do not have linebreak in own hsaddr 2018-07-03 16:27:42 -05:00
Kevin Froman
58110e461e
improving new communicator bootstrapping, do not connect to self 2018-07-03 16:24:14 -05:00
Kevin Froman
267220ad72
only attempt announce with online peers 2018-07-03 14:26:53 -05:00
Kevin Froman
f1c8c8b843
* changed how new communicator uses bootstrap (untested)
+ added function to calculate human readable strings from hex
2018-07-03 03:18:07 -05:00
Kevin Froman
efb049fddd
fixed indent in test 2018-07-02 16:20:19 -05:00
Kevin Froman
3a7cefbf53
* do not fail localCommand if host file does not exist
* disabled plugin tests
2018-07-02 16:15:59 -05:00
Kevin Froman
75bb8a11bd
do not fail on plugin import 2018-07-02 16:08:47 -05:00
Kevin Froman
45234588e2
* fixed broken insertblock with bytes
* some work on improving tests
* temporarily disabled testblockapi test
2018-07-02 03:13:18 -05:00
Kevin Froman
f5bd9220fc
improved communicator2 comments 2018-07-01 23:04:14 -05:00
Kevin Froman
5c49f544fe documented communicator2 better and bootstrap better 2018-07-01 16:01:19 -05:00
Kevin Froman
a2ad90f2b9 fixed invalid conn commit 2018-06-30 22:38:57 -05:00
Kevin Froman
92b0ad975f
+ Now log running seconds in heartbeat
* Do not spam "could not connect to any peer" if we have a peer connected
2018-06-26 00:26:01 -05:00
Kevin Froman
6fd0f9aded
create daemon db table if it doesn't exist 2018-06-26 00:04:59 -05:00
Kevin Froman
65ea5cf6f0
completed validateMetadata function 2018-06-25 23:39:45 -05:00
Kevin Froman
956f720741 added call to new validateMetadata function 2018-06-25 02:34:43 -05:00
Kevin Froman
f148724e69 work on peer/address exchange in new communicator 2018-06-23 02:36:22 -05:00
Kevin Froman
a7d0d73b5b add new block to hash db in communicator 2018-06-21 19:57:12 -05:00
Kevin Froman
232bc4932a * fixed threadCount not lowering for getBlocks
* fixed onionrblockapi not properly converting bytes to string for block
hash
2018-06-21 19:34:42 -05:00
Kevin Froman
ff8128ae33 use bytes instead of str when inserting 2018-06-21 14:07:00 -05:00
Kevin Froman
3c8d1a5b7f readded missing setdata in core 2018-06-21 13:56:07 -05:00
Kevin Froman
ca53da854e readded forgotten setdata to insertblock 2018-06-21 02:34:42 -05:00
Kevin Froman
997e27b532 do not use blockapi for addmessage 2018-06-21 02:29:51 -05:00
Kevin Froman
9abb2f4f85 fixed undefined metadata in insertblock 2018-06-21 02:26:54 -05:00
Kevin Froman
9968a72fbc + added clear offline peers to new communicator
+ fixed unable to insert unencrypted block
2018-06-21 02:24:58 -05:00
Kevin Froman
829dba45cc temporarily disabled onionrblockapi metadata 2018-06-21 02:17:20 -05:00
Kevin Froman
4bc5317b63 fixed leftover break in core 2018-06-21 01:48:54 -05:00
Kevin Froman
0087e04f57 work on new blocks and encryption 2018-06-20 15:56:28 -05:00
Kevin Froman
b3cbdbaceb Merge branch 'refactoring2' of gitlab.com:beardog/Onionr into refactoring2 2018-06-20 14:02:17 -05:00
Kevin Froman
0a8052a9a4
* work on new block system, encryption
+ added new exception
+ encryption now anonymous by default, will probably remove anonymous
param in future
2018-06-20 02:40:49 -05:00
Arinerron
06b4094d45 misc changes 2018-06-19 21:51:03 -07:00
Arinerron
d77bb92e28 Refactor initializer 2018-06-19 21:36:07 -07:00
Kevin Froman
10ebdddb24
* work on new block system, working on encryption
* added onionrvalues file for onionr requirements
* added invalidmetadata exception
2018-06-19 02:01:59 -05:00
Kevin Froman
7864677498
+ added secrets.py
* work on communicator2, syncing blocks
* modify insertblock to use new pow metadata (may need more work for new
spec)
2018-06-16 15:54:56 -05:00
Kevin Froman
a4824d9b8c
work on new communicator with downloading new blocks 2018-06-16 02:33:54 -05:00
Kevin Froman
31a35472ce
* fixed broken local command
* work on communicator2 block syncing
2018-06-15 14:09:41 -05:00
Kevin Froman
e339b78e88
merge gitlab 2018-06-15 00:47:37 -05:00
Kevin Froman
21786c6885
work on getting new blocks in communicator2 2018-06-15 00:45:07 -05:00
Arinerron
debd123ffc Don't sort config keys 2018-06-13 21:42:19 -07:00
Arinerron
b5c06ce64c Add warning message to new communicator 2018-06-13 21:35:56 -07:00
Arinerron
af237eab0b Refactor Onionr 2018-06-13 21:17:58 -07:00
Kevin Froman
6cb69c7187
work on new peer pool system in new communicator 2018-06-13 17:22:48 -05:00
Kevin Froman
effeddc536 Merge branch 'refactoring2' of gitlab.com:beardog/Onionr into refactoring2 2018-06-13 02:34:35 -05:00
Kevin Froman
083ffd8af3
work on new communicator, added some communication to peers and imported some old
communicator features

added powValue to address db, currently unused
2018-06-13 02:33:37 -05:00
Arinerron
d382fca524 Dynamically adjust stats menu size 2018-06-12 23:09:55 -07:00
Arinerron
25208e4374 Fix division-by-zero error 2018-06-12 22:50:55 -07:00
Kevin Froman
22aa3110d5
+ now exit in new daemon on command
+ no exit in new daemon on api crash
2018-06-12 22:43:39 -05:00
Kevin Froman
ed1d09a7b6
+ added timer object to new communicator 2018-06-12 18:32:33 -05:00
Kevin Froman
b6da3385cb
+ added onionrpeers file
+ added onionrexceptions file
+ work on new communicator
2018-06-12 02:34:33 -05:00
Kevin Froman
d73b69c9b4
work on new communicator, with nist beacon 2018-06-11 02:40:45 -05:00
Kevin Froman
7d3e7e7a30
started work on communicator2 2018-06-10 03:00:01 -05:00
Kevin Froman
77a847a0b7
* fixed addpeer command to work with pow
* improved stats screen to show pow token for your key
2018-06-09 01:21:14 -05:00
Kevin Froman
f8657deaa3
work on new block system 2018-06-08 02:47:14 -05:00
Kevin Froman
ee04c6d2bf
work on new block system 2018-06-08 02:46:05 -05:00
Kevin Froman
2703731053 Merge branch 'dev' of github.com:beardog108/onionr into refactoring2 2018-06-08 01:15:47 -05:00
Kevin Froman
8a16c972fd
work on new block system 2018-06-07 03:15:01 -05:00
Arinerron
0ca6480c79 silly me, missing type() 2018-06-06 18:58:40 -07:00
Arinerron
1a6fa19323 Fix 2 DOS vulns, improve Onionr efficiency 2018-06-06 18:54:35 -07:00
Arinerron
9e9595b4ec Fix header colors 2018-06-04 23:17:17 -07:00
Arinerron
4ec3d037e9 Few misc changes 2018-06-04 22:26:11 -07:00
Arinerron
9c2acb7099 Add createChain and mergeChain 2018-06-04 19:26:04 -07:00
Kevin Froman
a25eca2818
merge import 2018-06-04 15:24:02 -05:00
20esaua
78f77c182d
Update onionrblockapi.py 2018-06-04 09:29:04 -07:00
Kevin Froman
640ce593f0
removed old commented out import 2018-06-02 00:05:46 -05:00
Arinerron
cdb199e74d
Add block "chains" (ex. parent->child mergable blocks) 2018-06-01 00:02:56 -07:00
Arinerron
8846dcc2c6
See details
- Completes support for repositories
  - `./RUN-LINUX.sh create-repository [plugins...]`
  - `./RUN-LINUX.sh add-repository <block hash>`
  - `./RUN-LINUX.sh remove-repository <block hash>`
- Fixes several misc bugs
- Refactors code
  - Some messy code was rewritten
  - Variables renamed
  - Migrated old block api (insertBlock) to new Block API (onionrblockapi)
  - Kept to standards
  - Made code more reusable in `onionrproofs.py`
- Improves logging messages
  - Added error output for some features missing it
  - Capitalized sentences
  - Added punctuation where it is missing
  - Switched `logger.info` and `logger.debug` in a few places, where it is logical
  - Removed or added timestamps depending on the circumstance
- Added a few misc features
  - Added command aliases for `add-file` and `import-blocks`
  - Improved statistics menu
    - Displays `Known Block Count`
    - Calculates and displays `Percent Blocks Signed`
2018-05-31 21:25:28 -07:00
Arinerron
a232e663a7
Change pluginmanager to dependency 2018-05-19 15:52:24 -07:00
Arinerron
a611c7de34
Add tuple of onionr version 2018-05-19 15:27:26 -07:00
Arinerron
e03a47d7f8
Fix resource leaking 2018-05-19 15:22:35 -07:00
Arinerron
0ac27ad0e2
add block tests 2018-05-19 15:21:35 -07:00
Arinerron
007d7ad9fb
Update to new Block API 2018-05-19 15:11:51 -07:00
Kevin Froman
500658808f Merge I2P Branch (#19)
* work on i2p support

* work on i2p support

* redid socks check

* redid socks check

* redid socks check

* work on i2p and fixed broken block processing

* fixed no newline delim on block list in api

* fixed no newline delim on block list in api

* fixed no newline delim on block list in api

* use extend instead of append for blocklist after newline changes
2018-05-19 21:32:21 +00:00
Kevin Froman
a38eb667ef
increased allowed pow id size 2018-05-18 23:06:22 -05:00
Kevin Froman
5b2e9f9265
fixed whitelist in setaddressinfo 2018-05-18 16:59:46 -05:00
Kevin Froman
78265990ab
fixed broken getepoch 2018-05-18 16:49:05 -05:00
Kevin Froman
16282d79d3
refactored timers and added lastconnect to address database 2018-05-18 01:22:16 -05:00
Arinerron
c1105c5f0f
Delete core 2018-05-16 11:26:15 -07:00
Arinerron
30f617c83e
Update plugins to use new Block API 2018-05-15 20:08:42 -07:00
Arinerron
3c8cbd2291
Refactor onionrpluginapi 2018-05-15 19:16:33 -07:00
Arinerron
e50659753a
complevit! 2018-05-15 19:12:23 -07:00
Arinerron
9fdb6d8609
Create block API (todo docs) 2018-05-15 18:47:58 -07:00
Arinerron
e95feb06db
Work on block api, finish later 2018-05-14 23:43:29 -07:00
Arinerron
93338e3fb9
Add repository support 2018-05-14 23:16:55 -07:00
Arinerron
bc60b6bfc0
Fix unit tests 2018-05-14 23:16:40 -07:00
Kevin Froman
03eb98fd16
fixed key pow verification 2018-05-15 00:16:00 -05:00
Kevin Froman
d02af9600a
removed btc and stopped delivering pow hash 2018-05-14 23:28:12 -05:00
Kevin Froman
c13a742335
removed btc and stopped delivering pow hash 2018-05-14 23:24:38 -05:00
Kevin Froman
973b8583b6
Fixed index error when checking for pow 2018-05-14 20:10:05 -05:00
Kevin Froman
0f455b50c9 Merge branch 'communicator-multithreading-newline' into communicator-multithreading 2018-05-14 19:45:15 -05:00
Kevin Froman
2e9af7a4a3
fix thread crash 2018-05-14 19:44:54 -05:00
Kevin Froman
361f1e3d54 Merge branch 'communicator-multithreading' of github.com:beardog108/onionr into communicator-multithreading 2018-05-14 11:32:01 -05:00
Kevin Froman
7098103445
small commit before merge 2018-05-14 11:31:55 -05:00
Arinerron
019f13fe8d
Fix bug involving plugin duplicate names 2018-05-13 21:22:28 -07:00
Arinerron
15d0e7c6fd
Fix small bug with description and authors 2018-05-13 21:19:33 -07:00
Arinerron
b1e9e61430
Make pluginmanager functional 2018-05-13 21:11:31 -07:00
Arinerron
f0e842eae4
Fix positional argument bug 2018-05-12 23:37:47 -07:00
Arinerron
f9b93fd491
Add newline delimiter to metadata+content 2018-05-12 20:55:34 -07:00
Arinerron
fe4261c4a2
Various improvements
- Adds a lot more to the pluginmanager
- Refactors code
- Relocates functions
2018-05-12 20:45:32 -07:00
Arinerron
adf007bf30
Make progress bar 2018-05-10 22:18:39 -07:00
Arinerron
adc85c76c4
Improve console output and status message 2018-05-10 20:19:48 -07:00