Skip to content

Commit 4857c46

Browse files
committed
removed not existing field ChainState.last_chainlock_height from storage logic
1 parent 4438d95 commit 4857c46

File tree

2 files changed

+0
-673
lines changed

2 files changed

+0
-673
lines changed

dash-spv/src/storage/chainstate.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ impl ChainStateStorage for PersistentChainStateStorage {
4343
async fn store_chain_state(&mut self, state: &ChainState) -> StorageResult<()> {
4444
let state_data = serde_json::json!({
4545
"last_chainlock_height": state.last_chainlock_height,
46-
"last_chainlock_hash": state.last_chainlock_hash,
4746
"sync_base_height": state.sync_base_height,
4847
});
4948

@@ -74,10 +73,6 @@ impl ChainStateStorage for PersistentChainStateStorage {
7473
.get("last_chainlock_height")
7574
.and_then(|v| v.as_u64())
7675
.map(|h| h as u32),
77-
last_chainlock_hash: value
78-
.get("last_chainlock_hash")
79-
.and_then(|v| v.as_str())
80-
.and_then(|s| s.parse().ok()),
8176
sync_base_height: value
8277
.get("sync_base_height")
8378
.and_then(|v| v.as_u64())

0 commit comments

Comments
 (0)