Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Copyright (c) 2017-2020 The Bitcoin developers | // Copyright (c) 2017-2020 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_WALLET_WALLETDB_H | #ifndef BITCOIN_WALLET_WALLETDB_H | ||||
#define BITCOIN_WALLET_WALLETDB_H | #define BITCOIN_WALLET_WALLETDB_H | ||||
#include <amount.h> | #include <amount.h> | ||||
#include <key.h> | #include <key.h> | ||||
#include <script/sign.h> | #include <script/sign.h> | ||||
#include <script/standard.h> // for CTxDestination | #include <script/standard.h> // for CTxDestination | ||||
#include <wallet/db.h> | #include <wallet/db.h> | ||||
#include <wallet/walletutil.h> | |||||
#include <cstdint> | #include <cstdint> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
/** | /** | ||||
* Overview of wallet database classes: | * Overview of wallet database classes: | ||||
* | * | ||||
▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | public: | ||||
bool WriteOrderPosNext(int64_t nOrderPosNext); | bool WriteOrderPosNext(int64_t nOrderPosNext); | ||||
bool ReadPool(int64_t nPool, CKeyPool &keypool); | bool ReadPool(int64_t nPool, CKeyPool &keypool); | ||||
bool WritePool(int64_t nPool, const CKeyPool &keypool); | bool WritePool(int64_t nPool, const CKeyPool &keypool); | ||||
bool ErasePool(int64_t nPool); | bool ErasePool(int64_t nPool); | ||||
bool WriteMinVersion(int nVersion); | bool WriteMinVersion(int nVersion); | ||||
bool WriteDescriptorKey(const uint256 &desc_id, const CPubKey &pubkey, | |||||
const CPrivKey &privkey); | |||||
bool WriteCryptedDescriptorKey(const uint256 &desc_id, | |||||
const CPubKey &pubkey, | |||||
const std::vector<uint8_t> &secret); | |||||
bool WriteDescriptor(const uint256 &desc_id, | |||||
const WalletDescriptor &descriptor); | |||||
/// Write destination data key,value tuple to database. | /// Write destination data key,value tuple to database. | ||||
bool WriteDestData(const CTxDestination &address, const std::string &key, | bool WriteDestData(const CTxDestination &address, const std::string &key, | ||||
const std::string &value); | const std::string &value); | ||||
/// Erase destination data tuple from wallet database. | /// Erase destination data tuple from wallet database. | ||||
bool EraseDestData(const CTxDestination &address, const std::string &key); | bool EraseDestData(const CTxDestination &address, const std::string &key); | ||||
bool WriteActiveScriptPubKeyMan(uint8_t type, const uint256 &id, | bool WriteActiveScriptPubKeyMan(uint8_t type, const uint256 &id, | ||||
bool internal); | bool internal); | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |