Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to support Zcoin? #8

Open
saymissme opened this issue Feb 10, 2017 · 2 comments
Open

how to support Zcoin? #8

saymissme opened this issue Feb 10, 2017 · 2 comments

Comments

@saymissme
Copy link

saymissme commented Feb 10, 2017

i was try to setup a pool for XZC
i got this error in debug.log:

2017-02-10 01:59:52 ThreadRPCServer method=submitblock
2017-02-10 01:59:52 ERROR: CTransaction::CheckTransaction() : founders reward missing
2017-02-10 01:59:52 ERROR: CheckBlock() : CheckTransaction failed

how to fix it?
thx

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41891540-how-to-support-zcoin?utm_campaign=plugin&utm_content=tracker%2F8405108&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F8405108&utm_medium=issues&utm_source=github).
@Infernoman
Copy link
Member

You'll have to look into the method that yiimp uses.
https://github.com/tpruvot/yiimp/blob/next/stratum/coinbase.cpp#L150

@Infernoman
Copy link
Member

Infernoman commented Feb 10, 2017

if (rpcData.incentive) {
    var payeeReward = 0;
    var payee = "";
    if (rpcData.incentive.enforced) {
	if (rpcData.incentive.address) {
                payee = rpcData.incentive.address;
        } else {
	    
        }
	payeeReward = rpcData.incentive.amount;
	reward -= payeeReward;
        rewardToPool -= payeeReward;
	if (rpcData.incentive.enforced && payeeReward && payee.length)) {
		var payeeScript = util.addressToScript(payee);
            	txOutputBuffers.push(Buffer.concat([
                		util.packInt64LE(payeeReward),
                		util.varIntBuffer(payeeScript.length),
                		payeeScript
            	]));
	}
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants