aboutsummaryrefslogtreecommitdiff
path: root/src/script/sigcache.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-11-13 17:51:22 +0100
committerWladimir J. van der Laan <[email protected]>2014-11-13 17:51:57 +0100
commit6c5c06eff79550b1fa387fd2902f306172abad33 (patch)
treec7948cc31213da42c23c74382f799e6690a5838f /src/script/sigcache.cpp
parentMerge pull request #5203 (diff)
parentMake comments in /src/script doxygen compatible (diff)
downloaddiscoin-6c5c06eff79550b1fa387fd2902f306172abad33.tar.xz
discoin-6c5c06eff79550b1fa387fd2902f306172abad33.zip
Merge pull request #5252
b9a36b1 Make comments in /src/script doxygen compatible (Michael Ford)
Diffstat (limited to 'src/script/sigcache.cpp')
-rw-r--r--src/script/sigcache.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/script/sigcache.cpp b/src/script/sigcache.cpp
index d76a5acd6..5580a5933 100644
--- a/src/script/sigcache.cpp
+++ b/src/script/sigcache.cpp
@@ -15,13 +15,15 @@
namespace {
-// Valid signature cache, to avoid doing expensive ECDSA signature checking
-// twice for every transaction (once when accepted into memory pool, and
-// again when accepted into the block chain)
+/**
+ * Valid signature cache, to avoid doing expensive ECDSA signature checking
+ * twice for every transaction (once when accepted into memory pool, and
+ * again when accepted into the block chain)
+ */
class CSignatureCache
{
private:
- // sigdata_type is (signature hash, signature, public key):
+ //! sigdata_type is (signature hash, signature, public key):
typedef boost::tuple<uint256, std::vector<unsigned char>, CPubKey> sigdata_type;
std::set< sigdata_type> setValid;
boost::shared_mutex cs_sigcache;