aboutsummaryrefslogtreecommitdiff
path: root/src/script.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2014-06-24 14:17:43 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-06-26 10:36:57 +0200
commite10dcf27b4fb324a85b5650c7acd2ea5a52e822f (patch)
tree6725fc2d632622ef5fbdc7b480996adb9b9a5fba /src/script.cpp
parent343feecf562a39e7d898ece2fd745fcb9d4c90e9 (diff)
ensure clean and consistent "namespace" usage
- remove some missplaced ; - ensure end of a namespace is clearly visible - use same formatting when using namespace
Diffstat (limited to 'src/script.cpp')
-rw-r--r--src/script.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/script.cpp b/src/script.cpp
index c83d26885a..dfba4da46e 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -974,6 +974,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
namespace {
+
/** Wrapper that serializes like CTransaction, but with the modifications
* required for the signature hash done in-place
*/
@@ -1066,7 +1067,8 @@ public:
::Serialize(s, txTo.nLockTime, nType, nVersion);
}
};
-}
+
+} // anon namespace
uint256 SignatureHash(const CScript &scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType)
{
@@ -1092,7 +1094,6 @@ uint256 SignatureHash(const CScript &scriptCode, const CTransaction& txTo, unsig
return ss.GetHash();
}
-
// 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)