Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Allred
crown-core
Commits
926601fe
Commit
926601fe
authored
10 years ago
by
Wladimir J. van der Laan
Browse files
Options
Download
Plain Diff
Merge pull request #4681
54e658f2
Remove unused CKeyStoreIsMineVisitor (jtimon)
parents
f30b2ae7
453acf8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/script.cpp
+0
-12
src/script.cpp
with
0 additions
and
12 deletions
+0
-12
src/script.cpp
View file @
926601fe
...
...
@@ -1444,18 +1444,6 @@ unsigned int HaveKeys(const vector<valtype>& pubkeys, const CKeyStore& keystore)
return
nResult
;
}
class
CKeyStoreIsMineVisitor
:
public
boost
::
static_visitor
<
bool
>
{
private:
const
CKeyStore
*
keystore
;
public:
CKeyStoreIsMineVisitor
(
const
CKeyStore
*
keystoreIn
)
:
keystore
(
keystoreIn
)
{
}
bool
operator
()(
const
CNoDestination
&
dest
)
const
{
return
false
;
}
bool
operator
()(
const
CKeyID
&
keyID
)
const
{
return
keystore
->
HaveKey
(
keyID
);
}
bool
operator
()(
const
CScriptID
&
scriptID
)
const
{
return
keystore
->
HaveCScript
(
scriptID
);
}
};
isminetype
IsMine
(
const
CKeyStore
&
keystore
,
const
CTxDestination
&
dest
)
{
CScript
script
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help