3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-20 22:25:50 +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 {
this.chainHead = chainHead;
try {
blockStore.setChainHead(chainHead); blockStore.setChainHead(chainHead);
} catch (BlockStoreException e) { this.chainHead = chainHead;
throw new RuntimeException(e);
}
} }
/** /**