mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-23 06:35:11 +01:00
minor: removed useless statements
This commit is contained in:
parent
fbe2867001
commit
a58befd1ed
1 changed files with 1 additions and 3 deletions
|
@ -84,7 +84,6 @@ object Helpers {
|
||||||
val closingTx = Transactions.makeClosingTx(commitments.commitInput, localScriptPubkey, remoteScriptPubkey, commitments.localParams.isFunder, dustLimitSatoshis, closingFee, commitments.localCommit.spec)
|
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 localClosingSig = Transactions.sign(closingTx, params.localParams.fundingPrivKey)
|
||||||
val signedClosingTx = Transactions.addSigs(closingTx, commitments.localParams.fundingPrivKey.toPoint, commitments.remoteParams.fundingPubKey, localClosingSig, remoteClosingSig)
|
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)
|
Transactions.checkSpendable(signedClosingTx).map(x => signedClosingTx.tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +200,6 @@ object Helpers {
|
||||||
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 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 remotePerCommitmentPoint = remotePerCommitmentSecret.toPoint
|
||||||
|
|
||||||
val localPubkey = Generators.derivePubKey(localParams.paymentKey.toPoint, remotePerCommitmentPoint)
|
|
||||||
val remoteDelayedPubkey = Generators.derivePubKey(remoteParams.delayedPaymentBasepoint, remotePerCommitmentPoint)
|
val remoteDelayedPubkey = Generators.derivePubKey(remoteParams.delayedPaymentBasepoint, remotePerCommitmentPoint)
|
||||||
val remoteRevocationPrivkey = Generators.revocationPrivKey(localParams.revocationSecret, remotePerCommitmentSecret)
|
val remoteRevocationPrivkey = Generators.revocationPrivKey(localParams.revocationSecret, remotePerCommitmentSecret)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue