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

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

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

Block.copyBitcoinHeaderTo介绍

[英]Copy the block without transactions into the provided empty block.
[中]将不带事务的块复制到提供的空块中。

代码示例

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

/** Returns a copy of the block, but without any transactions. */
public Block cloneAsHeader() {
  Block block = new Block(params, BLOCK_VERSION_GENESIS);
  copyBitcoinHeaderTo(block);
  return block;
}

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

/** Returns a copy of the block, but without any transactions. */
public Block cloneAsHeader() {
  Block block = new Block(params, BLOCK_VERSION_GENESIS);
  copyBitcoinHeaderTo(block);
  return block;
}

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

/** Returns a copy of the block, but without any transactions. */
public Block cloneAsHeader() {
  Block block = new Block(params, BLOCK_VERSION_GENESIS);
  copyBitcoinHeaderTo(block);
  return block;
}

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

/** Returns a copy of the block, but without any transactions. */
public Block cloneAsHeader() {
  Block block = new Block(params, BLOCK_VERSION_GENESIS);
  copyBitcoinHeaderTo(block);
  return block;
}

代码示例来源:origin: dogecoin/libdohj

/** Returns a copy of the block, but without any transactions. */
@Override
public Block cloneAsHeader() {
  AltcoinBlock block = new AltcoinBlock(params, getRawVersion());
  super.copyBitcoinHeaderTo(block);
  block.auxpow = auxpow;
  return block;
}

相关文章