mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-18 21:25:49 +00:00
Propagate BlockStoreException in BlockChain.setChainHead
This commit is contained in:
parent
ec4b53a973
commit
20adfd9965
@ -322,13 +322,9 @@ public class BlockChain {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setChainHead(StoredBlock chainHead) {
|
private void setChainHead(StoredBlock chainHead) throws BlockStoreException {
|
||||||
|
blockStore.setChainHead(chainHead);
|
||||||
this.chainHead = chainHead;
|
this.chainHead = chainHead;
|
||||||
try {
|
|
||||||
blockStore.setChainHead(chainHead);
|
|
||||||
} catch (BlockStoreException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user