Commit Graph

61 Commits

Author SHA1 Message Date
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
f0005a9ed3
Add exposure notification example to reference implementation 2021-04-10 09:01:35 -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
934b322835
Update reference client implementation to make requests to test endpoint 2021-04-10 07:09:08 -05:00
887a2afe77
Fix reference client implementation - swapped hash gen 2021-04-10 05:50:51 -05:00
0cb38027a1
Add reference client implementation for testing 2021-04-10 05:49:23 -05:00
67fd01c9e9
Update libraries 2021-04-10 05:20:13 -05:00
6043f0de46
Remove unnecessary ORM code 2021-04-10 05:17:13 -05:00
3fa360a96b
Update libraries 2021-04-10 04:57:36 -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
5dc6db0b8e
Add support for checking for genesis block 2021-04-10 03:51:21 -05:00
c067216af3
Clean up and add comments 2021-04-10 03:49:00 -05:00
3b7e72adab
Add Blockchain.submitTransactions 2021-04-10 03:44:56 -05:00
6441a5cad7 Implemented proof of work 2021-04-10 08:30:17 +00:00
33f34d733b
Add proof property to block interface 2021-04-10 03:11:18 -05:00
27e161ed44
Add config passthrough for GPG keys 2021-04-10 02:56:18 -05:00
29f9fe9f1f
Implement basic chain validation and stub PoW 2021-04-10 02:51:31 -05:00
289f184b4d Submit transaction and remove from database 2021-04-10 07:30:39 +00:00
16ebe6158a
Add firebaseID to interface 2021-04-10 02:30:44 -05:00