Browse Source
Laolu pointed out that we can't have multiple in flight, since we can't sign without knowing the next revocation preimage. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>ppa-0.6.1
Rusty Russell
8 years ago
5 changed files with 2 additions and 146 deletions
@ -1,20 +0,0 @@ |
|||||
# Test committing before receiving previous revocation. |
|
||||
A:nocommitwait |
|
||||
A:offer 1 |
|
||||
A:commit |
|
||||
A:offer 3 |
|
||||
A:commit |
|
||||
B:recvoffer |
|
||||
B:recvcommit |
|
||||
B:recvoffer |
|
||||
B:recvcommit |
|
||||
A:recvrevoke |
|
||||
A:recvrevoke |
|
||||
B:commit |
|
||||
A:recvcommit |
|
||||
B:recvrevoke |
|
||||
checksync |
|
||||
echo ***A*** |
|
||||
A:dump |
|
||||
echo ***B*** |
|
||||
B:dump |
|
@ -1,22 +0,0 @@ |
|||||
***A*** |
|
||||
LOCAL COMMITS: |
|
||||
Commit 1: |
|
||||
Offered htlcs: 1 3 |
|
||||
Received htlcs: |
|
||||
SIGNED |
|
||||
REMOTE COMMITS: |
|
||||
Commit 2: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: 1 3 |
|
||||
SIGNED |
|
||||
***B*** |
|
||||
LOCAL COMMITS: |
|
||||
Commit 2: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: 1 3 |
|
||||
SIGNED |
|
||||
REMOTE COMMITS: |
|
||||
Commit 1: |
|
||||
Offered htlcs: 1 3 |
|
||||
Received htlcs: |
|
||||
SIGNED |
|
@ -1,26 +0,0 @@ |
|||||
# Test committing fees before receiving previous revocation. |
|
||||
A:nocommitwait |
|
||||
A:feechange |
|
||||
A:commit |
|
||||
A:feechange |
|
||||
A:commit |
|
||||
echo ***A after two commits with fee changes*** |
|
||||
A:dump |
|
||||
B:recvfeechange |
|
||||
echo ***B after receiving fee change*** |
|
||||
B:dump |
|
||||
B:recvcommit |
|
||||
echo ***B after receiving first commit*** |
|
||||
B:dump |
|
||||
B:recvfeechange |
|
||||
B:recvcommit |
|
||||
echo ***B after receiving second commit*** |
|
||||
B:dump |
|
||||
A:recvrevoke |
|
||||
A:recvrevoke |
|
||||
B:commit |
|
||||
A:recvcommit |
|
||||
B:recvrevoke |
|
||||
echo ***B after committing*** |
|
||||
B:dump |
|
||||
checksync |
|
@ -1,69 +0,0 @@ |
|||||
***A after two commits with fee changes*** |
|
||||
LOCAL COMMITS: |
|
||||
Commit 0: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
SIGNED |
|
||||
REMOTE COMMITS: |
|
||||
Commit 0: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
Pending unacked: FEE |
|
||||
SIGNED |
|
||||
Commit 1: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
Pending unacked: FEE |
|
||||
SIGNED |
|
||||
Commit 2: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
SIGNED |
|
||||
***B after receiving fee change*** |
|
||||
LOCAL COMMITS: |
|
||||
Commit 0: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
Pending unacked: FEE |
|
||||
SIGNED |
|
||||
REMOTE COMMITS: |
|
||||
Commit 0: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
SIGNED |
|
||||
***B after receiving first commit*** |
|
||||
LOCAL COMMITS: |
|
||||
Commit 1: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
SIGNED |
|
||||
REMOTE COMMITS: |
|
||||
Commit 0: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
Pending acked |
|
||||
SIGNED |
|
||||
***B after receiving second commit*** |
|
||||
LOCAL COMMITS: |
|
||||
Commit 2: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
SIGNED |
|
||||
REMOTE COMMITS: |
|
||||
Commit 0: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
Pending acked |
|
||||
SIGNED |
|
||||
***B after committing*** |
|
||||
LOCAL COMMITS: |
|
||||
Commit 2: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
SIGNED |
|
||||
REMOTE COMMITS: |
|
||||
Commit 1: |
|
||||
Offered htlcs: |
|
||||
Received htlcs: |
|
||||
Fee level 2 |
|
||||
SIGNED |
|
Loading…
Reference in new issue