Commit Graph

205 Commits

Author SHA1 Message Date
Arinerron d5355fdc9e
Merge remote-tracking branch 'origin/tempblocks' into onionrui 2018-11-09 22:13:50 -08:00
Kevin Froman 3764c1a115 fixed bug where process would not die 2018-11-03 22:26:18 -05:00
Kevin Froman a31a0fd264
removed pubkey pow and bug fixes 2018-11-03 00:06:04 -05:00
Kevin Froman 58aa8ce1cc
* Increased heartbeat timer
* Tried to fix bug where wrong node was being reported as being
announced to
* Refactored core somewhat
- Removed data dir encryption (TODO: just encrypt pub/priv key pair)
- Removed simplecrypt dependency
2018-10-30 17:22:06 -05:00
Kevin c073020b80 Added API check in requests 2018-10-26 22:29:25 -05:00
Kevin Froman 5f67cc388f delete expired blocks 2018-09-30 11:53:39 -05:00
Kevin Froman 1a856c365f work on sockets, added profile setter script 2018-09-25 23:58:11 -05:00
Kevin Froman ad3d7940f5 work on sockets 2018-09-22 23:53:09 -05:00
Kevin Froman 759da55094 work on sockets 2018-09-22 00:01:17 -05:00
Kevin Froman d3f4e912f9 work on sockets 2018-09-20 12:41:34 -05:00
Kevin Froman 7fa41f31e7 work on sockets 2018-09-20 12:16:37 -05:00
Kevin Froman 2164ded679 work on sockets 2018-09-20 12:15:08 -05:00
Kevin Froman c2b0277612 work on sockets 2018-09-20 12:07:50 -05:00
Kevin Froman 55879b71a5 work on sockets 2018-09-20 12:05:44 -05:00
Kevin Froman e826bca19e work on sockets 2018-09-20 12:04:58 -05:00
Kevin Froman 7baa7d5d5f
work on sockets 2018-09-20 00:13:26 -05:00
Arinerron 7ec869a36f Increment version number 2018-09-06 21:57:10 -07:00
Kevin Froman cf37823fd7
removed board plugin for now, added getfile command 2018-09-04 13:56:05 -05:00
Kevin Froman 6ecb1fa75d merged config to get up to date 2018-08-29 23:07:11 -05:00
Kevin Froman c0c0f838b6 better user info syncing and show names in mail 2018-08-28 20:09:27 -05:00
Kevin Froman c907558dd1
more work on user info 2018-08-27 23:45:31 -05:00
Kevin Froman 7a0cfe34f3
work on adding/removing friends, user info 2018-08-26 22:44:32 -05:00
Kevin Froman e34c08b036 sync improvements, bug fixes, config changes 2018-08-23 12:48:49 -05:00
Kevin Froman 5f21d15cdd
+ blocks can now be blacklisted
* Peers sync a little better
2018-08-11 00:23:59 -05:00
Kevin Froman 12d39393b4
* cache pip requirements in dockerfile
* import blacklist into core
+ began work on blacklist command
* work on blacklist module
* modified dockerignore
2018-08-10 17:13:58 -05:00
Kevin Froman bc95d8855d
+ added POW announce for node (now POST)
* fixed bug where core hsAddress was not available on first startup
2018-08-08 14:26:02 -05:00
Kevin Froman 1ae2725319
improved onionr startup and port binding 2018-08-06 02:50:08 -05:00
Kevin Froman 2fd387eeb8 Merge branch 'node-profiling' of gitlab.com:beardog/Onionr into node-profiling 2018-08-05 01:36:27 -05:00
Kevin Froman 2907471b5f
* always check needed config on startup
+ added Dockerfile
2018-08-05 01:35:49 -05:00
Arinerron e2abf5f046 Onionr UI updates 2018-08-04 21:09:33 -07:00
Arinerron 0b77a88e72 Improve UI 2018-08-03 19:52:45 -07:00
Kevin Froman 032aa780ef
* fixed bug causing onionr to usually only have 1 peer at once
* do not crash when loading new peer profile
* removed code for defunct *address* proof of work
+ added maxStoredPeers and maxConnect config options (TODO)
+ added lastConnectAttempt to address db
+ added command to cause instant peer exchange
+ added connectCheck.txt for TODO connection testing
2018-08-02 15:18:01 -05:00
Arinerron ddb3ce1e35 Various bug fixes 2018-07-30 21:41:32 -07:00
Arinerron 215fbcba68 Add web api callbacks 2018-07-29 17:37:12 -07: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 f42d308b2b
- removed gui for now
* work on new pm plugin
2018-07-13 21:43:03 -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 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 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
Kevin Froman 80648cc920
added kex command 2018-07-03 18:44:12 -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 5c49f544fe documented communicator2 better and bootstrap better 2018-07-01 16:01:19 -05:00
Kevin Froman 997e27b532 do not use blockapi for addmessage 2018-06-21 02:29:51 -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 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 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 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
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 b6da3385cb
+ added onionrpeers file
+ added onionrexceptions file
+ work on new communicator
2018-06-12 02:34:33 -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 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 1a6fa19323 Fix 2 DOS vulns, improve Onionr efficiency 2018-06-06 18:54:35 -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
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 a611c7de34
Add tuple of onionr version 2018-05-19 15:27:26 -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
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 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
Arinerron 6b9f21fd08
Add color configuration to statistics command 2018-05-10 19:20:14 -07:00
Arinerron 2f7002fc67
Improve statistics command 2018-05-10 19:05:56 -07:00
Kevin Froman 193845104e
onionr can now import blocks from disk 2018-05-10 02:42:24 -05:00
Kevin Froman 5af0b5b7a5 Merge branch 'communicator-multithreading' of github.com:beardog108/onionr into communicator-multithreading 2018-05-07 01:55:28 -05:00
Kevin Froman bc88e8107c
work on pow for public keys 2018-05-07 01:55:03 -05:00
Arinerron 07eb512977
Move default-plugins, debug gui 2018-05-06 16:00:28 -07:00
Kevin Froman ccea91e260
fixed merge issues 2018-05-04 12:44:35 -05:00
Arinerron 0af569acff
Move config to static-data 2018-05-04 00:14:27 -07:00
Kevin Froman 1a02124122
fixed broken shutdown command 2018-05-02 20:14:00 -05:00
Arinerron 0a7c3aeaab
Improve daemon stopping error handling 2018-05-01 23:35:08 -07:00
Arinerron cfb1986ad0
Add run check to node introduction function 2018-05-01 23:25:44 -07:00
Arinerron 7b7c4e01cb
Add debug info on exceptions 2018-05-01 23:01:20 -07:00
Kevin Froman 7fd9319cfc
changed http server to gevent from flask built in 2018-05-01 02:26:48 -05:00
Kevin Froman 0d9e0c7066
changed http server to gevent from flask built in 2018-05-01 02:25:31 -05:00
Kevin Froman 28e080fe1a signed blocks related crashes fixed hopefully 2018-04-26 21:08:56 -05:00
Kevin Froman c9b7528db4
more work on block headers, PMs now signed/verified 2018-04-26 14:56:17 -05:00
Kevin Froman ad56082271
work on new header system 2018-04-26 02:40:39 -05:00
Kevin Froman acd5494979
fixed wrong var used for peer causing crash 2018-04-25 18:21:43 -05:00
Kevin Froman c249a42bb7
added addres+pubkey to stats 2018-04-25 18:01:18 -05:00
Kevin Froman 6b9d4f8fc6
work on new block metadata format and some small bug fixes 2018-04-24 23:04:12 -05:00
Arinerron 3f6f981847
Change bootstrap node list 2018-04-22 21:47:14 -07:00
Arinerron e820cc65ac
Fix bug involving removing enabled plugins 2018-04-22 21:25:54 -07:00
Arinerron 0dc6a0b6c5
Refactor code 2018-04-22 20:49:53 -07:00
Arinerron a5dbf73df4
Simple fix for GUI plugin 2018-04-22 20:45:25 -07:00
Arinerron 36d9ebd4f1 Merge branch 'crypto' of https://github.com/beardog108/Onionr into crypto 2018-04-22 20:42:50 -07:00
Arinerron 654703d902
Start working on plugin manager 2018-04-22 20:42:37 -07:00
Kevin Froman 8300cd1c91
fixed messed up gethostname() 2018-04-22 22:20:52 -05:00
Kevin Froman 8853926287
bumped api version and removed encode on setdata since it is always bytes now 2018-04-22 21:16:11 -05:00