org.bitcoinj.core.Block.verifyTransactions()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中org.bitcoinj.core.Block.verifyTransactions()方法的一些代码示例,展示了Block.verifyTransactions()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.verifyTransactions()方法的具体详情如下:
包路径:org.bitcoinj.core.Block
类名称:Block
方法名:verifyTransactions

Block.verifyTransactions介绍

[英]Checks the block contents
[中]检查块内容

代码示例

代码示例来源:origin: greenaddress/GreenBits

/**
 * Verifies both the header and that the transactions hash to the merkle root.
 *
 * @param height block height, if known, or -1 otherwise.
 * @param flags flags to indicate which tests should be applied (i.e.
 * whether to test for height in the coinbase transaction).
 * @throws VerificationException if there was an error verifying the block.
 */
public void verify(final int height, final EnumSet<VerifyFlag> flags) throws VerificationException {
  verifyHeader();
  verifyTransactions(height, flags);
}

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

/**
 * Verifies both the header and that the transactions hash to the merkle root.
 *
 * @param height block height, if known, or -1 otherwise.
 * @param flags flags to indicate which tests should be applied (i.e.
 * whether to test for height in the coinbase transaction).
 * @throws VerificationException if there was an error verifying the block.
 */
public void verify(final int height, final EnumSet<VerifyFlag> flags) throws VerificationException {
  verifyHeader();
  verifyTransactions(height, flags);
}

代码示例来源:origin: fr.acinq/bitcoinj-core

/**
 * Verifies both the header and that the transactions hash to the merkle root.
 *
 * @param height block height, if known, or -1 otherwise.
 * @param flags flags to indicate which tests should be applied (i.e.
 * whether to test for height in the coinbase transaction).
 * @throws VerificationException if there was an error verifying the block.
 */
public void verify(final int height, final EnumSet<VerifyFlag> flags) throws VerificationException {
  verifyHeader();
  verifyTransactions(height, flags);
}

代码示例来源:origin: HashEngineering/dashj

/**
 * Verifies both the header and that the transactions hash to the merkle root.
 *
 * @param height block height, if known, or -1 otherwise.
 * @param flags flags to indicate which tests should be applied (i.e.
 * whether to test for height in the coinbase transaction).
 * @throws VerificationException if there was an error verifying the block.
 */
public void verify(final int height, final EnumSet<VerifyFlag> flags) throws VerificationException {
  verifyHeader();
  verifyTransactions(height, flags);
}

代码示例来源:origin: greenaddress/GreenBits

block.verifyTransactions(height, flags);
} catch (VerificationException e) {
  log.error("Failed to verify block: ", e);

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

block.verifyTransactions(height, flags);
} catch (VerificationException e) {
  log.error("Failed to verify block: ", e);

代码示例来源:origin: HashEngineering/dashj

block.verifyTransactions(height, flags);
} catch (VerificationException e) {
  log.error("Failed to verify block: ", e);

代码示例来源:origin: fr.acinq/bitcoinj-core

block.verifyTransactions(height, flags);
} catch (VerificationException e) {
  log.error("Failed to verify block: ", e);

相关文章

微信公众号

最新文章

更多