@@ -287,22 +287,22 @@ public void onBlock(org.ethereum.core.Block block, List<TransactionReceipt> rece
287287 * </p>
288288 *
289289 * @param currentBlockNumber the current block number in the blockchain
290- * @param svpSpendTx the Keccak256 hash and the Bitcoin transaction of the svp spend transaction waiting to be signed
290+ * @param svpSpendTxEntry the Keccak256 hash and the Bitcoin transaction of the svp spend transaction waiting to be signed
291291 * @return {@code true} if the transaction has the required number of confirmations and is ready to be signed;
292292 * {@code false} otherwise
293293 */
294- private boolean isSVPSpendTxReadyToSign (long currentBlockNumber , Map .Entry <Keccak256 , BtcTransaction > svpSpendTx ) {
294+ private boolean isSVPSpendTxReadyToSign (long currentBlockNumber , Map .Entry <Keccak256 , BtcTransaction > svpSpendTxEntry ) {
295295 try {
296296
297- BtcTransaction btcTx = svpSpendTx .getValue ();
297+ BtcTransaction svpSpendTx = svpSpendTxEntry .getValue ();
298298
299- logger .debug ("[isSvpSpendTxReadyToSign] SVP spend tx before removing signatures [{}]" , btcTx .getHash ());
300- BitcoinUtils .removeSignaturesFromTransactionWithP2shMultiSigInputs (btcTx );
301- logger .debug ("[isSvpSpendTxReadyToSign] SVP spend tx after removing signatures [{}]" , btcTx .getHash ());
299+ logger .debug ("[isSvpSpendTxReadyToSign] SVP spend tx before removing signatures [{}]" , svpSpendTx .getHash ());
300+ BitcoinUtils .removeSignaturesFromTransactionWithP2shMultiSigInputs (svpSpendTx );
301+ logger .debug ("[isSvpSpendTxReadyToSign] SVP spend tx after removing signatures [{}]" , svpSpendTx .getHash ());
302302
303303 int version = signer .getVersionForKeyId (BTC .getKeyId ());
304304 ReleaseCreationInformation releaseCreationInformation = releaseCreationInformationGetter .getTxInfoToSign (
305- version , svpSpendTx .getKey (), btcTx );
305+ version , svpSpendTxEntry .getKey (), svpSpendTx );
306306
307307 boolean isReadyToSign = Optional .ofNullable (releaseCreationInformation )
308308 .map (ReleaseCreationInformation ::getPegoutCreationBlock )
@@ -312,7 +312,7 @@ private boolean isSVPSpendTxReadyToSign(long currentBlockNumber, Map.Entry<Kecca
312312 .isPresent ();
313313
314314 logger .info ("[isSvpSpendTxReadyToSign] SVP spend tx readiness check for signing: tx hash [{}], Current block [{}], Ready to sign? [{}]" ,
315- svpSpendTx .getKey (),
315+ svpSpendTxEntry .getKey (),
316316 currentBlockNumber ,
317317 isReadyToSign ? "YES" : "NO" );
318318
0 commit comments