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

x33g5p2x  于2022-01-30 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(80)

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

Transaction.unCache介绍

暂无

代码示例

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

public void setVersion(int version) {
  this.version = version;
  unCache();
}

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

public void setVersion(int version) {
  this.version = version;
  unCache();
}

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

public void setVersion(int version) {
  this.version = version;
  unCache();
}

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

public void setVersion(int version) {
  this.version = version;
  unCache();
}

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

/**
 * Adds the given output to this transaction. The output must be completely initialized. Returns the given output.
 */
public TransactionOutput addOutput(TransactionOutput to) {
  unCache();
  to.setParent(this);
  outputs.add(to);
  adjustLength(outputs.size(), to.length);
  return to;
}

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

/**
 * Adds the given output to this transaction. The output must be completely initialized. Returns the given output.
 */
public TransactionOutput addOutput(TransactionOutput to) {
  unCache();
  to.setParent(this);
  outputs.add(to);
  adjustLength(outputs.size(), to.length);
  return to;
}

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

/**
 * Adds an input directly, with no checking that it's valid.
 * @return the new input.
 */
public TransactionInput addInput(TransactionInput input) {
  unCache();
  input.setParent(this);
  inputs.add(input);
  adjustLength(inputs.size(), input.length);
  return input;
}

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

/**
 * Adds an input directly, with no checking that it's valid.
 * @return the new input.
 */
public TransactionInput addInput(TransactionInput input) {
  unCache();
  input.setParent(this);
  inputs.add(input);
  adjustLength(inputs.size(), input.length);
  return input;
}

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

/**
 * Adds an input directly, with no checking that it's valid.
 * @return the new input.
 */
public TransactionInput addInput(TransactionInput input) {
  unCache();
  input.setParent(this);
  inputs.add(input);
  adjustLength(inputs.size(), input.length);
  return input;
}

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

/**
 * Adds the given output to this transaction. The output must be completely initialized. Returns the given output.
 */
public TransactionOutput addOutput(TransactionOutput to) {
  unCache();
  to.setParent(this);
  outputs.add(to);
  adjustLength(outputs.size(), to.length);
  return to;
}

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

/**
 * Adds the given output to this transaction. The output must be completely initialized. Returns the given output.
 */
public TransactionOutput addOutput(TransactionOutput to) {
  unCache();
  to.setParent(this);
  outputs.add(to);
  adjustLength(outputs.size(), to.length);
  return to;
}

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

/**
 * Adds an input directly, with no checking that it's valid.
 * @return the new input.
 */
public TransactionInput addInput(TransactionInput input) {
  unCache();
  input.setParent(this);
  inputs.add(input);
  adjustLength(inputs.size(), input.length);
  return input;
}

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

/**
 * Removes all the outputs from this transaction.
 * Note that this also invalidates the length attribute
 */
public void clearOutputs() {
  unCache();
  for (TransactionOutput output : outputs) {
    output.setParent(null);
  }
  outputs.clear();
  // You wanted to reserialize, right?
  this.length = this.unsafeBitcoinSerialize().length;
}

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

/**
 * Removes all the outputs from this transaction.
 * Note that this also invalidates the length attribute
 */
public void clearOutputs() {
  unCache();
  for (TransactionOutput output : outputs) {
    output.setParent(null);
  }
  outputs.clear();
  // You wanted to reserialize, right?
  this.length = this.unsafeBitcoinSerialize().length;
}

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

/**
 * Removes all the outputs from this transaction.
 * Note that this also invalidates the length attribute
 */
public void clearOutputs() {
  unCache();
  for (TransactionOutput output : outputs) {
    output.setParent(null);
  }
  outputs.clear();
  // You wanted to reserialize, right?
  this.length = this.unsafeBitcoinSerialize().length;
}

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

/**
 * Removes all the inputs from this transaction.
 * Note that this also invalidates the length attribute
 */
public void clearInputs() {
  unCache();
  for (TransactionInput input : inputs) {
    input.setParent(null);
  }
  inputs.clear();
  // You wanted to reserialize, right?
  this.length = this.unsafeBitcoinSerialize().length;
}

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

/**
 * Removes all the outputs from this transaction.
 * Note that this also invalidates the length attribute
 */
public void clearOutputs() {
  unCache();
  for (TransactionOutput output : outputs) {
    output.setParent(null);
  }
  outputs.clear();
  // You wanted to reserialize, right?
  this.length = this.unsafeBitcoinSerialize().length;
}

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

/**
 * Removes all the inputs from this transaction.
 * Note that this also invalidates the length attribute
 */
public void clearInputs() {
  unCache();
  for (TransactionInput input : inputs) {
    input.setParent(null);
  }
  inputs.clear();
  // You wanted to reserialize, right?
  this.length = this.unsafeBitcoinSerialize().length;
}

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

/**
 * Removes all the inputs from this transaction.
 * Note that this also invalidates the length attribute
 */
public void clearInputs() {
  unCache();
  for (TransactionInput input : inputs) {
    input.setParent(null);
  }
  inputs.clear();
  // You wanted to reserialize, right?
  this.length = this.unsafeBitcoinSerialize().length;
}

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

/**
 * Removes all the inputs from this transaction.
 * Note that this also invalidates the length attribute
 */
public void clearInputs() {
  unCache();
  for (TransactionInput input : inputs) {
    input.setParent(null);
  }
  inputs.clear();
  // You wanted to reserialize, right?
  this.length = this.unsafeBitcoinSerialize().length;
}

相关文章

微信公众号

最新文章

更多

Transaction类方法