From 2680e6d9ff1788f6bf4c90c5263c101ea7295a43 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 2 Mar 2018 14:56:39 +0100 Subject: [PATCH] wallet: Move txfilter into wallet Transaction filters are strongly related to the wallet, this move just makes it a bit more explicit. Signed-off-by: Christian Decker --- lightningd/Makefile | 1 - lightningd/lightningd.h | 2 +- wallet/Makefile | 1 + {lightningd => wallet}/txfilter.c | 0 {lightningd => wallet}/txfilter.h | 0 5 files changed, 2 insertions(+), 2 deletions(-) rename {lightningd => wallet}/txfilter.c (100%) rename {lightningd => wallet}/txfilter.h (100%) diff --git a/lightningd/Makefile b/lightningd/Makefile index 3ebb582d9..4780730c6 100644 --- a/lightningd/Makefile +++ b/lightningd/Makefile @@ -73,7 +73,6 @@ LIGHTNINGD_SRC := \ lightningd/peer_control.c \ lightningd/peer_htlcs.c \ lightningd/subd.c \ - lightningd/txfilter.c \ lightningd/watch.c # Source files without corresponding headers diff --git a/lightningd/lightningd.h b/lightningd/lightningd.h index 9b6b6fa52..f738920b0 100644 --- a/lightningd/lightningd.h +++ b/lightningd/lightningd.h @@ -7,8 +7,8 @@ #include #include #include -#include #include +#include #include /* BOLT #1: diff --git a/wallet/Makefile b/wallet/Makefile index 66468e7e1..a12988e31 100644 --- a/wallet/Makefile +++ b/wallet/Makefile @@ -7,6 +7,7 @@ wallet-wrongdir: WALLET_LIB_SRC := \ wallet/db.c \ wallet/invoices.c \ + wallet/txfilter.c \ wallet/wallet.c \ wallet/walletrpc.c diff --git a/lightningd/txfilter.c b/wallet/txfilter.c similarity index 100% rename from lightningd/txfilter.c rename to wallet/txfilter.c diff --git a/lightningd/txfilter.h b/wallet/txfilter.h similarity index 100% rename from lightningd/txfilter.h rename to wallet/txfilter.h