I’m trying to write a miner proxy(that is more or less like a private pool for diffrent workers to mine into one wallet), and I got stuck on block submission part.
I read the code of CBlock class in Primecoin-QT, made some test so the primecoind can decode my input, and execute the cmd below:
But the primecoind rejected my submission, so I guess there is some problem in my submitted hex data? Can anyone help me?
To be clear, the submitted hex data is in the form below:
version:02000000
prev block hash:867f77a9d29f6b517f9cdadb6c27cac2ad8ff2eabdc96072434ab84be4fa8b32
merklet root:18fcb3aa141565e2f003a90ebd015bf69268e287eec50dd5c9a4cd83bab79880
multiplier len:0e
multiplier:831d527cf8d2090a1900000758a36efcaac66b
tx count:00
Pools/proxies and external miners need to prepare block in accordance to primecoin protocol. There is a CBigNum field in block header called bnPrimeChainMultiplier, which is the proof-of-work for primecoin blocks. See CBlockHeader in main.h.
Both jh00 and mtrlt have implementations to submit blocks properly. mtrlt told me that submission via getblocktemplate works fine without patch to primecoind. If you cannot get it to work maybe check with them for references.
Thanks Sunny, I went through the CBlock class source to find my submission lacks of coinbase tx. Still thanks a lot for your suggestion.
[quote=“Sunny King, post:6, topic:328”]Pools/proxies and external miners need to prepare block in accordance to primecoin protocol. There is a CBigNum field in block header called bnPrimeChainMultiplier, which is the proof-of-work for primecoin blocks. See CBlockHeader in main.h.
Both jh00 and mtrlt have implementations to submit blocks properly. mtrlt told me that submission via getblocktemplate works fine without patch to primecoind. If you cannot get it to work maybe check with them for references.[/quote]
I´m really looking forward to your solution to mine in one wallet with several machines on the same Network. If you need some testing, please feel free to contact me.
it is still under development(very early stage), and I’ve got little spare time so it will take a long time before I finish it—I guess you have to wait if you really need it
[quote=“MUTO, post:10, topic:328”]I don’t really need it, I just whould appreciate it since i whould have less work with management of my machines then.
If you have something working and need some testing I whould love to test it and give you some Feedback.[/quote]