Changeset View
Changeset View
Standalone View
Standalone View
src/script/ismine.cpp
// 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 | ||||
// 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. | ||||
#include "ismine.h" | #include <script/ismine.h> | ||||
#include "key.h" | #include <key.h> | ||||
#include "keystore.h" | #include <keystore.h> | ||||
#include "script/script.h" | #include <script/script.h> | ||||
#include "script/sign.h" | #include <script/sign.h> | ||||
#include "script/standard.h" | #include <script/standard.h> | ||||
typedef std::vector<uint8_t> valtype; | typedef std::vector<uint8_t> valtype; | ||||
unsigned int HaveKeys(const std::vector<valtype> &pubkeys, | unsigned int HaveKeys(const std::vector<valtype> &pubkeys, | ||||
const CKeyStore &keystore) { | const CKeyStore &keystore) { | ||||
unsigned int nResult = 0; | unsigned int nResult = 0; | ||||
for (const valtype &pubkey : pubkeys) { | for (const valtype &pubkey : pubkeys) { | ||||
CKeyID keyID = CPubKey(pubkey).GetID(); | CKeyID keyID = CPubKey(pubkey).GetID(); | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |