Commit Graph

99 Commits

Author SHA1 Message Date
sairajzero
bf302c3ebc bug fix: backup/sync
- Fixed minor bugs in backup/sync process
- Fixed: Master doesn't sync when it comes back online
- Decreased backup interval time to 1 min.
2022-01-26 02:20:34 +05:30
sairajzero
2c35c545e8 Bug fixes (client side)
Fixed Client page bugs:
- Fixed minor bugs in client side pages
- client page to use floGlobals.js
- moved KBucket.js to public (as its need by client page too).
Fixed Server Bugs:
- Added Access-Control-Allow-Origin to response headers
- Fixed: trustedIDs not loaded
- Fixed minor bugs (syntax errors)
2022-01-25 01:28:22 +05:30
sairajzero
8c1aad3d28 Bug fixes
- Added lastTx table to SQL schema
- setup file 'reset-password' now accepts any private key (node keys)
- Fixed minor SQL syntax
2022-01-23 04:51:15 +05:30
sairajzero
11b99c3e76 Process for exception cases
Case: No other node active when self node is init
- Start the exchange system.
Case: When node becomes master when prev node goes down
- Add self share to collectShare
- collect shares from other node to re-construct sink private key
- Fixed some minor bugs
2022-01-23 04:49:15 +05:30
sairajzero
52a1b3077d multi-node support
- Run multiple nodes in the same directory with diff config files
- pass the env variable 'I' (optional) to run a diff node instance with config file config<I>.json (also uses keys<I>.json)
- Updated setup files
- Fixed bugs in SQL schema
2022-01-23 03:24:27 +05:30
sairajzero
7dbe78c1cc User-end update
- updated custom session for distributed system
- Fetch node list and url from blockchain
2022-01-20 05:38:55 +05:30
sairajzero
9760710c18 Check session expiry on each request 2022-01-20 05:35:48 +05:30
sairajzero
348cc989c9 Custom session for distributed servers
- Adding custom session login for the distributed server system.
- Added Sessions table to backup
2022-01-18 05:11:34 +05:30
sairajzero
abb82b0b34 Minor Fixes
- Adding tables to SQL schema
- Moved Kbucket usage from main.js to backup/head.js
- node Kbucket, ordered NodeList are calculated in backup/head.js
2022-01-14 04:52:41 +05:30
sairajzero
c32833e625 Adding application name in floGlobals 2022-01-14 04:15:21 +05:30
sairajzero
0ba0f10245 Renaming files 2022-01-14 04:11:25 +05:30
sairajzero
626c9ec214 Backup transfer/retrieval process 2022-01-14 04:08:44 +05:30
sairajzero
9fd1ae49c2 move tokenAPI to tokenAPI.js 2022-01-14 04:07:51 +05:30
sairajzero
db9ff02488 Update main.js
- fetch data (nodeList, TagList, trustedIDs) from blockchain
- Act as slave or master when needed
2021-12-30 06:53:04 +05:30
sairajzero
0b70f099b0 Update App Server
- Use App server port for Websocket Server.
- pause/resume serving and market when node acts as slave/master respectively.
2021-12-30 06:49:48 +05:30
sairajzero
c4732f5831 Restoration 2021-12-30 06:33:10 +05:30
sairajzero
4b9a5e656b Create KBucket.js 2021-12-30 06:30:06 +05:30
sairajzero
f1e9658007 Audit Transaction
Store the following values upon successful transaction
- Timestamp
- Quanity, unit value, total cost
- Old/New Balance of Rupee and FLO for both seller and buyer
2021-12-06 22:13:37 +05:30
sairajzero
946087481a Move transaction process to coupling.js 2021-12-06 20:55:35 +05:30
sairajzero
1b6488bdd1 Adding foreign key attributes to SQL schema
- All floID based columns (floID, seller, buyer) are now foreign keys with reference to User.floID
- tag in Tags table is now referred to tag in TagList
- Indicate the error when adding user tags via API
2021-12-05 00:40:49 +05:30
sairajzero
9feef5bfe9 Minor fixes
- Fixed bug: sell order placement not working.
- log the current_rate
- indicate when max price-up/down has reached.
2021-12-05 00:37:45 +05:30
sairajzero
d3b27348ee Bug fix
- Fixed various bugs in the last update
- Added 'use strict'; to multiple files to prevent undeclared variables
2021-12-03 20:09:40 +05:30
sairajzero
4a898e6bff Initial price
- load init price from DB if possible, else fetch from API
- store the price history in DB every 1 hr
- get the 24hr-past-rate from DB
- update the last tx timestamp upon successful transaction
- added priceHistory table to SQL schema and backup
2021-12-03 01:45:59 +05:30
sairajzero
278fc8bcbd Price updation
- Update current_price when no seller or buyer available.
- Inc price only when sell-orders from rated sellers are available.
- User must buy a minimum FLO before placing a sell order unless they are a 'Miner'.
2021-12-02 05:26:01 +05:30
Sai Raj
4a92ee7acf
Merge pull request #4 from ranchimall/main 2021-11-25 05:14:04 +05:30
Sai Raj
eb4100e21b
Merge branch 'sairajzero:main' into main 2021-11-25 05:11:55 +05:30
sairajzero
a7c96e9ce2 Priority case: FLO brought from outside
FLO brought from outside the source will be processed after those brought from source-market.
2021-11-25 05:10:39 +05:30
sairajzero
5ac3316008 Allow trusted IDs to add/rm user tags via API 2021-11-18 15:58:40 +05:30
sairajzero
b5cde90e89 Bug fix 2021-11-05 21:43:26 +05:30
sairajzero
744979fb2a Adding tables for Tags (groups) 2021-11-05 21:43:15 +05:30
sairajzero
d435157bd2 Different group/tag priority for sell and buy 2021-11-02 03:39:07 +05:30
sairajzero
c14f10eade Use Group priority to get best buy/sell order 2021-10-30 21:35:18 +05:30
sairajzero
0e34dcb5e3 Update group.js
- Adding functions to get best buy-order.
- Renamed some fns of get-sell-order for easier identification.
2021-10-30 20:13:48 +05:30
sairajzero
097b64b82f Update group.js
- Adding getBestPairs
- best pair of orders (buy, sell) can be fetched using the new functions
2021-10-30 03:39:10 +05:30
sairajzero
bb0d49614b Create group.js 2021-10-30 00:24:38 +05:30
sairaj mote
2628e3230d minor bug fixes 2021-10-25 21:05:36 +05:30
sairaj mote
b87b94d5ad UI tweaks 2021-10-25 16:26:39 +05:30
Sai Raj
f5b7c5cb61
Merge pull request #3 from ranchimall/main
UI
2021-10-24 18:35:59 +05:30
sairaj mote
a16a9b479a minor bug fixes 2021-10-24 16:08:12 +05:30
sairaj mote
a6c8d6550b Minor bug fix and UX improvement 2021-10-23 22:41:56 +05:30
sairaj mote
55f2a4953c bug fixes
-- fixed Multiple cancel not working
-- history not showing in my orders
2021-10-23 15:28:31 +05:30
sairaj mote
1a4fc432e3 bug fixes and UX improvements
- fixed incorrect dat-time shown with orders
-- fixed percent buttons not working for selling FLO
-- data refreshes after successful transactions
-- fixed balance overflow
2021-10-23 02:38:30 +05:30
sairajzero
160102ea66 Bug Fix: Password issue 2021-10-23 01:17:00 +05:30
Sai Raj
f745b22955
Merge pull request #2 from ranchimall/main 2021-10-22 23:12:48 +05:30
sairaj mote
7308bbcddd minor update 2021-10-22 18:37:32 +05:30
sairaj mote
60e9be7f7a added user profile popup 2021-10-22 16:48:01 +05:30
sairajzero
df5fb02021 Changing min-value from 1 to 0.01 for numeric inputs 2021-10-21 21:09:20 +05:30
sairajzero
f7584629b9 Bug fixes
- Fixed: error caused during inputRupee
- Passing timezone UTC in DB connection for uniformity between main server and backups.
- Changed single-line comments to multi-line comments in schema.sql
- Addng truncateAll.sql: can be used to clear the database (data only).
2021-10-21 21:08:12 +05:30
Sai Raj
5bfc62113f
Merge pull request #1 from ranchimall/main 2021-10-21 20:11:16 +05:30
sairaj mote
8e6b1ca35b Mobile optimizations and feature update 2021-10-19 16:42:09 +05:30