|
@ -746,7 +746,9 @@ int main(int argc, const char *argv[]) |
|
|
print_superverbose = true; |
|
|
print_superverbose = true; |
|
|
tx = commit_tx(tmpctx, |
|
|
tx = commit_tx(tmpctx, |
|
|
&funding_txid, funding_output_index, |
|
|
&funding_txid, funding_output_index, |
|
|
funding_amount, wscript, |
|
|
funding_amount, |
|
|
|
|
|
&local_funding_pubkey, |
|
|
|
|
|
&remote_funding_pubkey, |
|
|
LOCAL, to_self_delay, |
|
|
LOCAL, to_self_delay, |
|
|
&keyset, |
|
|
&keyset, |
|
|
feerate_per_kw, |
|
|
feerate_per_kw, |
|
@ -758,7 +760,9 @@ int main(int argc, const char *argv[]) |
|
|
print_superverbose = false; |
|
|
print_superverbose = false; |
|
|
tx2 = commit_tx(tmpctx, |
|
|
tx2 = commit_tx(tmpctx, |
|
|
&funding_txid, funding_output_index, |
|
|
&funding_txid, funding_output_index, |
|
|
funding_amount, wscript, |
|
|
funding_amount, |
|
|
|
|
|
&local_funding_pubkey, |
|
|
|
|
|
&remote_funding_pubkey, |
|
|
REMOTE, to_self_delay, |
|
|
REMOTE, to_self_delay, |
|
|
&keyset, |
|
|
&keyset, |
|
|
feerate_per_kw, |
|
|
feerate_per_kw, |
|
@ -803,7 +807,9 @@ int main(int argc, const char *argv[]) |
|
|
print_superverbose = true; |
|
|
print_superverbose = true; |
|
|
tx = commit_tx(tmpctx, |
|
|
tx = commit_tx(tmpctx, |
|
|
&funding_txid, funding_output_index, |
|
|
&funding_txid, funding_output_index, |
|
|
funding_amount, wscript, |
|
|
funding_amount, |
|
|
|
|
|
&local_funding_pubkey, |
|
|
|
|
|
&remote_funding_pubkey, |
|
|
LOCAL, to_self_delay, |
|
|
LOCAL, to_self_delay, |
|
|
&keyset, |
|
|
&keyset, |
|
|
feerate_per_kw, |
|
|
feerate_per_kw, |
|
@ -815,7 +821,9 @@ int main(int argc, const char *argv[]) |
|
|
print_superverbose = false; |
|
|
print_superverbose = false; |
|
|
tx2 = commit_tx(tmpctx, |
|
|
tx2 = commit_tx(tmpctx, |
|
|
&funding_txid, funding_output_index, |
|
|
&funding_txid, funding_output_index, |
|
|
funding_amount, wscript, |
|
|
funding_amount, |
|
|
|
|
|
&local_funding_pubkey, |
|
|
|
|
|
&remote_funding_pubkey, |
|
|
REMOTE, to_self_delay, |
|
|
REMOTE, to_self_delay, |
|
|
&keyset, |
|
|
&keyset, |
|
|
feerate_per_kw, |
|
|
feerate_per_kw, |
|
@ -848,7 +856,9 @@ int main(int argc, const char *argv[]) |
|
|
print_superverbose = false; |
|
|
print_superverbose = false; |
|
|
newtx = commit_tx(tmpctx, |
|
|
newtx = commit_tx(tmpctx, |
|
|
&funding_txid, funding_output_index, |
|
|
&funding_txid, funding_output_index, |
|
|
funding_amount, wscript, |
|
|
funding_amount, |
|
|
|
|
|
&local_funding_pubkey, |
|
|
|
|
|
&remote_funding_pubkey, |
|
|
LOCAL, to_self_delay, |
|
|
LOCAL, to_self_delay, |
|
|
&keyset, |
|
|
&keyset, |
|
|
feerate_per_kw, |
|
|
feerate_per_kw, |
|
@ -861,7 +871,9 @@ int main(int argc, const char *argv[]) |
|
|
/* This is what it would look like for peer generating it! */ |
|
|
/* This is what it would look like for peer generating it! */ |
|
|
tx2 = commit_tx(tmpctx, |
|
|
tx2 = commit_tx(tmpctx, |
|
|
&funding_txid, funding_output_index, |
|
|
&funding_txid, funding_output_index, |
|
|
funding_amount, wscript, |
|
|
funding_amount, |
|
|
|
|
|
&local_funding_pubkey, |
|
|
|
|
|
&remote_funding_pubkey, |
|
|
REMOTE, to_self_delay, |
|
|
REMOTE, to_self_delay, |
|
|
&keyset, |
|
|
&keyset, |
|
|
feerate_per_kw, |
|
|
feerate_per_kw, |
|
@ -893,7 +905,9 @@ int main(int argc, const char *argv[]) |
|
|
print_superverbose = true; |
|
|
print_superverbose = true; |
|
|
tx = commit_tx(tmpctx, |
|
|
tx = commit_tx(tmpctx, |
|
|
&funding_txid, funding_output_index, |
|
|
&funding_txid, funding_output_index, |
|
|
funding_amount, wscript, |
|
|
funding_amount, |
|
|
|
|
|
&local_funding_pubkey, |
|
|
|
|
|
&remote_funding_pubkey, |
|
|
LOCAL, to_self_delay, |
|
|
LOCAL, to_self_delay, |
|
|
&keyset, |
|
|
&keyset, |
|
|
feerate_per_kw-1, |
|
|
feerate_per_kw-1, |
|
@ -931,7 +945,9 @@ int main(int argc, const char *argv[]) |
|
|
print_superverbose = true; |
|
|
print_superverbose = true; |
|
|
newtx = commit_tx(tmpctx, |
|
|
newtx = commit_tx(tmpctx, |
|
|
&funding_txid, funding_output_index, |
|
|
&funding_txid, funding_output_index, |
|
|
funding_amount, wscript, |
|
|
funding_amount, |
|
|
|
|
|
&local_funding_pubkey, |
|
|
|
|
|
&remote_funding_pubkey, |
|
|
LOCAL, to_self_delay, |
|
|
LOCAL, to_self_delay, |
|
|
&keyset, |
|
|
&keyset, |
|
|
feerate_per_kw, |
|
|
feerate_per_kw, |
|
@ -992,7 +1008,9 @@ int main(int argc, const char *argv[]) |
|
|
to_local.millisatoshis, to_remote.millisatoshis, feerate_per_kw); |
|
|
to_local.millisatoshis, to_remote.millisatoshis, feerate_per_kw); |
|
|
tx = commit_tx(tmpctx, |
|
|
tx = commit_tx(tmpctx, |
|
|
&funding_txid, funding_output_index, |
|
|
&funding_txid, funding_output_index, |
|
|
funding_amount, wscript, |
|
|
funding_amount, |
|
|
|
|
|
&local_funding_pubkey, |
|
|
|
|
|
&remote_funding_pubkey, |
|
|
LOCAL, to_self_delay, |
|
|
LOCAL, to_self_delay, |
|
|
&keyset, |
|
|
&keyset, |
|
|
feerate_per_kw, |
|
|
feerate_per_kw, |
|
|