Commit Graph

66 Commits

Author SHA1 Message Date
sairajzero
fd592da8ed Supernode Update
Changes:
- Changes for wss update
Added:
- Added time to data
- errorFeedback: (if on)Feedback if any error in processing data from users.
- live-request: When a new data is stored, sends it to all respective requestors of that floID.
- deleteRequest: Users will now be able to delete the data received by them from cloud. (Note: user must be the receiverID of the data; sign verification ll be done).
Improvements:
- Improved data processing from wss.
- Improved data-signature format (new format: "receiverID|time|application|type|message|comment").
- Time in data must be within the allowed delayDelta.
- Feedback vectorclock of stored data to the sender.
- Dedicated disk will now be applied to authorised apps instead of diskList (removed floGlobals.diskList)
	. Authorising apps will automatically create a new disk for the app and imports all data of the app from defaultDisk.
	. Unauthorising apps will automatically exports all data from app disk to defaultDisk and deletes the app disk. (Caution: Unauthorising an app will cause diskCleanUp to delete all data stored before deleteDelay).
- Improved autoDeleteStoredData to diskCleanUp. For defaultDisk: deletes all data before deleteDelay, For authorised apps deletes data before deleteDelay sent 'from non-subAdmins' and/or 'to non-admin'.
Bug fixes:
- Minor bug fixes
2020-09-17 17:45:20 +05:30
sairajzero
4a8e8bd241 Websocket Improvement
* Added gid and uid to websocket (mg_connection)
Note: gid = group ID, uid = unique ID.
* Replaced old ws msg processing functions with new ones
* System functions:
- sys_display: Displays in console/terminal
- sys_unicast: unicast message to respective ws
- sys_broadcast: broadcast message to all ws
* Supernode to Users:
- broadcast: Sends msg to all ws
- groupcast: Sends msg to ws of affilated group
- unicast: Sends msg to respective ws
*User to Supernode:
- forward: Forwards msg from user to supernode ws
2020-09-17 17:07:05 +05:30
sairajzero
4e58e7c9c2 Kbucket sub-module fix 2020-09-09 20:54:59 +05:30
sairajzero
0bdf806d36 update stdop and beautify 2020-09-07 21:27:34 +05:30
sairajzero
1e57f4f6ab Improvements and Bug fixes 2020-09-02 03:06:15 +05:30
sairajzero
25acfab2ef bug fix 2020-08-30 02:57:01 +05:30
sairajzero
3bf8d3214c Migration feature
- Added migration feature when nodes are added or removed.
- Updated stdop
- Optimisation done for floSupernode module.
- Converted reactor events to respective functions for optimisation.
- fixed minor bugs.
2020-08-19 02:16:00 +05:30
sairajzero
f3d29b4a97 auto delete messages that are not sent to the applicationID 2020-03-10 17:27:54 +05:30
sairajzero
c31dcfbb62 preformance improvement
The console logs slows down the browser and script, Thus,
Adding console.clear() before refreshing the data.
2020-02-22 23:36:52 +05:30
sairajzero
980f516cb8 Backup bug fixes
Fixed the bugs that were causing errors in backup
2020-01-31 05:11:23 +05:30
sairajzero
db0b8341ae bug fix 2020-01-15 16:07:01 +05:30
sairajzero
607a53f1be bug fix: IDB searchData 2020-01-08 14:39:01 +05:30
Sai Raj
782fbdc665
Merge pull request #1 from ranchimall/master 2020-01-05 19:53:06 +05:30
sairajzero
0f837c17f2 updating to std_op2.0 2020-01-05 19:51:59 +05:30
sairajzero
964f29e916 bug fix 2020-01-05 19:11:15 +05:30
Sai Raj
c74aa184cf
Merge pull request #3 from sairajzero/master 2020-01-02 00:56:59 +05:30
Sai Raj
bfefea5215
adding log directory 2020-01-02 00:55:54 +05:30
Sai Raj
7bef8ac826
Merge pull request #2 from sairajzero/master 2020-01-02 00:48:43 +05:30
sairajzero
1f4d18e540 One-Click Startup
Adding one-click bash script to start the supernode
All logs are stored in logs directory
Configurations are listed in .config file
2020-01-01 23:21:11 +05:30
sairajzero
79e2212a50 Cases when a node comes back online
Added: getInnerNodes and getOuterNodes to floSupernode.kBucket
Fixed bug: clearCredentials
Adding cases when a node comes back online
2019-12-28 19:00:52 +05:30
Sai Raj
96ea924278
removing floSight links of amazon 2019-12-05 16:42:36 +05:30
Sai Raj
976a197c2b
bug fix 2019-12-05 14:38:32 +05:30
Sai Raj
4425a02d32
bug fix 2019-12-05 14:28:08 +05:30
sairajzero
5f7737ea27 adding multifetch for blockchain API 2019-12-01 11:40:19 +05:30
sairajzero
1d845a1ca4 store/retrive credentials securely for automatic login
Adding Sharmirs Secret functions
Store and retrive the private key and server password securely
A dump credential for each credential will be stored to improve security
clearCredentials(): clear the stored credentials
2019-12-01 03:09:43 +05:30
sairajzero
f543c2c0d3 auto-delete feature
Supernode automatically deletes messages that are not sent by subAdmins of an application and applications that are not associated.
The delete occurs every one hour, the messages are stored for a configurable time (deleteDelay) before deleted
2019-11-27 10:26:01 +05:30
sairajzero
76ec38ceed read subAdmin list for application from blockchain
now reads subadmin list for every application from blockchain.
subadmin list will be used to delete unwanted messages from supernode IDB
2019-11-26 17:21:43 +05:30
sairajzero
bfb86f6085 Collect application list from blockchain
Supernode now collect list of applications with their adminID from blockchain data
2019-11-26 16:16:05 +05:30
sairajzero
a7d45c32da improving serveList and storeList updation and usage 2019-11-24 19:50:04 +05:30
sairajzero
3f7a8c1479 bug fix: backup rotation exceptions
Limiting the rotation while connecting to backup nodes. i.e, not enough supernodes available.
Handling the above exception in backup_node_offline event
2019-11-23 21:11:53 +05:30
sairajzero
db3c86e8c7 bug fix 2019-11-19 11:04:27 +05:30
sairajzero
2ae683d51e bug fix : removing kbucket rotation limit 2019-11-19 09:54:56 +05:30
sairajzero
da3e5bdad4 bug fix : adding another sleep for 2s 2019-11-17 23:30:48 +05:30
sairajzero
a0387132cf bug fix 2019-11-16 20:35:06 +05:30
sairajzero
0f50db3315 bug fix 2019-11-16 20:28:43 +05:30
sairajzero
9c445a65fc bug fix 2019-11-16 20:18:09 +05:30
sairajzero
2757aaa20e bug fix : removing async sleep 2019-11-16 19:36:11 +05:30
sairajzero
37ece209fa adding sleep delay before connecting to backup nodes 2019-11-16 19:32:46 +05:30
sairajzero
c6383a6f8f bug fix
Fixed : getNextSupernode and getPrevSupernode return object bug
2019-11-16 01:20:50 +05:30
sairajzero
466d0d621b bug fix : start serve and store backup process only when its not 2019-11-15 17:56:04 +05:30
sairajzero
f123cf611d Reforming and invoke request data
Reformed the request data event
Trigger the request data event when a node comes back online and when a node is asked to store backup of a node
2019-11-15 17:30:23 +05:30
sairajzero
b56f90d292 Flow when a node revives
Added the indications and processes when a noded comes back online:
Connect to the backup nodes
Inform the backup nodes that node is revived
Serving node transfers the serve list to revived node
Storing nodes informs their farest stored backup to connect to revived node
2019-11-14 02:12:16 +05:30
sairajzero
d7be0d414f Flow when a node dies
Added the indications and processes when a noded goes offline:
The previous nodes that the dead was serving ll connect to a next available node
The immediate prev node informs the immediate next node to start serving the dead
2019-11-12 21:15:14 +05:30
sairajzero
f7a14aa304 Merge branch 'master' of https://github.com/sairajzero/SuperNodeStorage 2019-11-09 19:25:14 +05:30
sairajzero
48700f4b95 recompiling binary 2019-11-09 19:22:13 +05:30
sairajzero
0e6c81e5ab backup feature : indicate_sn_up, store_backup_data, request_data
Added following features:
inidicate the next node when a sn is down
inidicate the next node when a sn is up
request backuped data when a sn comes back online
2019-11-08 22:33:17 +05:30
sairajzero
4f4dc0b431 Backup Feature: serve and send backup
added : serve as backup node
added : send backup data to backup node
improved connecting to nearest backup node
2019-11-08 01:55:47 +05:30
sairajzero
95a3c9a127 Initializing backup feature requirements
Restructuring IDB to provide more reliable storage for upcoming backup features
2019-11-05 21:41:47 +05:30
sairajzero
5e6d47a042 Supernode status detection 2019-11-02 01:55:13 +05:30
Sai Raj
9ada035e06
Merge pull request #1 from sairajzero/master
Merging stable version
2019-10-20 16:42:34 +05:30