1
0
Fork 0
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:
Roman Zeyde 2018-06-01 17:50:17 +03:00
parent 78f5203fe7
commit a8e32f6ce0
No known key found for this signature in database
GPG key ID: 87CAE5FA46917CBB

View file

@ -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() {