TransactionOutPoint outpoint = new TransactionOutPoint(params, transactionInput.getTransactionOutPointIndex() & 0xFFFFFFFFL, byteStringToHash(transactionInput.getTransactionOutPointHash()) ); TransactionInput input = new TransactionInput(params, tx, scriptBytes, outpoint);
TransactionOutPoint outpoint = new TransactionOutPoint(params, inputProto.getTransactionOutPointIndex() & 0xFFFFFFFFL, byteStringToHash(inputProto.getTransactionOutPointHash()) ); Coin value = inputProto.hasValue() ? Coin.valueOf(inputProto.getValue()) : null;
TransactionOutPoint outpoint = new TransactionOutPoint(params, inputProto.getTransactionOutPointIndex() & 0xFFFFFFFFL, byteStringToHash(inputProto.getTransactionOutPointHash()) ); Coin value = inputProto.hasValue() ? Coin.valueOf(inputProto.getValue()) : null;
TransactionOutPoint outpoint = new TransactionOutPoint(params, inputProto.getTransactionOutPointIndex() & 0xFFFFFFFFL, byteStringToHash(inputProto.getTransactionOutPointHash()) ); Coin value = inputProto.hasValue() ? Coin.valueOf(inputProto.getValue()) : null;
TransactionOutPoint outpoint = new TransactionOutPoint(params, inputProto.getTransactionOutPointIndex() & 0xFFFFFFFFL, byteStringToHash(inputProto.getTransactionOutPointHash()) ); Coin value = inputProto.hasValue() ? Coin.valueOf(inputProto.getValue()) : null;
assertFalse(t1p.getTransactionInput(0).hasSequence()); assertArrayEquals(t1.getInputs().get(0).getOutpoint().getHash().getBytes(), t1p.getTransactionInput(0).getTransactionOutPointHash().toByteArray()); assertEquals(0, t1p.getTransactionInput(0).getTransactionOutPointIndex()); assertEquals(t1p.getTransactionOutput(0).getValue(), v1.value);
public Builder mergeFrom(org.bitcoinj.wallet.Protos.TransactionInput other) { if (other == org.bitcoinj.wallet.Protos.TransactionInput.getDefaultInstance()) return this; if (other.hasTransactionOutPointHash()) { setTransactionOutPointHash(other.getTransactionOutPointHash()); } if (other.hasTransactionOutPointIndex()) { setTransactionOutPointIndex(other.getTransactionOutPointIndex()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasSequence()) { setSequence(other.getSequence()); } if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoinj.wallet.Protos.TransactionInput other) { if (other == org.bitcoinj.wallet.Protos.TransactionInput.getDefaultInstance()) return this; if (other.hasTransactionOutPointHash()) { setTransactionOutPointHash(other.getTransactionOutPointHash()); } if (other.hasTransactionOutPointIndex()) { setTransactionOutPointIndex(other.getTransactionOutPointIndex()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasSequence()) { setSequence(other.getSequence()); } if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoinj.wallet.Protos.TransactionInput other) { if (other == org.bitcoinj.wallet.Protos.TransactionInput.getDefaultInstance()) return this; if (other.hasTransactionOutPointHash()) { setTransactionOutPointHash(other.getTransactionOutPointHash()); } if (other.hasTransactionOutPointIndex()) { setTransactionOutPointIndex(other.getTransactionOutPointIndex()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasSequence()) { setSequence(other.getSequence()); } if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoinj.wallet.Protos.TransactionInput other) { if (other == org.bitcoinj.wallet.Protos.TransactionInput.getDefaultInstance()) return this; if (other.hasTransactionOutPointHash()) { setTransactionOutPointHash(other.getTransactionOutPointHash()); } if (other.hasTransactionOutPointIndex()) { setTransactionOutPointIndex(other.getTransactionOutPointIndex()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasSequence()) { setSequence(other.getSequence()); } if (other.hasValue()) { setValue(other.getValue()); } if (other.hasWitness()) { mergeWitness(other.getWitness()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoinj.wallet.Protos.TransactionInput other) { if (other == org.bitcoinj.wallet.Protos.TransactionInput.getDefaultInstance()) return this; if (other.hasTransactionOutPointHash()) { setTransactionOutPointHash(other.getTransactionOutPointHash()); } if (other.hasTransactionOutPointIndex()) { setTransactionOutPointIndex(other.getTransactionOutPointIndex()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasSequence()) { setSequence(other.getSequence()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public Builder clearTransactionOutPointHash() { bitField0_ = (bitField0_ & ~0x00000001); transactionOutPointHash_ = getDefaultInstance().getTransactionOutPointHash(); onChanged(); return this; }
/** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public Builder clearTransactionOutPointHash() { bitField0_ = (bitField0_ & ~0x00000001); transactionOutPointHash_ = getDefaultInstance().getTransactionOutPointHash(); onChanged(); return this; }
/** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public Builder clearTransactionOutPointHash() { bitField0_ = (bitField0_ & ~0x00000001); transactionOutPointHash_ = getDefaultInstance().getTransactionOutPointHash(); onChanged(); return this; }
/** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public Builder clearTransactionOutPointHash() { bitField0_ = (bitField0_ & ~0x00000001); transactionOutPointHash_ = getDefaultInstance().getTransactionOutPointHash(); onChanged(); return this; }
/** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public Builder clearTransactionOutPointHash() { bitField0_ = (bitField0_ & ~0x00000001); transactionOutPointHash_ = getDefaultInstance().getTransactionOutPointHash(); onChanged(); return this; }