From fbf485c9b2bf1d056bfea77345a15cf56a9cd786 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 4 Jun 2021 20:31:04 -0400 Subject: Allow tr() import only when Taproot is active To avoid issues around fund loss, only allow descriptor wallets to import tr() descriptors after taproot has activated. --- src/interfaces/chain.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/interfaces') diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index 3395741b1b..7cac435e96 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -277,6 +277,9 @@ public: //! to be prepared to handle this by ignoring notifications about unknown //! removed transactions and already added new transactions. virtual void requestMempoolTransactions(Notifications& notifications) = 0; + + //! Check if Taproot has activated + virtual bool isTaprootActive() const = 0; }; //! Interface to let node manage chain clients (wallets, or maybe tools for -- cgit v1.2.3