本文整理汇总了Java中com.google.bitcoin.core.StoredUndoableBlock类的典型用法代码示例。如果您正苦于以下问题:Java StoredUndoableBlock类的具体用法?Java StoredUndoableBlock怎么用?Java StoredUndoableBlock使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StoredUndoableBlock类属于com.google.bitcoin.core包,在下文中一共展示了StoredUndoableBlock类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: put
import com.google.bitcoin.core.StoredUndoableBlock; //导入依赖的package包/类
/**
* <p>Saves the given {@link StoredUndoableBlock} and {@link StoredBlock}. Calculates keys from the {@link StoredBlock}</p>
*
* <p>Though not required for proper function of a FullPrunedBlockStore, any user of a FullPrunedBlockStore should ensure
* that a StoredUndoableBlock for each block up to the fully verified chain head has been added to this block store using
* this function (not put(StoredBlock)), so that the ability to perform reorgs is maintained.</p>
*
* @throws BlockStoreException if there is a problem with the underlying storage layer, such as running out of disk space.
*/
void put(StoredBlock storedBlock, StoredUndoableBlock undoableBlock) throws BlockStoreException;
示例2: getUndoBlock
import com.google.bitcoin.core.StoredUndoableBlock; //导入依赖的package包/类
/**
* Returns a {@link StoredUndoableBlock} whose block.getHash() method will be equal to the parameter. If no such
* block is found, returns null. Note that this may return null more often than get(Sha256Hash hash) as not all
* {@link StoredBlock}s have a {@link StoredUndoableBlock} copy stored as well.
*/
StoredUndoableBlock getUndoBlock(Sha256Hash hash) throws BlockStoreException;