tx.inputs.get(i).clearScriptBytes();
tx.inputs.get(i).clearScriptBytes();
tx.inputs.get(i).clearScriptBytes();
tx.inputs.get(i).clearScriptBytes();
@Test (expected = ECKey.MissingPrivateKeyException.class) public void completeTxPartiallySignedThrows() throws Exception { sendMoneyToWallet(AbstractBlockChain.NewBlockType.BEST_CHAIN, CENT, wallet.freshReceiveKey()); SendRequest req = SendRequest.emptyWallet(OTHER_ADDRESS); wallet.completeTx(req); // Delete the sigs for (TransactionInput input : req.tx.getInputs()) input.clearScriptBytes(); Wallet watching = Wallet.fromWatchingKey(PARAMS, wallet.getWatchingKey().dropParent().dropPrivateBytes()); watching.completeTx(SendRequest.forTx(req.tx)); }
assertEquals(block.length, origBlockLen + tx.length); assertEquals(tx.length, origTxLength + 1); block.getTransactions().get(1).getInputs().get(0).clearScriptBytes(); assertEquals(block.length, block.unsafeBitcoinSerialize().length); assertEquals(block.length, origBlockLen + tx.length);
b26.block.getTransactions().get(0).getInputs().get(0).clearScriptBytes(); b26.block.setMerkleRoot(null); b26.solve();
TransactionInput input = t.addInput(spendableOutput); input.clearScriptBytes(); rollingBlock.addTransaction(t); rollingBlock.solve();