1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-22 06:21:42 +01:00

minor: removed useless statements

This commit is contained in:
pm47 2017-01-19 16:41:22 +01:00
parent fbe2867001
commit a58befd1ed

View file

@ -84,7 +84,6 @@ object Helpers {
val closingTx = Transactions.makeClosingTx(commitments.commitInput, localScriptPubkey, remoteScriptPubkey, commitments.localParams.isFunder, dustLimitSatoshis, closingFee, commitments.localCommit.spec)
val localClosingSig = Transactions.sign(closingTx, params.localParams.fundingPrivKey)
val signedClosingTx = Transactions.addSigs(closingTx, commitments.localParams.fundingPrivKey.toPoint, commitments.remoteParams.fundingPubKey, localClosingSig, remoteClosingSig)
val closingSigned = ClosingSigned(commitments.channelId, closingFee.amount, localClosingSig)
Transactions.checkSpendable(signedClosingTx).map(x => signedClosingTx.tx)
}
@ -200,8 +199,7 @@ object Helpers {
// now we know what commit number this tx is referring to, we can derive the commitment point from the shachain
val remotePerCommitmentSecret = remotePerCommitmentSecrets.getHash(0xFFFFFFFFFFFFFFFFL - txnumber).map(d => Scalar(d :+ 1.toByte)).getOrElse(throw new RuntimeException(s"cannot get commitment secret for txnumber=$txnumber"))
val remotePerCommitmentPoint = remotePerCommitmentSecret.toPoint
val localPubkey = Generators.derivePubKey(localParams.paymentKey.toPoint, remotePerCommitmentPoint)
val remoteDelayedPubkey = Generators.derivePubKey(remoteParams.delayedPaymentBasepoint, remotePerCommitmentPoint)
val remoteRevocationPrivkey = Generators.revocationPrivKey(localParams.revocationSecret, remotePerCommitmentSecret)