Commit Graph

55 Commits

Author SHA1 Message Date
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
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
f797cd0e25
Include firebase ID on resource 2021-04-10 02:28:43 -05:00
e569841356 Merge branch 'main' of github.com:hackku21/loc-chain-backend into main 2021-04-10 07:17:23 +00:00
172a088e4a Implemented transaction verification check 2021-04-10 07:15:54 +00:00