mirror of
https://github.com/romanz/electrs.git
synced 2025-02-24 23:08:39 +01:00
Remove unused DBStore method
This commit is contained in:
parent
78f5203fe7
commit
a8e32f6ce0
1 changed files with 0 additions and 7 deletions
|
@ -1,5 +1,3 @@
|
|||
use bitcoin::blockdata::block::BlockHeader;
|
||||
use bitcoin::network::serialize::deserialize;
|
||||
use rocksdb;
|
||||
|
||||
use util::Bytes;
|
||||
|
@ -53,11 +51,6 @@ impl DBStore {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn read_header(&self, blockhash: &[u8]) -> Option<BlockHeader> {
|
||||
self.get(&[b"B", blockhash].concat())
|
||||
.map(|value| deserialize(&value).unwrap())
|
||||
}
|
||||
|
||||
pub fn compact_if_needed(&self) {
|
||||
let key = b"F"; // full compaction marker
|
||||
if self.get(key).is_some() {
|
||||
|
|
Loading…
Add table
Reference in a new issue