aboutsummaryrefslogtreecommitdiffstats
path: root/TODO.md
diff options
context:
space:
mode:
authorYigit Sever2021-04-07 04:33:45 +0300
committerYigit Sever2021-04-07 04:35:44 +0300
commit84d9c14a17e864058527981e3388cef148827c11 (patch)
tree19c7b4b4d67d2ba2d3d87ba7eca009ff997e0cd0 /TODO.md
parent95ff6371303ac28d05b25fd9f6e436c5d0a58d4c (diff)
downloadgradecoin-84d9c14a17e864058527981e3388cef148827c11.tar.gz
gradecoin-84d9c14a17e864058527981e3388cef148827c11.tar.bz2
gradecoin-84d9c14a17e864058527981e3388cef148827c11.zip
Implement Block GET/PUT with new schema
- `Arc`+`Mutex` is replaced by `parking_lot::RwLock,` decoupled Read+Write and ability to upgrade read locks into write locks if needed - Schema has changed, `Db` is now a struct that implements `new()` to return a new instance of itself, pros/cons listed in code but tl;dr blockchain and pending transactions are separate now - `custom_filters` now supports extracting Block json and Transaction json in separate functions too - /block GET and PUT implemented, `Blocks` currently have one check (transactions appear in pending transaction) - debug is working after something, dunno how I fixed it
Diffstat (limited to 'TODO.md')
-rw-r--r--TODO.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
index 76292d2..4e65094 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,4 +1,7 @@
1# TODO 1# TODO
2## Process
3- [ ] we need our own representation of students and their grades, "there is no blockchain"
4
2## Proof-of-work 5## Proof-of-work
3- [ ] pick a block proposal scheme (= pick hash function) [list of hash functions](https://en.bitcoinwiki.org/wiki/List_of_hash_functions) 6- [ ] pick a block proposal scheme (= pick hash function) [list of hash functions](https://en.bitcoinwiki.org/wiki/List_of_hash_functions)
4- [ ] check the nonce for incoming blocks 7- [ ] check the nonce for incoming blocks
@@ -7,4 +10,5 @@
7- [ ] pick a user authentication scheme 10- [ ] pick a user authentication scheme
8 - [ ] implement it 11 - [ ] implement it
9 12
10- [ ] Switch to RwLock (parking_lot) 13## Done & Brag
14- [x] Switch to RwLock (parking_lot) (done at 2021-04-07 03:43, two possible schemes to represent inner Db (ledger) in code)