Skip to content

Commit caaf972

Browse files
committed
[wallet] Create wallet init interface.
1 parent 5fb5421 commit caaf972

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

src/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ BITCOIN_CORE_H = \
161161
validation.h \
162162
validationinterface.h \
163163
versionbits.h \
164+
walletinitinterface.h \
164165
wallet/coincontrol.h \
165166
wallet/crypter.h \
166167
wallet/db.h \

src/walletinitinterface.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Copyright (c) 2017 The Bitcoin Core developers
2+
// Distributed under the MIT software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
5+
#ifndef WALLETINITINTERFACE_H
6+
#define WALLETINITINTERFACE_H
7+
8+
#include <string>
9+
10+
class CScheduler;
11+
class CRPCTable;
12+
13+
class WalletInitInterface {
14+
public:
15+
/** Get wallet help string */
16+
virtual std::string GetHelpString(bool showDebug) = 0;
17+
/** Check wallet parameter interaction */
18+
virtual bool ParameterInteraction() = 0;
19+
/** Register wallet RPC*/
20+
virtual void RegisterRPC(CRPCTable &) = 0;
21+
/** Verify wallets */
22+
virtual bool Verify() = 0;
23+
/** Open wallets*/
24+
virtual bool Open() = 0;
25+
/** Start wallets*/
26+
virtual void Start(CScheduler& scheduler) = 0;
27+
/** Flush Wallets*/
28+
virtual void Flush() = 0;
29+
/** Stop Wallets*/
30+
virtual void Stop() = 0;
31+
/** Close wallets */
32+
virtual void Close() = 0;
33+
34+
virtual ~WalletInitInterface() {}
35+
};
36+
37+
#endif // WALLETINITINTERFACE_H

0 commit comments

Comments
 (0)