gpt4 book ai didi

org.bitcoinj.wallet.WalletProtobufSerializer.byteStringToHash()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 21:49:05 27 4
gpt4 key购买 nike

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

WalletProtobufSerializer.byteStringToHash介绍

暂无

代码示例

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

if (spendingTx == null) {
  throw new UnreadableWalletException(String.format(Locale.US, "Could not connect %s to %s",
      tx.getHashAsString(), byteStringToHash(spentByTransactionHash)));

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

if (spendingTx == null) {
  throw new UnreadableWalletException(String.format(Locale.US, "Could not connect %s to %s",
      tx.getHashAsString(), byteStringToHash(spentByTransactionHash)));

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

if (spendingTx == null) {
  throw new UnreadableWalletException(String.format(Locale.US, "Could not connect %s to %s",
      tx.getHashAsString(), byteStringToHash(spentByTransactionHash)));

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

if (spendingTx == null) {
  throw new UnreadableWalletException(String.format(Locale.US, "Could not connect %s to %s",
      tx.getHashAsString(), byteStringToHash(spentByTransactionHash)));

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

TransactionOutPoint outpoint = new TransactionOutPoint(params,
      inputProto.getTransactionOutPointIndex() & 0xFFFFFFFFL,
      byteStringToHash(inputProto.getTransactionOutPointHash())
  );
  Coin value = inputProto.hasValue() ? Coin.valueOf(inputProto.getValue()) : null;
  if (txProto.getBlockRelativityOffsetsCount() > 0)
    relativityOffset = txProto.getBlockRelativityOffsets(i);
  tx.addBlockAppearance(byteStringToHash(blockHash), relativityOffset);
Sha256Hash protoHash = byteStringToHash(txProto.getHash());
if (!tx.getHash().equals(protoHash))
  throw new UnreadableWalletException(String.format(Locale.US, "Transaction did not deserialize completely: %s vs %s", tx.getHash(), protoHash));
if (txMap.containsKey(txProto.getHash()))
  throw new UnreadableWalletException("Wallet contained duplicate transaction " + byteStringToHash(txProto.getHash()));
txMap.put(txProto.getHash(), tx);

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

TransactionOutPoint outpoint = new TransactionOutPoint(params,
      inputProto.getTransactionOutPointIndex() & 0xFFFFFFFFL,
      byteStringToHash(inputProto.getTransactionOutPointHash())
  );
  Coin value = inputProto.hasValue() ? Coin.valueOf(inputProto.getValue()) : null;
  if (txProto.getBlockRelativityOffsetsCount() > 0)
    relativityOffset = txProto.getBlockRelativityOffsets(i);
  tx.addBlockAppearance(byteStringToHash(blockHash), relativityOffset);
Sha256Hash protoHash = byteStringToHash(txProto.getHash());
if (!tx.getHash().equals(protoHash))
  throw new UnreadableWalletException(String.format(Locale.US, "Transaction did not deserialize completely: %s vs %s", tx.getHash(), protoHash));
if (txMap.containsKey(txProto.getHash()))
  throw new UnreadableWalletException("Wallet contained duplicate transaction " + byteStringToHash(txProto.getHash()));
txMap.put(txProto.getHash(), tx);

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

TransactionOutPoint outpoint = new TransactionOutPoint(params,
      inputProto.getTransactionOutPointIndex() & 0xFFFFFFFFL,
      byteStringToHash(inputProto.getTransactionOutPointHash())
  );
  Coin value = inputProto.hasValue() ? Coin.valueOf(inputProto.getValue()) : null;
  if (txProto.getBlockRelativityOffsetsCount() > 0)
    relativityOffset = txProto.getBlockRelativityOffsets(i);
  tx.addBlockAppearance(byteStringToHash(blockHash), relativityOffset);
Sha256Hash protoHash = byteStringToHash(txProto.getHash());
if (!tx.getHash().equals(protoHash))
  throw new UnreadableWalletException(String.format(Locale.US, "Transaction did not deserialize completely: %s vs %s", tx.getHash(), protoHash));
if (txMap.containsKey(txProto.getHash()))
  throw new UnreadableWalletException("Wallet contained duplicate transaction " + byteStringToHash(txProto.getHash()));
txMap.put(txProto.getHash(), tx);

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

TransactionOutPoint outpoint = new TransactionOutPoint(params,
      inputProto.getTransactionOutPointIndex() & 0xFFFFFFFFL,
      byteStringToHash(inputProto.getTransactionOutPointHash())
  );
  Coin value = inputProto.hasValue() ? Coin.valueOf(inputProto.getValue()) : null;
  if (txProto.getBlockRelativityOffsetsCount() > 0)
    relativityOffset = txProto.getBlockRelativityOffsets(i);
  tx.addBlockAppearance(byteStringToHash(blockHash), relativityOffset);
Sha256Hash protoHash = byteStringToHash(txProto.getHash());
if (!tx.getHash().equals(protoHash))
  throw new UnreadableWalletException(String.format(Locale.US, "Transaction did not deserialize completely: %s vs %s", tx.getHash(), protoHash));
if (txMap.containsKey(txProto.getHash()))
  throw new UnreadableWalletException("Wallet contained duplicate transaction " + byteStringToHash(txProto.getHash()));
txMap.put(txProto.getHash(), tx);

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

wallet.setLastBlockSeenHash(null);
} else {
  wallet.setLastBlockSeenHash(byteStringToHash(walletProto.getLastSeenBlockHash()));

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

wallet.setLastBlockSeenHash(null);
} else {
  wallet.setLastBlockSeenHash(byteStringToHash(walletProto.getLastSeenBlockHash()));

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

wallet.setLastBlockSeenHash(null);
} else {
  wallet.setLastBlockSeenHash(byteStringToHash(walletProto.getLastSeenBlockHash()));

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

wallet.setLastBlockSeenHash(null);
} else {
  wallet.setLastBlockSeenHash(byteStringToHash(walletProto.getLastSeenBlockHash()));

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com