aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorYigit Sever2021-04-07 04:33:45 +0300
committerYigit Sever2021-04-07 04:35:44 +0300
commit84d9c14a17e864058527981e3388cef148827c11 (patch)
tree19c7b4b4d67d2ba2d3d87ba7eca009ff997e0cd0 /Cargo.lock
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 'Cargo.lock')
-rw-r--r--Cargo.lock63
1 files changed, 62 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index c531d87..45ae0a0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -108,6 +108,15 @@ dependencies = [
108] 108]
109 109
110[[package]] 110[[package]]
111name = "cloudabi"
112version = "0.0.3"
113source = "registry+https://github.com/rust-lang/crates.io-index"
114checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
115dependencies = [
116 "bitflags",
117]
118
119[[package]]
111name = "cpuid-bool" 120name = "cpuid-bool"
112version = "0.1.2" 121version = "0.1.2"
113source = "registry+https://github.com/rust-lang/crates.io-index" 122source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -273,6 +282,7 @@ version = "0.1.0"
273dependencies = [ 282dependencies = [
274 "chrono", 283 "chrono",
275 "log", 284 "log",
285 "parking_lot",
276 "pretty_env_logger", 286 "pretty_env_logger",
277 "serde", 287 "serde",
278 "serde_json", 288 "serde_json",
@@ -475,6 +485,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
475checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" 485checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41"
476 486
477[[package]] 487[[package]]
488name = "lock_api"
489version = "0.3.4"
490source = "registry+https://github.com/rust-lang/crates.io-index"
491checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75"
492dependencies = [
493 "scopeguard",
494]
495
496[[package]]
478name = "log" 497name = "log"
479version = "0.4.14" 498version = "0.4.14"
480source = "registry+https://github.com/rust-lang/crates.io-index" 499source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -597,6 +616,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
597checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" 616checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
598 617
599[[package]] 618[[package]]
619name = "parking_lot"
620version = "0.10.2"
621source = "registry+https://github.com/rust-lang/crates.io-index"
622checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e"
623dependencies = [
624 "lock_api",
625 "parking_lot_core",
626]
627
628[[package]]
629name = "parking_lot_core"
630version = "0.7.2"
631source = "registry+https://github.com/rust-lang/crates.io-index"
632checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3"
633dependencies = [
634 "cfg-if 0.1.10",
635 "cloudabi",
636 "libc",
637 "redox_syscall 0.1.57",
638 "smallvec",
639 "winapi 0.3.9",
640]
641
642[[package]]
600name = "percent-encoding" 643name = "percent-encoding"
601version = "2.1.0" 644version = "2.1.0"
602source = "registry+https://github.com/rust-lang/crates.io-index" 645source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -784,6 +827,12 @@ dependencies = [
784 827
785[[package]] 828[[package]]
786name = "redox_syscall" 829name = "redox_syscall"
830version = "0.1.57"
831source = "registry+https://github.com/rust-lang/crates.io-index"
832checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
833
834[[package]]
835name = "redox_syscall"
787version = "0.2.5" 836version = "0.2.5"
788source = "registry+https://github.com/rust-lang/crates.io-index" 837source = "registry+https://github.com/rust-lang/crates.io-index"
789checksum = "94341e4e44e24f6b591b59e47a8a027df12e008d73fd5672dbea9cc22f4507d9" 838checksum = "94341e4e44e24f6b591b59e47a8a027df12e008d73fd5672dbea9cc22f4507d9"
@@ -836,6 +885,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
836checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" 885checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2"
837 886
838[[package]] 887[[package]]
888name = "scopeguard"
889version = "1.1.0"
890source = "registry+https://github.com/rust-lang/crates.io-index"
891checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
892
893[[package]]
839name = "serde" 894name = "serde"
840version = "1.0.125" 895version = "1.0.125"
841source = "registry+https://github.com/rust-lang/crates.io-index" 896source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -907,6 +962,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
907checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 962checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
908 963
909[[package]] 964[[package]]
965name = "smallvec"
966version = "1.6.1"
967source = "registry+https://github.com/rust-lang/crates.io-index"
968checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"
969
970[[package]]
910name = "socket2" 971name = "socket2"
911version = "0.3.19" 972version = "0.3.19"
912source = "registry+https://github.com/rust-lang/crates.io-index" 973source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -937,7 +998,7 @@ dependencies = [
937 "cfg-if 1.0.0", 998 "cfg-if 1.0.0",
938 "libc", 999 "libc",
939 "rand 0.8.3", 1000 "rand 0.8.3",
940 "redox_syscall", 1001 "redox_syscall 0.2.5",
941 "remove_dir_all", 1002 "remove_dir_all",
942 "winapi 0.3.9", 1003 "winapi 0.3.9",
943] 1004]