Commit Graph

150 Commits

Author SHA1 Message Date
sairajzero
7f3237df1e Update _constants.js
update SYNC_WAIT_TIME to 5 mins
2022-12-21 22:19:26 +05:30
sairajzero
36a6cbea87 Sync error and bug fix
- Fixed: SQL syntax for clear block data
- Fixed: sync instance being closed when a block is in timeout for verifying hash
2022-12-21 04:59:51 +05:30
sairajzero
5bca07d2d6 Fixed minor bugs
- Fixed: Infinite sync loop occurring in receiver end
- Fixed: clearUnauthorisedAppData SQL statement
2022-12-21 04:17:18 +05:30
sairajzero
49dce2b8b6 Bug fixes
- moved constants to _constants.js
- Fixed: query stream not working with values
- Fixed: sync not closing
- Fixed: various minor bugs
2022-12-21 03:34:41 +05:30
sairajzero
c97c1f19f8 Bug fix 2022-12-20 05:14:34 +05:30
sairajzero
5836ba0686 Fixed: re-sync until hash is matched 2022-12-20 03:27:44 +05:30
sairajzero
f748bc7a4a Backup sync improvements
- Sync data block by block
- Resync blocks with hash mismatch
- moved intra into backup folder
2022-12-20 02:39:14 +05:30
sairajzero
6dff51560a Node URL change and Trusted IDs
Update node URL
- Can now change URLs for nodes without disk migration
- `updateNodes` JSON object property for updating the URL of nodes

Trusted IDs
- Added TrustedIDs for apps
- TrustedIDs are added/removed by admin ID
- TrustedIDs have permission to edit the tag field

Other changes
- supernode configs are converted into strings when stored in DB. (parsed back when retrieving from DB)
- updated SubAdmin column type from VARCHAR(3500) to TEXT
2022-12-18 03:23:57 +05:30
sairajzero
43a3b16bbe Update database files and improvements
- moved base table struct to base_table.json
- moved cloud data struct to data_structure.json
- improvements to database module
- use database.DB from module.export cache instead of global mapping
2022-12-17 01:10:34 +05:30
sairajzero
ee8089f858 Improvement: streamed DB.readAllData
- DB.readAllData is now a streamed function (readlAllDataStream)
- Large number data from database can be processed without any issue
2022-11-30 03:50:12 +05:30
sairajzero
fd2aa002c0 Adding setup files 2022-11-29 04:41:11 +05:30
sairajzero
2dc338f90d Keys module
- Improved security for node-privkey storage
- Private is stored as encrypted in file (loaded once on startup)
- node private key is stored in encrypted format in memory
- moved myPrivKey, myFloID to keys module
2022-11-29 04:39:33 +05:30
sairajzero
b303219d1b Bug fix
- Fixed: "Invalid pubKey" error when using other blockchain senderID
2022-07-27 22:30:58 +05:30
sairajzero
a506cd0d8d bug fix
- proxy id not requested properly
2022-07-26 15:37:09 +05:30
sairajzero
af34c5ed69 Update floCrypto.js 2022-07-26 15:18:42 +05:30
Sai Raj
05c58b6027
Merge pull request #10 from ranchimall/dev
Dev
2022-07-26 14:18:27 +05:30
sairajzero
d6e30c6470 Support to accept addresses from other blockchain 2022-07-26 03:17:28 +05:30
sairajzero
39ca525822 Wrap kBucket module inside cloud.js 2022-07-26 03:07:54 +05:30
sairajzero
62504d3a70 Update README.md 2022-07-26 03:04:04 +05:30
sairajzero
7ad9945f6b Update lib.js 2022-07-26 03:02:14 +05:30
sairajzero
ff0161ef6b Update std_op
- Update std_op to latest
- Changed floCrypto.validateAddr to floCrypto.validateFloID
2022-07-22 02:17:24 +05:30
sairajzero
4ad512fc1d Refresh blockchain-data periodically
- Refresh the blockchain data atleast once every 1 hour.
- If regular countdown (based on requests) occurs, then automatically reset the blockchain-refresh timer.
2022-04-19 03:45:36 +05:30
sairajzero
c8130e887e Update .gitignore 2022-03-27 16:53:03 +05:30
sairajzero
29a4e34815 Bug fix: liveRequest not working correctly
Fixed: Live request not working when senderID is passed as an array
2022-03-23 17:07:40 +05:30
sairajzero
1e77954eba Minor fixes
- update floBlockchainAPI
- Fixed: senderID not working correctly in GET request when Array is passed
2022-03-08 03:55:41 +05:30
sairajzero
327e8ac39f Update floBlockchainAPI.js 2022-03-08 02:24:27 +05:30
sairajzero
060d3b618d Bug Fixes
- Fixed: processIncomingData throwing error when using POST request
- Fixed: tag/note data not working properly (getData returns an array, thus need to use result[0])
- Adding data, tag, note will return the entire data (ie, all columns) to user
- Fixed: a minor syntax bug in DB.getData
- Fixed: mostRecent option not giving the last record correctly
2022-03-08 01:23:17 +05:30
sairajzero
a12bd9e2a2 forward data changes (tag/note) to liveRequests 2022-03-07 04:23:08 +05:30
sairajzero
fbd515137b New requestData parameter 'afterTime'
- if afterTime parameter is passed in request, any data changed (tag, note) after given time is returned. (afterTime also combines with other condition parameters).
- Request data now return all columns from the table
2022-03-03 01:00:32 +05:30
sairajzero
52571ccf8b New feature: Note And some other improvements
Added new feature 'Note':
- Receivers can add a tiny note to data received.
- For data received by adminID of authorised app, subAdmins will also be able to add/edit note

Improved Invalid error and Internal error feedback:
- Only Invalid errors are relayed to user ( Invalid error code: 400).
- Internal errors caused just indicate 'unable to process request' to user (Internal error code: 500)

Other changes:
- Processing Tag will now check application from data stored. application parameter is not required (Signature will require vectorClock instead of application).
- Fixed bug: clear-authorized-data using incorrect floID values
2022-03-03 00:39:03 +05:30
sairajzero
312e24629f New feature: Track online status
- Added a new feature to track online status of floID for an application via supernode using websocket connection
2022-02-28 04:45:26 +05:30
sairajzero
6ab35a666c Bug fixed: atVectorClock not working correctly 2022-02-20 23:51:26 +05:30
sairajzero
75064ad4c0 bug fix 2022-02-06 01:47:23 +05:30
sairajzero
a75fbc067f Bug fix 2022-02-06 01:34:09 +05:30
sairajzero
e04672d401 Increasing body message size to LONGTEXT (4GB) 2022-02-06 00:39:00 +05:30
sairajzero
5dd422afed Bug fixes 2021-08-06 19:37:09 +05:30
sairajzero
50c820310a Bug fixes 2021-08-06 04:42:39 +05:30
sairajzero
25a342a2db Minor changes
- config.json and param.json moved to args/
- param-default.json will be used by default if param.json is not generated by the user
- Renamed launch.js to start.js
- Minor bug fixes
2021-07-29 20:34:29 +05:30
sairajzero
9001b21b07 bug fix 2021-07-29 16:40:55 +05:30
sairaj mote
3d3d2be6df Added RanchiMall logo 2021-07-26 16:46:18 +05:30
sairaj mote
cadea29b4e Updated style of gen-param 2021-07-26 16:29:22 +05:30
Sai Raj
732dcfce18
Create LICENSE 2021-07-26 15:56:27 +05:30
Sai Raj
cdb94126ac
Create README.md 2021-07-26 15:37:02 +05:30
sairajzero
6b69469477 Bug fixes
- Changed some console.log to console.debug (Also added few more).
- Fixed: DB.lastLogTime not returning correct value
- Fixed: MySQL disconnection bug. Now using Pool connect for persistent connection.
- Fixed: connectNode not connecting properly due to a typo.
- Fixed: RECONNECT_NEXT_NODE const value not added
- Fixed: reconnectNextNode not triggered when only one node was online and a node comes online.
- Fixed: orderBackup not storing the order properly when less or just sufficient nodes available.
- Added: orderBackup to requesting data when sync is required
- Fixed: typo in sendStoredData
- Added: logInterval of _prevNode, _nextNode and _list
2021-07-26 05:31:54 +05:30
sairajzero
87a578e37b Access-Control-Allow-Origin
Setting 'Access-Control-Allow-Origin'  to header of response to allow browsers to access response.
2021-07-24 03:00:18 +05:30
sairajzero
685a383c8e bug fix 2021-07-23 20:58:29 +00:00
sairajzero
a91df8a2b2 Bug fix
- Promisified the refresher invoke fn.
- Connect to next node upon 1st refresher resolve
2021-07-24 01:04:20 +05:30
sairajzero
e565658bb0 Bug Fix 2021-07-23 19:15:53 +00:00
sairajzero
a3d2452e4e Bug fix
- Fixed: bugs in processing GET method
- Restored sendToLiveRequests() that was deleted in between commits
2021-07-23 21:27:56 +05:30
sairajzero
70196b004d Bug fixes 2021-07-23 00:07:54 +00:00