Stealth addresses

This commit is contained in:
myriadcoin
2014-09-24 20:19:23 +02:00
parent 9fec5da034
commit 833e6fe3a3
3 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -542,6 +542,7 @@ bool IsStandardTx(const CTransaction& tx, string& reason)
{
if (!::IsStandard(txout.scriptPubKey, whichType))
{
LogPrintf("tx-nonstd: %s %s\n", txout.ToString(), whichType);
reason = "scriptpubkey";
return false;
}
@@ -558,7 +559,7 @@ bool IsStandardTx(const CTransaction& tx, string& reason)
}
}
// only one OP_RETURN txout is permitted
// allow one OP_RETURN per txout
if (nDataOut > nTxnOut)
{
reason = "multi-op-return";
+4 -4
View File
@@ -778,7 +778,7 @@ public:
}
int GetAlgo() const { return ::GetAlgo(nVersion); }
CDiskBlockPos GetBlockPos() const {
CDiskBlockPos ret;
if (nStatus & BLOCK_HAVE_DATA) {
@@ -829,7 +829,7 @@ public:
return (CBigNum(1)<<256) / (bnTarget+1);
}
int GetAlgoWorkFactor() const
int GetAlgoWorkFactor() const
{
if (!TestNet() && (nHeight < nBlockAlgoWorkWeightStart))
{
@@ -842,7 +842,7 @@ public:
switch (GetAlgo())
{
case ALGO_SHA256D:
return 1;
return 1;
// work factor = absolute work ratio * optimisation factor
case ALGO_SCRYPT:
return 1024 * 4;
@@ -863,7 +863,7 @@ public:
bnRes = GetBlockWork() * GetAlgoWorkFactor();
return bnRes;
}
bool CheckIndex() const
{
int algo = GetAlgo();
+1 -1
View File
@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>760</width>
<width>960</width>
<height>380</height>
</rect>
</property>