diff options
| author | Russell Yanofsky <[email protected]> | 2020-01-24 17:02:41 -0500 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2020-02-25 05:50:39 -0500 |
| commit | 3ce16ad2f91d1e2edc7e7bdc5a19f72aa8c3e739 (patch) | |
| tree | 147d4587a7dec7f33e11802ecdaf7c940339d147 /src/qt/walletmodel.cpp | |
| parent | Add ChainClient setMockTime, getWallets methods (diff) | |
| download | discoin-3ce16ad2f91d1e2edc7e7bdc5a19f72aa8c3e739.tar.xz discoin-3ce16ad2f91d1e2edc7e7bdc5a19f72aa8c3e739.zip | |
refactor: Use psbt forward declaration
Also clean up forward other forward declarations in interfaces/wallet.h with !sort
Original motivation for this change was to fix a circular dependencies lint
error: "interfaces/chain.h -> interfaces/wallet.h -> psbt -> node/transaction
-> node/context -> interfaces/chain.h" from an earlier commit in this PR adding
a "interfaces/chain.h -> interfaces/wallet.h" include. Now, the wallet include
is no longer added, but it is still good to clean up the psbt include for
efficiency, and to sort the forward declarations.
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 8a84a8c16..83796c384 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -20,6 +20,7 @@ #include <interfaces/handler.h> #include <interfaces/node.h> #include <key_io.h> +#include <psbt.h> #include <ui_interface.h> #include <util/system.h> // for GetBoolArg #include <wallet/coincontrol.h> |