/// <summary> /// Given a block store, looks up the previous block in this chain. Convenience method for doing <tt>store.get(storedBlock.Header.PreviousBlockHash)</tt>. /// </summary> /// <returns>The previous block in the chain or null if it was not found in the store.</returns> /// <exception cref="BlockStoreException"/> public StoredBlock GetPrevious(ABlockStore store) { return(store.Get(Header.PreviousBlockHash)); }
/// <summary> /// Given a block store, looks up the previous block in this chain. Convenience method for doing <tt>store.get(storedBlock.Header.PreviousBlockHash)</tt>. /// </summary> /// <returns>The previous block in the chain or null if it was not found in the store.</returns> /// <exception cref="BlockStoreException"/> public StoredBlock GetPrevious(ABlockStore store) { return store.Get(Header.PreviousBlockHash); }