Commit Graph

67 Commits

Author SHA1 Message Date
5555d63f5d
Better debugging for network access 2021-04-10 23:42:21 -05:00
63a172209c
Add debug output 2021-04-10 23:18:59 -05:00
7fcde77bbe
Replace axios with node-fetch 2021-04-10 22:42:23 -05:00
327d1a6ebd
Fix transaction deletion 2021-04-10 22:36:26 -05:00
b8bf02bc12 Forgot to stop putting transaction back 2021-04-11 03:22:21 +00:00
4d687efa76 Merge branch 'main' of github.com:hackku21/loc-chain-backend into main 2021-04-11 03:18:19 +00:00
52132e3bd0 Modify removal of transaction 2021-04-11 03:18:10 +00:00
eb0da4a28a
Remove debugging 2021-04-10 22:17:30 -05:00
3cb0a91d2a Fix param in remove exposure 2021-04-11 02:52:09 +00:00
105e460812 Merge branch 'main' of github.com:hackku21/loc-chain-backend into main 2021-04-11 02:46:04 +00:00
c66baddc50 Added ability to remove exposure 2021-04-11 02:45:22 +00:00
546663901a
Implement longest-block consensus algo 2021-04-10 21:44:32 -05:00
0580d2274f
Fid Blockchain.validate for genesis blocks 2021-04-10 21:08:19 -05:00
0cb78fef35
Comments and fix to registerPeer() 2021-04-10 21:04:08 -05:00
942d175495 Added removal of transactions on submit for new version 2021-04-11 02:03:23 +00:00
8745dc8b2b
Account for null chain from database 2021-04-10 20:38:25 -05:00
b68c961046
Increase block times for testing 2021-04-10 20:36:10 -05:00
6f24822a5a
Start refactor to improve concurrent performance 2021-04-10 20:35:29 -05:00
d8e7a85122
Reduce locking on block ref 2021-04-10 16:35:42 -05:00
d79d0f38f4
Convert on subscriptions to once for FirebaseResource 2021-04-10 16:20:41 -05:00
78287fcc2a
Make logging of locks more descriptive 2021-04-10 16:18:33 -05:00
d07feccd14
Exchance transaction for set() in Blockchain 2021-04-10 16:07:23 -05:00
0a512170cc
Reduce proof-of-time-elapsed waiting time 2021-04-10 15:59:53 -05:00
323c9408a0
Remove date fiddley bits 2021-04-10 15:53:25 -05:00
1a114d5e8d
Break refresh cycle 2021-04-10 15:40:47 -05:00
0aac7161df
Prevent circular refresh from peer-triggered refresh 2021-04-10 15:36:06 -05:00
8b3905fd5c
Responsible bug fixes 2021-04-10 15:23:00 -05:00
70aa8c6a5e
Add trylock for push and fix seqID generation bugs 2021-04-10 15:11:21 -05:00
092f3d49f1
Force trylock to write description to rtdb 2021-04-10 14:50:02 -05:00
1423e1961e
Properly trylock consensus DB writes 2021-04-10 14:42:39 -05:00
f072d81b5f
Wrap complex push in trylock 2021-04-10 14:35:11 -05:00
1bba0a18ec
Lovely band-aids 2021-04-10 14:18:55 -05:00
313fdb65e9
Basic infrastructure for remote peering 2021-04-10 13:00:29 -05:00
46131e2219 Merge branch 'main' of github.com:hackku21/loc-chain-backend into main 2021-04-10 17:12:31 +00:00
377cc81093 Added server token verification 2021-04-10 17:12:21 +00:00
8f34fd3be0
Add time-based penalty system for repeat block-pushers 2021-04-10 12:10:52 -05:00
9e4164632c
Add proof-of-elapsed-time based consensus algorithm 2021-04-10 11:27:05 -05:00
fbc3711560 Added check api to retrieve blocks for certain timeframe 2021-04-10 16:17:01 +00:00
71b4fefef7
Comment 2021-04-10 09:36:02 -05:00
a3c60a1951
Fix logic for validating blockchain and expose debugging endpoint 2021-04-10 09:34:04 -05:00
d8cae0f559
Add realtime subscription and debug endpoint for pushing exposure notifications to chain 2021-04-10 09:01:13 -05:00
69c441ba56
Make realtime database concurrency-safe using mutex-style locking 2021-04-10 09:00:45 -05:00
5f3a1940e5
Add /api/v1/chain endpoint to read blockchain 2021-04-10 07:36:14 -05:00
f0570a6101
Comment all the things and remove unnecessary files 2021-04-10 07:26:42 -05:00
6ba038e4bf
Clean up transaction logging logic for encounters 2021-04-10 07:12:03 -05:00
6043f0de46
Remove unnecessary ORM code 2021-04-10 05:17:13 -05:00
7e15291806
Add API endpoint for testing transaction 2021-04-10 04:57:28 -05:00
5ae20e945f Reformat 2021-04-10 09:23:54 +00:00
025bc58869 Added signing for genesis block 2021-04-10 09:12:48 +00:00
9e4821c296
Add timestamps to block interfaces and clean up genesis block generation 2021-04-10 03:58:38 -05:00