diff options
| author | Russell Yanofsky <[email protected]> | 2019-02-01 16:17:43 -0500 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2019-02-01 16:17:43 -0500 |
| commit | aebafd0edf81b546d4b7db9e7f53e9eef2c0073e (patch) | |
| tree | db27087c678e64697383ada2f269ed0bd82626b7 /src/wallet/wallet.cpp | |
| parent | Drop redundant get_value_or (diff) | |
| download | discoin-aebafd0edf81b546d4b7db9e7f53e9eef2c0073e.tar.xz discoin-aebafd0edf81b546d4b7db9e7f53e9eef2c0073e.zip | |
Rename Chain getLocator -> getTipLocator
Suggested https://github.com/bitcoin/bitcoin/pull/14711#discussion_r252044389
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 98e6f2f9b..bdddcd718 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4086,7 +4086,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain, } auto locked_chain = chain.assumeLocked(); // Temporary. Removed in upcoming lock cleanup - walletInstance->ChainStateFlushed(locked_chain->getLocator()); + walletInstance->ChainStateFlushed(locked_chain->getTipLocator()); } else if (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS) { // Make it impossible to disable private keys after creation InitError(strprintf(_("Error loading %s: Private keys can only be disabled during creation"), walletFile)); @@ -4233,7 +4233,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain, } } walletInstance->WalletLogPrintf("Rescan completed in %15dms\n", GetTimeMillis() - nStart); - walletInstance->ChainStateFlushed(locked_chain->getLocator()); + walletInstance->ChainStateFlushed(locked_chain->getTipLocator()); walletInstance->database->IncrementUpdateCounter(); // Restore wallet transaction metadata after -zapwallettxes=1 |