Skip to content

Commit

Permalink
Adapt to methods renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-zack committed Sep 10, 2024
1 parent 97ad450 commit 3d4d58a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions rskj-core/src/main/java/co/rsk/peg/BridgeSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ private void processSvpFundTransactionHashSigned(BtcTransaction transaction) {
Sha256Hash fundTransactionHashUnsigned = fundTransactionHashUnsignedOpt.get();

BtcTransaction transactionCopy = new BtcTransaction(networkParameters, transaction.bitcoinSerialize()); // this is needed to not remove signatures from the actual tx
BitcoinUtils.removeSignaturesFromNonSegwitTransaction(transactionCopy);
BitcoinUtils.removeSignaturesFromTransactionWithInputsWithP2shMultiSigInputScript(transactionCopy);
if (transactionCopy.getHash().equals(fundTransactionHashUnsigned)) {
provider.setSvpFundTxHashSigned(transaction.getHash());
provider.setSvpFundTxHashUnsigned(null);
Expand Down Expand Up @@ -706,7 +706,6 @@ private void refundTxSender(
private void markTxAsProcessed(BtcTransaction btcTx) throws IOException {
// Mark tx as processed on this block (and use the txid without the witness)
long rskHeight = rskExecutionBlock.getNumber();
Sha256Hash hash = btcTx.getHash(false);
provider.setHeightBtcTxhashAlreadyProcessed(btcTx.getHash(false), rskHeight);
logger.debug(
"[markTxAsProcessed] Mark btc transaction {} as processed at height {}",
Expand Down
2 changes: 1 addition & 1 deletion rskj-core/src/test/java/co/rsk/peg/BridgeSupportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ private void randomSignTransactionInputs(BtcTransaction transaction, int amountO
List<TransactionInput> inputs = transaction.getInputs();
for (TransactionInput input : inputs) {
int inputIndex = inputs.indexOf(input);
BitcoinTestUtils.addSignaturesToInput(transaction, inputIndex, keysToSign);
BitcoinTestUtils.signTransactionInputFromMultiSigWithKeys(transaction, inputIndex, keysToSign);
}
}

Expand Down

0 comments on commit 3d4d58a

Please sign in to comment.