Commit Graph

129 Commits

Author SHA1 Message Date
Kevin Froman
e0fbe2033e
work on sockets 2018-09-14 20:05:25 -05:00
Kevin
1203bb2b7a * Adjusted connect configuration
* work on cli-ui
2018-08-31 22:29:57 -05:00
Kevin Froman
1b16c809fd work on user connections 2018-08-31 17:53:48 -05:00
Kevin Froman
6ecb1fa75d merged config to get up to date 2018-08-29 23:07:11 -05:00
Kevin Froman
53505832cc preparing for config merge 2018-08-29 23:05:38 -05:00
Kevin Froman
7a0cfe34f3
work on adding/removing friends, user info 2018-08-26 22:44:32 -05:00
Kevin Froman
7a7b627259 use config for some timers 2018-08-25 09:33:38 -05:00
Kevin Froman
b46bd42d9e fixed invalid argument call 2018-08-24 17:42:09 -05:00
Kevin Froman
e346c09228
bug fixes 2018-08-23 14:46:23 -05:00
Kevin Froman
e34c08b036 sync improvements, bug fixes, config changes 2018-08-23 12:48:49 -05:00
Kevin Froman
dd5cb99155
* do not save blocks if disk allocation reached
* improved some commenting
* bug fixes
2018-08-22 23:59:41 -05:00
Kevin
53577a4c10 work on netcheck and configuration 2018-08-21 15:01:50 -05:00
Kevin Froman
9d827493e4
+ v3 onion config
+ use newer ubuntu
2018-08-18 23:07:09 -05:00
Kevin Froman
40ea61707f
do not try to download already saved blocks from upload 2018-08-16 23:21:21 -05:00
Kevin Froman
91c1e22324
do not duplicate blacklist entries 2018-08-16 22:30:36 -05:00
Kevin Froman
5b20930d5c hopefully fixed block sync issue 2018-08-16 19:02:14 -05:00
Kevin Froman
06dc97869e
working on preventing replay attacks with block content 2018-08-16 00:01:40 -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
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
0ae052336c
+ onionr now introduces automatically
+ added daemon tools file
+ added .dockerignore
2018-08-07 02:31:53 -05:00
Kevin Froman
0a2fe2a0b1
* punish peers that share invalid blocks
* fixed profile crash
2018-08-03 15:01:13 -05:00
Kevin Froman
8694ab078e
+ remove peers who do not meet the minimum score
* minor bug fixes and documentation improvements
* do not cleanup peers if we have no online peers (probably not
connected anyway)
* do not run peer cleanup until a min
* do not spam block list on shutdown during block sync
* use correct thread decrement in peerCleanup
* added trust int to address table, not used yet
2018-08-03 01:28:26 -05: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
Kevin Froman
8bb5014d41
work on peer cleanup 2018-08-02 02:28:26 -05:00
Kevin Froman
d22701199c
* work on peer profiling
* block exchange order
* edited disclaimer html
* began working on peerCleanup
2018-08-01 02:22:22 -05:00
Kevin Froman
34a970d008 Merge branch 'node-profiling' of gitlab.com:beardog/Onionr into node-profiling 2018-07-31 00:28:41 -05:00
Kevin Froman
36c2581cec
do not spam dbhash 2018-07-31 00:28:10 -05:00
Arinerron
ddb3ce1e35 Various bug fixes 2018-07-30 21:41:32 -07: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
215fbcba68 Add web api callbacks 2018-07-29 17:37:12 -07: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
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
ee7e4289f1
Fixed thread exhaustion for address sync 2018-07-19 17:32:21 -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
865bc94ccb
+ flow plugin is now working
+ added escapeAnsi function to utils
2018-07-12 02:37:10 -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
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
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
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
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
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
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
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
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
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
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
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
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