mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 08:44:02 +02:00
wallet: Remove isminetype
Since the only remaining isminetypes are ISMINE_NO and ISMINE_SPENDABLE, this enum is now just a bool and can be removed. IsMine is changed to return a bool and any usage of isminetypes and isminefilters are changed to be the remaining ISMINE_SPENDABLE case.
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#include <wallet/context.h>
|
||||
#include <wallet/db.h>
|
||||
#include <wallet/test/util.h>
|
||||
#include <wallet/types.h>
|
||||
#include <wallet/wallet.h>
|
||||
#include <wallet/walletutil.h>
|
||||
|
||||
@@ -58,8 +57,8 @@ static void WalletIsMine(benchmark::Bench& bench, int num_combo = 0)
|
||||
|
||||
bench.run([&] {
|
||||
LOCK(wallet->cs_wallet);
|
||||
isminetype mine = wallet->IsMine(script);
|
||||
assert(mine == ISMINE_NO);
|
||||
bool mine = wallet->IsMine(script);
|
||||
assert(!mine);
|
||||
});
|
||||
|
||||
TestUnloadWallet(std::move(wallet));
|
||||
|
||||
Reference in New Issue
Block a user