Post
Topic
Board Announcements (Altcoins)
Re: [UNO] Unobtanium Info & Discussion - Miners Update to 0.1.0
by
mmpool
on 11/05/2015, 04:01:39 UTC
Is the merge mining code working?

Ok, successfully merge mined a block: https://chainz.cryptoid.info/uno/block.dws?601321.htm

It required this code change:

Code:
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 20aadfd..52fb24d 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -721,8 +721,13 @@ Value getauxblock(const Array& params, bool fHelp)
         uint256 hashTarget = uint256().SetCompact(pblock->nBits);
 
         Object result;
+#if 0
         result.push_back(Pair("target", hashTarget.GetHex()));
         result.push_back(Pair("hash", HexStr(BEGIN(hashTarget), END(hashTarget))));
+#endif
+        result.push_back(Pair("target", HexStr(BEGIN(hashTarget), END(hashTarget))));
+        result.push_back(Pair("hash", pblock->GetHash().GetHex()));
+
         result.push_back(Pair("chainid", pblock->GetChainID()));
         return result;
     }

I'll integrate the coin into the mmpool after some more testing.