Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Notification-based block pinning #13157

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d5c1427
Worker
skunert Dec 22, 2022
6131598
Reorganize and unpin onnotification drop
skunert Jan 6, 2023
ccdf8ed
Pin in state-db, pass block number
skunert Jan 9, 2023
0443235
Pin blocks in blockchain db
skunert Jan 10, 2023
c1a25dc
Switch to reference counted LRU
skunert Jan 10, 2023
9d824d4
Merge branch 'master' into skunert/notification-based-pinning
skunert Jan 10, 2023
2f7f943
Disable pinning when we keep all blocks
skunert Jan 11, 2023
65caa1a
Fix pinning hint for state-db
skunert Jan 12, 2023
cc000a3
Remove pinning from backend layer
skunert Jan 12, 2023
8a22325
Improve readability
skunert Jan 12, 2023
d3d208a
Add justifications to test
skunert Jan 12, 2023
bc2d40c
Fix justification behaviour
skunert Jan 12, 2023
da7a855
Remove debug prints
skunert Jan 12, 2023
7daf11c
Convert channels to tracing_unbounded
skunert Jan 16, 2023
2fb995c
Add comments to the test
skunert Jan 16, 2023
7a072dd
Documentation and Cleanup
skunert Jan 16, 2023
92e3928
Move task start to client
skunert Jan 16, 2023
3ec854e
Simplify cache
skunert Jan 16, 2023
d5e2b1d
Improve test, remove unwanted log
skunert Jan 16, 2023
03051ca
Add tracing logs, remove expect for block number
skunert Jan 16, 2023
c4434bb
Cleanup
skunert Jan 16, 2023
347c80a
Add conversion method for unpin handle to Finalitynotification
skunert Jan 17, 2023
1198568
Revert unwanted changes
skunert Jan 17, 2023
363f01a
Improve naming
skunert Jan 17, 2023
b220553
Make clippy happy
skunert Jan 17, 2023
10dfdf7
Fix docs
skunert Jan 17, 2023
e2ff001
Merge branch 'master' into skunert/notification-based-pinning
skunert Jan 17, 2023
c4608da
Use `NumberFor` instead of u64 in API
skunert Jan 17, 2023
68cc76f
Hand over weak reference to unpin worker task
skunert Jan 17, 2023
fe2d4cc
Unwanted
skunert Jan 17, 2023
f5d6b08
&Hash -> Hash
skunert Jan 17, 2023
946e06a
Remove number from interface, rename `_unpin_handle`, LOG_TARGET
skunert Jan 18, 2023
a48e44b
Move RwLock one layer up
skunert Jan 18, 2023
4014c16
Apply code style suggestions
skunert Jan 18, 2023
d547fc2
Improve comments
skunert Jan 18, 2023
de6aa36
Replace lru crate by schnellru
skunert Jan 18, 2023
81f7493
Merge remote-tracking branch 'origin' into skunert/notification-based…
skunert Jan 19, 2023
6fa6d5c
Only insert values for pinned items + better docs
skunert Jan 19, 2023
a177b50
Apply suggestions from code review
skunert Jan 19, 2023
cbd0868
Improve comments, log target and test
skunert Jan 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert unwanted changes
  • Loading branch information
skunert committed Jan 17, 2023
commit 1198568a3d8ccb1049f1259cc1a0ebb6c88d3bca
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions client/state-db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,8 @@ impl fmt::Debug for StateDbError {
write!(f, "Too many sibling blocks at #{number} inserted"),
Self::BlockAlreadyExists => write!(f, "Block already exists"),
Self::Metadata(message) => write!(f, "Invalid metadata: {}", message),
Self::BlockUnavailable => {
write!(f, "Trying to get a block record from db while it is not commit to db yet")
},
Self::BlockUnavailable =>
write!(f, "Trying to get a block record from db while it is not commit to db yet"),
Self::BlockMissing => write!(f, "Block record is missing from the pruning window"),
}
}
Expand Down
1 change: 0 additions & 1 deletion test-utils/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ futures = "0.3.21"
serde = "1.0.136"
serde_json = "1.0.85"
sc-client-api = { version = "4.0.0-dev", path = "../../client/api" }
sc-utils = { version = "4.0.0-dev", path = "../../client/utils" }
sc-client-db = { version = "0.10.0-dev", default-features = false, features = [
"test-helpers",
], path = "../../client/db" }
Expand Down