3
0
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:
Mike Hearn 2011-08-05 15:49:21 +00:00
parent ec4b53a973
commit 20adfd9965

View File

@ -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);
}
} }
/** /**