#include "key.h"
#include "keystore.h"
#include "script.h"
-#include "ui_interface.h"
+#include "interface.h"
#include "util.h"
#include "walletdb.h"
#include "base58.h"
// the maximum wallet format version: memory-only variable that specifies to what version this wallet may be upgraded
int nWalletMaxVersion;
+ int64_t nNextResend;
+ int64_t nLastResend;
+
// stake mining statistics
uint64_t nKernelsTried;
uint64_t nCoinDaysTried;
nMasterKeyMaxID = 0;
pwalletdbEncryption = NULL;
pwalletdbDecryption = NULL;
+ nNextResend = 0;
+ nLastResend = 0;
nOrderPosNext = 0;
nKernelsTried = 0;
nCoinDaysTried = 0;
bool DecryptWallet(const SecureString& strWalletPassphrase);
void GetAddresses(std::map<CBitcoinAddress, int64_t> &mapAddresses) const;
- bool GetPEM(const CKeyID &keyID, const std::string &fileName, const SecureString &strPassPhrase) const;
/** Increment the next transaction order id
int ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate = false);
int ScanForWalletTransaction(const uint256& hashTx);
void ReacceptWalletTransactions();
- void ResendWalletTransactions(bool fForceResend=false);
+ void ResendWalletTransactions(int64_t nBestBlockTime);
+ std::vector<uint256> ResendWalletTransactionsBefore(int64_t nTime);
int64_t GetBalance() const;
int64_t GetWatchOnlyBalance() const;
int64_t GetUnconfirmedBalance() const;
bool AcceptWalletTransaction(CTxDB& txdb, bool fCheckInputs=true);
bool AcceptWalletTransaction();
- void RelayWalletTransaction(CTxDB& txdb);
- void RelayWalletTransaction();
+ bool RelayWalletTransaction(CTxDB& txdb);
+ bool RelayWalletTransaction();
};