Skip to content

Commit

Permalink
tests: make to_self_delay different between peers.
Browse files Browse the repository at this point in the history
This helps for testing that we handle it correctly.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jul 24, 2019
1 parent d484e7b commit 6bb7f86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tests/events/bolt2-02-add-htlc.events
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ MAYBE_UPDATE=maybe-send: type=channel_update
channel_reserve_satoshis=9998
htlc_minimum_msat=0
feerate_per_kw=253
to_self_delay=6
# node has to_self_delay=6; we use 5 to test differentiation
to_self_delay=5
max_accepted_htlcs=483
# funding_privkey=0000000000000000000000000000000000000000000000000000000000000020
funding_pubkey=03d30199d74fb5a22d47b6e054e2f378cedacffcb89904a61d75d0dbd407143e65
Expand Down Expand Up @@ -330,7 +331,7 @@ MAYBE_UPDATE=maybe-send: type=channel_update
2. recv: type=commitment_signed
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
signature=31f6f0ec18b50e61b0c0dc8632d0fc8b7a22883e55c01220d1fd4ad83b752a1a52af1978649e6525334d0c07c739a7537c26d38eaf1d7dab4a7bceffac04f6dd
htlc_signature=1d64a13cb4aa4edcf5fee860dde77dd0cdd2742d5f87fc0c35a3c00cc9b3f27e56e658e809103ee2426a3710fc83139408bf99020d5c91f478cf386ef2d48931
htlc_signature=fca89064c648f4264bcc6c0f8c630d7fcc9ede23b0eec23658fc772079e7b46f2fbea7265b1057159ba7a44096ef341fc469790997adaeb31dd3b0cf0478dd80

3. expect-send: type=revoke_and_ack
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
Expand Down
6 changes: 3 additions & 3 deletions tests/events/bolt2-03-htlc-fulfill.events
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ MAYBE_UPDATE=maybe-send: type=channel_update
channel_reserve_satoshis=9998
htlc_minimum_msat=0
feerate_per_kw=253
to_self_delay=6
to_self_delay=5
max_accepted_htlcs=483
# funding_privkey=0000000000000000000000000000000000000000000000000000000000000020
funding_pubkey=03d30199d74fb5a22d47b6e054e2f378cedacffcb89904a61d75d0dbd407143e65
Expand Down Expand Up @@ -116,7 +116,7 @@ MAYBE_UPDATE=maybe-send: type=channel_update
16. recv: type=commitment_signed
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
signature=bc5e1b465773cfe59478c5db35e9f9d27bf832436d0ed0c19833b5e7d444e9f26e3522883a110d71e715471727e3ea7703eba0e6e9855e8d59bc0bf93029bb29
htlc_signature=cb0e7a9b30062bed56360797083350883f2a5a7626e510027b83f5d0989f109841c01fcc1eb72a561737eabdb2f1aa1a3b3894181771aa8b749553bf9bb6569c
htlc_signature=8ef6bc3d35a91a00cd1edb0a22e5ca7204b297d41cd7c4cdb1c4167d2d298d907e23b9dc75356ff2fee9ced4abc9fba796a90a2939df45080d12c7bbadbda8d8

17. expect-send: type=revoke_and_ack
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
Expand Down Expand Up @@ -324,7 +324,7 @@ MAYBE_UPDATE=maybe-send: type=channel_update

24. recv: type=commitment_signed
channel_id=2f0b21d6bd32971ca6803de2bdc7370bbf12e0cd9ce73afc1c591f5c995b0841
signature=cf1292877b98697abbb2af4a28e7cba5dfeaa3e259ce528248881befa0e9008f6c8d2d1086266abb3bef002aa0fff652ed1d4f3bc60c8e5a22fbb3a3b584c47f
signature=85aebf2874c464db7eac10e0bad98b491c9ac943eae263bb4396d4e5feded12f1284e26196397313be31f4e83334eb5a6641cbec158e0fbfb22c4c488b3a28fd
htlc_signature=

25. expect-send: type=revoke_and_ack
Expand Down

0 comments on commit 6bb7f86

Please sign in to comment.