From 3ac5e264e32b5dd2055fcd2e40d45fe21d715b94 Mon Sep 17 00:00:00 2001 From: julia-zack Date: Tue, 10 Sep 2024 15:34:59 -0300 Subject: [PATCH] Add logs when throwing errors. Use getScriptSigWithSignature instead of updateScriptWithSignature --- .../java/co/rsk/peg/bitcoin/BitcoinUtils.java | 22 +++++++++++++------ .../co/rsk/peg/bitcoin/BitcoinTestUtils.java | 15 +++++++------ .../co/rsk/peg/bitcoin/BitcoinUtilsTest.java | 2 +- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/rskj-core/src/main/java/co/rsk/peg/bitcoin/BitcoinUtils.java b/rskj-core/src/main/java/co/rsk/peg/bitcoin/BitcoinUtils.java index f0cbe4d1050..c8e365e2746 100644 --- a/rskj-core/src/main/java/co/rsk/peg/bitcoin/BitcoinUtils.java +++ b/rskj-core/src/main/java/co/rsk/peg/bitcoin/BitcoinUtils.java @@ -65,21 +65,29 @@ public static Optional