Skip to content

Commit

Permalink
Keep using 400 bytes trampoline payloads (#611)
Browse files Browse the repository at this point in the history
Eclair has support for variable size payloads, but it's not deployed
on our node yet.
  • Loading branch information
t-bast committed Feb 22, 2024
1 parent f861c3c commit 4f19c79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ object OutgoingPaymentPacket {
Triple(amount + hop.fee(amount), expiry + hop.cltvExpiryDelta, listOf(payload) + payloads)
}
val nodes = hops.map { it.nextNodeId }
val onion = buildOnion(nodes, payloads, invoice.paymentHash, null)
val onion = buildOnion(nodes, payloads, invoice.paymentHash, 400) // TODO: remove the fixed payload length once eclair supports it
return Triple(firstAmount, firstExpiry, onion)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,6 @@ class PaymentPacketTestsCommon : LightningTestSuite() {
// .--.
// / \
// a -> b -> c d -> e


val features = Features(Feature.BasicMultiPartPayment to FeatureSupport.Optional)
val offer = OfferTypes.Offer(finalAmount, "test offer", e, features, Block.LivenetGenesisBlock.hash)
val payerKey = randomKey()
Expand Down

0 comments on commit 4f19c79

Please sign in to comment.