"This is our Pub key to you if want it to setup payment for your pool: 03355abf1c3060f2fc96c1486d3ddbdaddb24ed1e6b057d4179cbc090134d090ab
Foundation address: SbcXQKB9wCZevLcugpKcweYkY9MHodWSkY"
sorry but (as a pool operator) i don't understand that....
A pool said that they need our pub key for setting up stratum, that's the reason why we post them. Normal stratum cannot run with SummerCoin wallet, need some modifies in order to get accepted block.
Basically, as opposed to an upfront premine, this coins has a set donation amount (20 coins of every found block) that needs to be donated to the FOUNDATION address provided in the wallet.
Without this modification, any found blocks by a pool will be rejected.
Therefore the stratum code needs to be modified to add this donation into the block transaction.
EMC2 uses this similarly with its Charity_Value, and so the code is easiest to adapt from that coin (AFAIK) as it is publically available, however the EMC2 codebase uses the Public Key as opposed to the Coin Address to add into the transaction (owing to the fact that the address is not in the wallet) - although I'm not too sure if that is an absolute requirement or not.
Thats correct, but there are more modifications necessary as this coin uses an other coin as base as emc2 did .. you'll find it when you look for FOUNDATION instead of CHARITY.
You can convert every (bitcoin-) address to pubkey also via the wallet (validateaddress function)
that don't sound easy..
![Sad](https://bitcointalk.org/Smileys/default/sad.gif)
will there be a source available for the stratum-mining software?
I'll be glad to release mine when everything goes well and I've cleaned up the source from the debug stuff, but it's not too hard to implement, i've started yesterday and got it finished this morning as there were more twirks than I thought, i've already released part of the source in my MaruCoin-Stratum as MaruCoin is also Auto-Donating (and is X13) so you can basically just "copy & paste" together MaruCoin Auto-Donation and xcoin hash and it'll do...
thanks for the help.
just a little problem over here:
when a launch the marucoin modified stratum, i got this error in the logs:
(i put the correct pubkey in the code)
2014-04-29 09:32:02,343 ERROR template_registry # [Failure instance: Traceback: <type 'exceptions.KeyError'>: 'charityvalue'
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1101:gotResult
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1088:_inlineCallbacks
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:368:callback
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:464:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:551:_runCallbacks
/home/summercoin/stratum-mining/lib/template_registry.py:141:_update_block
/home/summercoin/stratum-mining/lib/block_template.py:51:fill_from_rpc
the line in question is: coinbase = self.coinbase_transaction_class(self.timestamper, self.coinbaser, data['coinbasevalue'], data['charityvalue'], data['coinbaseaux']['flags'], data['height'], settings.COINBASE_EXTRAS)
it looks like it can't get charityvalue info from the summer rpc wallet... i understand this and i'm okay with it.
but what do we have to put instead of ['charityvalue'] to get thing goin'
![Huh](https://bitcointalk.org/Smileys/default/huh.gif)