diff options
| author | Pieter Wuille <[email protected]> | 2012-03-22 03:56:31 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-03-22 23:47:29 +0100 |
| commit | 439e1497e130914c2b78eff20c38046d6b1b6d49 (patch) | |
| tree | 20eef7dba2044093e6a92fdce3f5a62c16f62840 /src/bitcoinrpc.cpp | |
| parent | Merge pull request #946 from luke-jr/bugfix_rm_mingw (diff) | |
| download | discoin-439e1497e130914c2b78eff20c38046d6b1b6d49.tar.xz discoin-439e1497e130914c2b78eff20c38046d6b1b6d49.zip | |
Introduce explicit -walletupgrade option
Do not automatically change the wallet format unless the user takes an
explicit action that implies an upgrade (encrypting, for now), or uses
-walletupgrade.
-walletupgrade optionally takes an integer argument: the client version
up to which upgrading is allowed. Without an argument, it is upgraded
to latest supported version. If an argument to -walletupgrade is
provided at the time the wallet is created, the new wallet will initially
not use features beyond that version.
Third, the current wallet version number is reported in getinfo.
Diffstat (limited to 'src/bitcoinrpc.cpp')
| -rw-r--r-- | src/bitcoinrpc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 874d19f69..d8b9782e3 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -336,6 +336,7 @@ Value getinfo(const Array& params, bool fHelp) Object obj; obj.push_back(Pair("version", (int)CLIENT_VERSION)); obj.push_back(Pair("protocolversion",(int)PROTOCOL_VERSION)); + obj.push_back(Pair("walletversion", pwalletMain->GetVersion())); obj.push_back(Pair("balance", ValueFromAmount(pwalletMain->GetBalance()))); obj.push_back(Pair("blocks", (int)nBestHeight)); obj.push_back(Pair("connections", (int)vNodes.size())); |