mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-22 15:24:21 +01:00
Split into two anchors.
This is a major change; instead of creating a mutual anchor (funding) transaction, each side creates its own. We use escape transactions in case anything goes wrong; these will be revoked later. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
#include <ccan/str/hex/hex.h>
|
||||
#include <ccan/err/err.h>
|
||||
#include "lightning.pb-c.h"
|
||||
#include "anchor.h"
|
||||
#include "bitcoin/base58.h"
|
||||
#include "pkt.h"
|
||||
#include "bitcoin/script.h"
|
||||
@@ -33,7 +32,7 @@ int main(int argc, char *argv[])
|
||||
opt_usage_exit_fail("Expected one argument");
|
||||
|
||||
o = pkt_from_file(argv[1], PKT__PKT_OPEN)->open;
|
||||
printf("%u\n", o->anchor->min_confirms);
|
||||
printf("%u\n", o->min_confirms);
|
||||
|
||||
tal_free(ctx);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user