sairaj mote
6a57aa1273
Update floCrypto.js
...
Added support for ethereum address validation
-- floCrypto.validateAddr
-- decodeAddress
2023-10-15 15:57:12 +05:30
eba2d7b37d
Update cloud.js
2023-10-15 13:10:01 +05:30
c5f4e61678
Update cloud.js
2023-10-15 13:01:09 +05:30
d445a389fc
Delete errors database.js
...
Change the format of messages into escaped backticked form to solve the cloud not deleting data older than a week.
2023-10-11 08:08:22 +05:30
884e0df822
Added missing semi-colon
2023-10-10 12:49:55 +05:30
b08045753d
Fixing missing space in DB.clearUnauthorisedAppData
...
Missing space was preventing deletes from UnAuthorisedApps which has been fixed in this update.
2023-10-09 19:10:54 +05:30
sairajzero
ffa30c6e54
bug fix: edit comment not resolving
2023-07-26 03:37:55 +05:30
sairajzero
9ea6e01f47
bug fix
2023-07-26 03:34:22 +05:30
sairajzero
0ef054ef4f
Improvement: edit comment request
...
- a request signature is required to process the request (which is validated by time, but not stored. ie, only re-signing of actual data will be store)
2023-07-26 03:23:14 +05:30
sairajzero
8e0fba461c
Adding edit (comment) data feature
...
- Allows sender to edit comment field anytime by updating the signature
2023-07-25 05:16:27 +05:30
sairajzero
9468db3e1c
Bug fix
...
- Fixed: DB.storeNode not returning a Promise
2023-07-08 13:20:22 +05:30
sairajzero
f585a76e64
Bug fix
...
- Fixed: data not forwarded to backup nodes properly
2023-07-06 22:54:55 +05:30
sairajzero
121979b696
SQL improvement
...
- Improved SQL query for periodic clearing of old/unauthorised data
2023-07-06 22:29:38 +05:30
sairajzero
0bff57c28b
Bug fix
...
- Fixed: prev_node still retained sometimes even when no other nodes are online
2023-07-06 21:59:26 +05:30
sairajzero
928739ce61
Merge https://github.com/ranchimall/Standard_Operations
2023-07-06 21:52:42 +05:30
sairajzero
98b5190b8f
Handling unhandledRejection error
2023-06-20 15:33:28 +05:30
sairajzero
e60a904e1d
sql query update for searchData
...
- use placeholders for all user given values
2023-05-19 03:15:29 +05:30
sairajzero
9d2c31688a
Fix for flosight changes
2023-05-19 02:21:28 +05:30
sairajzero
b4a911947c
move required stdop files to src/
2023-05-19 01:55:54 +05:30
sairajzero
e5de534902
remove stdop files
2023-05-19 01:52:59 +05:30
sairajzero
ae6410c955
Bug fix
...
- Fixed live request not working when receiverID is non-floID
2023-03-03 02:59:38 +05:30
sairajzero
9c08160ab4
Update hash algo in backup sync
2023-02-10 19:32:54 +05:30
sairajzero
0d45711e63
Bug fix
2022-12-25 19:41:21 +05:30
sairajzero
4bcecab2fa
Added: checks before sending hashes and block
2022-12-24 22:48:56 +05:30
sairajzero
d1eb2b17ec
Update Hashing algorithm for backup sync
2022-12-24 20:01:52 +05:30
sairajzero
1ebccd7c28
Fix: Hashing incompatible with large data
...
- Fixed: hashing incompatible when data is too large (as default group concat max length is 1024)
- Set SESSION group_concat_max_len to 100000 before calc hashes
- use only vectorClock and log_time for hashing
2022-12-24 03:22:59 +05:30
sairajzero
3f5d6541d1
Bug fix
...
- Fixed: note field not stored properly on backup sync
2022-12-23 23:25:58 +05:30
sairajzero
49dc8e699a
Bug fix: node closes when flosight unavailable
2022-12-23 23:03:50 +05:30
sairajzero
6e8f97dbd1
Update floBlockchainAPI.js
2022-12-23 22:50:44 +05:30
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
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
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
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