本文整理了Java中org.bitcoinj.core.Block.copyBitcoinHeaderTo()
方法的一些代码示例,展示了Block.copyBitcoinHeaderTo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.copyBitcoinHeaderTo()
方法的具体详情如下:
包路径:org.bitcoinj.core.Block
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!