Commit Graph

256 Commits

Author SHA1 Message Date
Abhishek Sinha
d985727a7e modified code to reconnect supernode to nearest live backups 2019-08-13 18:59:55 +05:30
Abhishek Sinha
f0eb1cbfe1 resolved ws shifting connections 2019-08-12 21:13:48 +05:30
Abhishek Sinha
89e56e8b0d updating balances in ui on balance change 2019-08-01 15:04:55 +05:30
Abhishek Sinha
c753fe571a added code to send data to non backup supernodes when all backup supernodes are dead 2019-07-28 18:20:55 +05:30
Abhishek Sinha
7a137ab9e0 fixed update_all_deposit_withdraw_success error 2019-07-27 17:37:18 +05:30
Abhishek Sinha
9186c03d38 added code to update backups about deposit and btc_reserves when a withdraw btc is complete 2019-07-27 16:20:04 +05:30
Abhishek Sinha
489c784bb3 modified withdraw btc to withdraw any amount upto balance 2019-07-26 13:46:47 +05:30
Abhishek Sinha
ca0834e293 modified withdraw btc to withdraw any amount upto balance 2019-07-25 16:33:57 +05:30
Abhishek Sinha
8ac62c34f1 fixed output greater than input error in sendtransaction, sending update to backups when btc withdraw is complete 2019-07-22 15:42:06 +05:30
Abhishek Sinha
d39d7abc6f added code to check live balance left after each withdraw crypto request and then deletion of data if no balance left 2019-07-21 14:24:43 +05:30
Abhishek Sinha
278b44528b fixed removal of duplicates from btc withdraw, fixed double spending due to execution from both primary and backup receive rpc during withdraw btc 2019-07-21 12:30:40 +05:30
Abhishek Sinha
ac9453d61f fixed removal of duplicates from btc withdraw, fixed double spending due to execution from both primary and backup receive rpc during withdraw btc 2019-07-20 20:08:22 +05:30
Abhishek Sinha
815360f0ad added code to prevent myClosestSupernode is_live value update when status is already eq to is_live field 2019-07-19 20:04:15 +05:30
Abhishek Sinha
ca4681f09f added resolve_backup_ws_connections function 2019-07-18 18:35:29 +05:30
Abhishek Sinha
52bffd0fc3 fixed miner fee issue in sendTransaction 2019-07-17 18:31:43 +05:30
Abhishek Sinha
3c11bedac2 fixed infinite loop error in send_rpc 2019-07-17 15:01:28 +05:30
Abhishek Sinha
02f459acad modified send_rpc, fixed can_serve_FLO_ID issue 2019-07-16 15:51:43 +05:30
Abhishek Sinha
52c00582c7 added code to sync data of dead backups of ones own backup nodes 2019-07-15 14:31:42 +05:30
Abhishek Sinha
376f95cf91 fixed various logical issues 2019-07-14 18:13:29 +05:30
Abhishek Sinha
1a3ada269f added missing resolve in else part of backup add function 2019-07-13 19:58:22 +05:30
Abhishek Sinha
87da0fc962 fixed deposit issue in primary 2019-07-13 15:58:44 +05:30
Abhishek Sinha
e3c07998d0 fixed errors in send_rpc 2019-07-12 19:53:56 +05:30
Abhishek Sinha
31b0f8547e modified db read functions to fetch both deletable/non-deletable data 2019-07-11 19:53:05 +05:30
Abhishek Sinha
17fbd1f80c fetching exchange rates from db than api calls 2019-07-10 11:51:23 +05:30
Abhishek Sinha
2f9126942b modified backup db remove functions to not delete data but keep just id, vector clock and timestamp 2019-07-09 13:41:05 +05:30
Abhishek Sinha
44d9327798 modified backup db remove functions to not delete data but keep just id, vector clock and timestamp 2019-07-09 13:13:20 +05:30
Abhishek Sinha
449f8b961b fixed primary and backup sync issues 2019-07-08 19:36:09 +05:30
Abhishek Sinha
42fb7a6830 fixed live status error and can_server_FLO_ADDR property error 2019-07-07 20:38:58 +05:30
Abhishek Sinha
804abe0a6f added code to send signedrawtx if broadcast fails in sendTransaction function 2019-07-06 15:28:57 +05:30
Abhishek Sinha
ffbc6f03f7 fixed reconnection to more eligible supernode via reconnect_with_another_supernode 2019-07-06 14:03:59 +05:30
Abhishek Sinha
b66d91c721 added can_serve_FLO_ID property to confirm sync before serving users 2019-07-05 20:05:09 +05:30
Abhishek Sinha
d666b767ea fixed primary and backup db syncing errors 2019-07-04 17:55:08 +05:30
Abhishek Sinha
98b4d34350 fixed and improved fireNodeGoodByeEvent event 2019-07-03 20:17:00 +05:30
Abhishek Sinha
df12a39b43 fixed exchange rates calculations 2019-07-03 14:28:56 +05:30
Abhishek Sinha
6e0d2359bb added code to get latestprice for btc, flo to usd, inr 2019-07-01 13:55:14 +05:30
Abhishek Sinha
a42c2a1a18 added code to prevent requests processing unless db sync is complete 2019-06-29 16:29:34 +05:30
Abhishek Sinha
22f083fa7a added code to sync primary or backup data based on hash, timestamp and vector clock filter 2019-06-28 16:44:35 +05:30
Abhishek Sinha
f251be29f0 added code to sync primary or backup data based on hash, timestamp and vector clock filter 2019-06-27 16:39:32 +05:30
Abhishek Sinha
da9c50cbfc added code in do_you_have_latest_data_for_this_supernode section 2019-06-26 16:58:45 +05:30
Abhishek Sinha
15ecc3e52f added function to calculate latest vector clock and timestamp for tables in a db 2019-06-25 17:17:07 +05:30
Abhishek Sinha
daa22af04a added code to validate db hash and send response for tables hash is latest 2019-06-24 17:50:58 +05:30
Abhishek Sinha
a7a7be2772 added getDBHash function in add, update and delete functions 2019-06-23 17:47:41 +05:30
Abhishek Sinha
fff9b6dcbe added function to calculate hash of tables and db 2019-06-22 18:15:16 +05:30
Abhishek Sinha
a02ea9f383 fixed deposit, btc reserves storing in backups 2019-06-21 17:55:03 +05:30
Abhishek Sinha
b6487f1aab fixed various issues in backup 2019-06-19 17:22:45 +05:30
Abhishek Sinha
0c7abd21bb changed getUserPublicKey function to readDB to get userPublicData in deposit_asset_request in backup_receive_rpc_response 2019-06-18 16:04:15 +05:30
Abhishek Sinha
2cf168039a added new field receiversList in global params 2019-06-17 17:43:03 +05:30
Abhishek Sinha
738192720d fixed seection of supernodes for getting backup for backup supernodes 2019-06-16 18:18:51 +05:30
Abhishek Sinha
43b04bbe1d modified primary or backup syncing to be based on vector clock 2019-06-14 17:52:22 +05:30
Abhishek Sinha
4b601ceec6 fixed minor stuffs 2019-06-13 12:53:13 +05:30
Abhishek Sinha
3ce1eb2a99 fixed code to reconnect to new supernode when a eligible supernode comes back as primary or backup primary 2019-06-09 19:03:08 +05:30
Abhishek Sinha
39b511f9f0 fixed balance error in validateDepositedBTC 2019-06-08 19:08:09 +05:30
Abhishek Sinha
9c74aabb7a added code for backup node giving dead supernode data to node not neigbours of dead supernode 2019-06-07 17:13:15 +05:30
Abhishek Sinha
d23b602db7 fixed cancel trade button onclick error 2019-06-05 16:37:05 +05:30
Abhishek Sinha
c2c95789f1 fixed errors in backup syncing by primary supernode 2019-06-05 14:54:51 +05:30
Abhishek Sinha
d8ce4c9745 fixed readtState error 2019-06-04 13:03:57 +05:30
Abhishek Sinha
26ccdfec0f fixed functionality to withdraw crypto when backup supernode is acting supernode 2019-06-01 18:55:09 +05:30
Abhishek Sinha
a3adb867ee changed pubkey used in btc shares as backup su than dead primary su 2019-05-31 18:31:04 +05:30
Abhishek Sinha
772b516c50 fixed node live status and removed break from doSend dunction 2019-05-30 12:31:18 +05:30
Abhishek Sinha
7cc2577610 fixed backup supernodes backup db sync when primary comes back 2019-05-29 13:48:52 +05:30
Abhishek Sinha
a8c94586b7 fixed primary backup issues 2019-05-28 18:53:40 +05:30
Abhishek Sinha
07cea65783 changed _readDB to readDB while getting supernode pub key while trade buy, sell, balance updates 2019-05-27 16:33:44 +05:30
Abhishek Sinha
8d43e33e8e fixed node availability status 2019-05-26 12:25:54 +05:30
Abhishek Sinha
915c2d7cd4 fixed minor issues in primary operations 2019-05-22 16:14:19 +05:30
Abhishek Sinha
6b5565f806 added code for adding user data from handle_backup_request and backup to backup sync 2019-05-21 19:20:00 +05:30
Abhishek Sinha
77435c2b2d fixed ip and user data recording in backup db 2019-05-20 19:22:54 +05:30
Abhishek Sinha
28f8aeabf2 fixed doSend function 2019-05-19 19:52:57 +05:30
Abhishek Sinha
cb00785ab6 fixed issues on having left-right supernodes 2019-05-18 18:27:58 +05:30
Abhishek Sinha
9e8e2587d5 added code for Primary supernode to sync data from backup supernodes 2019-05-16 16:49:14 +05:30
Abhishek Sinha
cff3ef5b18 fixed db functions for primary and backup db 2019-05-15 14:09:14 +05:30
Abhishek Sinha
701db7da42 fixed db functions for primary and backup db 2019-05-14 21:12:01 +05:30
Abhishek Sinha
ab6fab887c added code for primary supernode to get data from backup supernodes 2019-05-13 19:27:32 +05:30
Abhishek Sinha
8408be332a removed code to add kb users of other supernodes 2019-05-10 19:42:27 +05:30
Abhishek Sinha
c3dd189499 promisified send_rpc function 2019-05-09 19:27:02 +05:30
Abhishek Sinha
220fb1fe8f added eligible backup supernode check before sync 2019-05-07 15:22:46 +05:30
Abhishek Sinha
73d94940e1 fixed determineClosestSupenode function to determine closest supenodes for both supenodes and user nodes 2019-05-06 14:28:19 +05:30
Abhishek Sinha
57ea660344 modified determineClosestSupenode function to determine closest supenodes for both supenodes and user nodes 2019-05-05 15:08:51 +05:30
Abhishek Sinha
a337b28d03 fixed data entry into right backup db for backup supernode as acting supernode 2019-05-04 17:58:26 +05:30
Abhishek Sinha
0fe95a7915 fixed withdraw btc issue for primary supernode 2019-05-02 16:57:23 +05:30
Abhishek Sinha
2fb10a8e3f fixed btc shares data entry into backup supernodes 2019-05-01 20:53:44 +05:30
Abhishek Sinha
1475d96ebe fixed deposit, buy, sell issues 2019-04-29 18:02:15 +05:30
Abhishek Sinha
515f9ad9f0 fixed userPublicData sync/update issue 2019-04-28 16:54:44 +05:30
Abhishek Sinha
9a6dfebbbc added backup db param in trade functions 2019-04-27 18:32:20 +05:30
Abhishek Sinha
2f38275d88 working on db restoring of primary supernode from rest supernodes 2019-04-27 14:09:44 +05:30
Abhishek Sinha
d95812e4f0 working on db restoring of primary supernode from rest supernodes 2019-04-24 18:29:09 +05:30
Abhishek Sinha
172fc1a603 data being synced in all neighbour backup db as per vector clock 2019-04-21 18:48:17 +05:30
Abhishek Sinha
891ffe4e6c fixed other nodes temp ip storing issue 2019-04-18 17:40:07 +05:30
Abhishek Sinha
5a3a061e29 modified supernode kbucket according to a common master flo id 2019-04-17 20:22:45 +05:30
Abhishek Sinha
45fd896620 added code to add kbucket of other supernodes 2019-04-10 21:26:15 +05:30
Abhishek Sinha
a322b23094 linked temporary ip of nodes to flo ids 2019-04-08 14:39:21 +05:30
Abhishek Sinha
9b57c5f787 added ip table 2019-04-05 21:08:16 +05:30
Abhishek Sinha
d611869f0e improved switching of supernodes 2019-04-04 22:33:56 +05:30
Abhishek Sinha
2245c3e780 added switchToBackupWS function to switch to backup ws 2019-03-31 21:33:44 +05:30
Abhishek Sinha
3231b23506 fixed kbucket errors 2019-03-28 15:04:16 +05:30
Abhishek Sinha
c1f950a3e9 fixed kbucket errors 2019-03-27 21:03:30 +05:30
Abhishek Sinha
8cc80995dc fixed private key undefined error 2019-03-24 20:15:08 +05:30
Abhishek Sinha
1640a2b252 added db backup from one supernode to another 2019-03-19 10:20:35 +05:30
Abhishek Sinha
6ee4eaa815 fixed kbucket errors 2019-03-18 11:25:52 +05:30
Abhishek Sinha
a58d994e93 fixed kbucket formation error 2019-03-10 20:16:34 +05:30
Abhishek Sinha
f2bf6d2eaf fixed private key build up issue, multiple ws and idb connections 2019-03-09 21:23:21 +05:30