|
|
|
@ -3,6 +3,7 @@
|
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
|
|
#include <chain.h>
|
|
|
|
|
#include <clientversion.h>
|
|
|
|
|
#include <core_io.h>
|
|
|
|
|
#include <interfaces/chain.h>
|
|
|
|
|
#include <key_io.h>
|
|
|
|
@ -783,7 +784,7 @@ RPCHelpMan dumpwallet()
|
|
|
|
|
std::sort(vKeyBirth.begin(), vKeyBirth.end());
|
|
|
|
|
|
|
|
|
|
// produce output
|
|
|
|
|
file << strprintf("# Wallet dump created by Bitcoin %s\n", CLIENT_BUILD);
|
|
|
|
|
file << strprintf("# Wallet dump created by Bitcoin %s\n", FormatFullVersion());
|
|
|
|
|
file << strprintf("# * Created on %s\n", FormatISO8601DateTime(GetTime()));
|
|
|
|
|
file << strprintf("# * Best block at time of backup was %i (%s),\n", wallet.GetLastBlockHeight(), wallet.GetLastBlockHash().ToString());
|
|
|
|
|
file << strprintf("# mined on %s\n", FormatISO8601DateTime(block_time));
|
|
|
|
|