mirror of
https://github.com/ACINQ/eclair.git
synced 2024-11-19 18:10:42 +01:00
This commit is contained in:
parent
1c3b1bfed5
commit
5c53bf5f4d
@ -441,7 +441,7 @@ object Commitments extends Logging {
|
||||
val remoteDelayedPubkey = Generators.derivePubKey(remoteParams.delayedPaymentBasepoint, remotePerCommitmentPoint)
|
||||
val remoteRevocationPubkey = Generators.revocationPubKey(localParams.revocationBasepoint, remotePerCommitmentPoint)
|
||||
val commitTx = Transactions.makeCommitTx(commitmentInput, commitTxNumber, remoteParams.paymentBasepoint, localParams.paymentBasepoint, !localParams.isFunder, Satoshi(remoteParams.dustLimitSatoshis), remotePubkey, remoteRevocationPubkey, localParams.toSelfDelay, remoteDelayedPubkey, localPubkey, spec)
|
||||
val (htlcTimeoutTxs, htlcSuccessTxs) = Transactions.makeHtlcTxs(commitTx.tx, Satoshi(localParams.dustLimitSatoshis), remoteRevocationPubkey, localParams.toSelfDelay, remotePubkey, remoteDelayedPubkey, localPubkey, spec)
|
||||
val (htlcTimeoutTxs, htlcSuccessTxs) = Transactions.makeHtlcTxs(commitTx.tx, Satoshi(remoteParams.dustLimitSatoshis), remoteRevocationPubkey, localParams.toSelfDelay, remotePubkey, remoteDelayedPubkey, localPubkey, spec)
|
||||
(commitTx, htlcTimeoutTxs, htlcSuccessTxs)
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ object TestConstants {
|
||||
publicAddresses = new InetSocketAddress("localhost", 9731) :: Nil,
|
||||
globalFeatures = "",
|
||||
localFeatures = "00",
|
||||
dustLimitSatoshis = 542,
|
||||
dustLimitSatoshis = 500,
|
||||
maxHtlcValueInFlightMsat = 150000000,
|
||||
maxAcceptedHtlcs = 100,
|
||||
expiryDeltaBlocks = 144,
|
||||
@ -75,7 +75,7 @@ object TestConstants {
|
||||
publicAddresses = new InetSocketAddress("localhost", 9732) :: Nil,
|
||||
globalFeatures = "",
|
||||
localFeatures = "00", // no announcement
|
||||
dustLimitSatoshis = 542,
|
||||
dustLimitSatoshis = 1000,
|
||||
maxHtlcValueInFlightMsat = Long.MaxValue, // Bob has no limit on the combined max value of in-flight htlcs
|
||||
maxAcceptedHtlcs = 30,
|
||||
expiryDeltaBlocks = 144,
|
||||
|
Loading…
Reference in New Issue
Block a user