Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Commit b19502f

Browse files
feat(consensus): add proof check logic for sync and consensus (#224)
* feat : add proof check for sync and consensus feat : add get_proof_from_remote in sync adapter feet : add RPC_SYNC_PULL_PROOF and RPC_RESP_SYNC_PULL_PROOF and registered chore : add .gitignore, now free-space/ is for personal use chore : add error log to check the proof height error chore : adapt to 0x prefix test : add sync test cases chore : remove unusable and redundant functions and variables chore : add verify_proof_signature and verity_proof_weight for consensus adapter fix : sync now get txs from remote's storage fix : consensus now will get tx from remote's mempool fix : now consensus adapter has verify_txs() and sync adapter has verify_txs_sync() chore : change current_height to latest_committed_height in CurrentConsensusStatus to make it clearer fix : verifying certain proof, the auth_list is got from metadata of **previous** height
1 parent 54bdbb9 commit b19502f

File tree

19 files changed

+1649
-243
lines changed

19 files changed

+1649
-243
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ logs/
3030

3131
# cargo.lock
3232
Cargo.lock
33+
34+
# free space, you can store anything you want here
35+
free-space/

Diff for: core/consensus/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ prost = "0.6"
2424
rlp = "0.4"
2525
serde = { version = "1.0", features = ["derive"] }
2626
serde_json = "1.0"
27-
tokio = { version = "0.2", features = ["macros", "rt-core"] }
27+
tokio = { version = "0.2", features = ["macros", "sync", "rt-core"] }
2828

2929
common-crypto = { path = "../../common/crypto" }
3030
common-logger = { path = "../../common/logger" }
@@ -37,6 +37,7 @@ protocol = { path = "../../protocol", package = "muta-protocol" }
3737
[dev-dependencies]
3838
num-traits = "0.2"
3939
rand = "0.7"
40+
bit-vec = "0.6"
4041

4142
[features]
4243
default = []

0 commit comments

Comments
 (0)