mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-10-17 05:41:34 +02:00
Stealth addresses
This commit is contained in:
+2
-1
@@ -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
@@ -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();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>760</width>
|
||||
<width>960</width>
|
||||
<height>380</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user