Pages:
Author

Topic: MergeCoin Help- Trying to merge mine, IXC, I0C,DVC, NMC (Read 2208 times)

hero member
Activity: 518
Merit: 500
Bitrated user: ahmedbodi.
hmm ill have a look, c++ is confusing im a vb.net programmer normally
legendary
Activity: 2940
Merit: 1090
Presumably by putting a definition or template or whatever into the correct place for the context, as it seems to be saying you are trying to use a routine you had not yet told it about or that you told it about outside the context maybe since maybe part of the purpose of contexts is to let it forget about stuff outside the context even if you had, outside the context, told it about them?

I don't actually know C++ beyond what can be deduced by looking at the code and what the compiler says in response to it (and of course what actually happens if it does compile and you run it), do you? If not maybe studying up on C++ contexts might provide clues.

-MarkM-
hero member
Activity: 518
Merit: 500
Bitrated user: ahmedbodi.
hero member
Activity: 518
Merit: 500
Bitrated user: ahmedbodi.
hero member
Activity: 518
Merit: 500
Bitrated user: ahmedbodi.
anyone have any ideas on how to fix this? http://pastebin.com/3wDUnfby
hero member
Activity: 518
Merit: 500
Bitrated user: ahmedbodi.
is there any way to check if a coin has had the merged mining patches applied? also ive tried to fork your repo base the coin i made off that, do you think it'll work?
legendary
Activity: 1078
Merit: 1005
Hmm I don't understand this either. Simply being a bitcoin clone, like Terracoin and Bytecoin, should mean you already can act as primary chain, shouldn't it? Since bitcoin can, that ability should be part of what was inherited from bitcoin?
Sure, but as I've said more than once already...If you're using the merge mine proxy you need these patches. But the reason I provided the commit is not for the millions of people using the merge mine proxy, it's because it ports a bunch of stuff that the secondary chain code uses and I had thought those interested in that would like using it as a base, or looking at it to see what changes are needed, to porting the other patches.
legendary
Activity: 2940
Merit: 1090
Okay but i don't have to patch bitcoin when I want to use it as a secondary chain, so presumably that part is already in bitcoin nowadays.
Assuming you meant 'primary' not 'secondary', you do if you want to use the 'merge mine proxy'. You don't if you use pool software that does internally what merge mine proxy does (eg. eloipool).

Yeah I meant when I, as a secondary chain, want to use bitcoin as primary.

I use p2pool to merged mine I guess that is why I don't need to patch bitcoin and can instead just use mainline bitcoin unaltered as primary?

-MarkM-
legendary
Activity: 2940
Merit: 1090
basically what im after is modifying the coin im working on to be able to merged mined, likely with something like p2pool with DVC, IXC, I0C, NMC as aux chains
If you cherry pick the commit I referenced to your coin and use the "merge mining proxy" that is included in the 'contrib' directory that is added by that commit then you can have your coin as a primary chain while mining DVC, etc as secondary chains. You won't be able to mine bitcoin though but from your posts I'm assuming you are fine with that.

Hmm I don't understand this either. Simply being a bitcoin clone, like Terracoin and Bytecoin, should mean you already can act as primary chain, shouldn't it? Since bitcoin can, that ability should be part of what was inherited from bitcoin?

-MarkM-
legendary
Activity: 1078
Merit: 1005
Okay but i don't have to patch bitcoin when I want to use it as a secondary chain, so presumably that part is already in bitcoin nowadays.
Assuming you meant 'primary' not 'secondary', you do if you want to use the 'merge mine proxy'. You don't if you use pool software that does internally what merge mine proxy does (eg. eloipool).
legendary
Activity: 2940
Merit: 1090
Okay I am not understanding what you mean then. By use bitcoin as a primary chain, you mean act as a secondary chain?
No, I mean as a primary chain using the merge mining proxy software. That software requires extra RPC commands to be patched to bitcoin. This patch ports those extra RPC commands. But those RPC commands also use a bunch of stuff that the secondary chain RPC commands use - so a lot of the porting work to get the secondary chain additional stuff working is also done in this patch.

Okay but i don't have to patch bitcoin when I want to use it as a secondary chain, so presumably that part is already in bitcoin nowadays.

I guess the big patch I was using tells the patch program to make changes it sees to be already in place so it jsut ignores them, no rejecting needed, just "already applied" and on it goes, or something.

it also contains th parts that ahve not yet been applied to mainline bitcoin, and those are the parts we need to apply to mainline bitcoin to make a 'bitcoin that can act as a secondary chain" to base all our merged coins' new versions on.

-MarkM-

legendary
Activity: 1078
Merit: 1005
yep thanks, that seems fine. By cherry pick is there anything in particular i should be applying?
From your coin repository, something like:

1. git remote add foo git://github.com/doublec/bitcoin
2. git fetch foo
3. git cherry-pick 7a6e135db4cdbf70c56546da8a5974152ef84e5a
4. Fix any conflicts

If you're stuck I could probably do it for a 50 BTC  bounty or so.
hero member
Activity: 518
Merit: 500
Bitrated user: ahmedbodi.
yep thanks, that seems fine. By cherry pick is there anything in particular i should be applying?
legendary
Activity: 1078
Merit: 1005
basically what im after is modifying the coin im working on to be able to merged mined, likely with something like p2pool with DVC, IXC, I0C, NMC as aux chains
If you cherry pick the commit I referenced to your coin and use the "merge mining proxy" that is included in the 'contrib' directory that is added by that commit then you can have your coin as a primary chain while mining DVC, etc as secondary chains. You won't be able to mine bitcoin though but from your posts I'm assuming you are fine with that.
legendary
Activity: 2940
Merit: 1090
basically what im after is modifying the coin im working on to be able to merged mined, likely with something like p2pool with DVC, IXC, I0C, NMC as aux chains

Well maybe find the merged mined coin that is most similar in code/version to the bitcoin version you based your coin on, do a diff between that coin and yours, remove all the parts of the diff that are the coin-specific things making one coin different from another, and what is left should be the parts of merged mining that your coin does not yet have.

-MarkM-
hero member
Activity: 518
Merit: 500
Bitrated user: ahmedbodi.
basically what im after is modifying the coin im working on to be able to merged mined, likely with something like p2pool with DVC, IXC, I0C, NMC as aux chains
legendary
Activity: 2940
Merit: 1090
right okay i think i understand. So basically i need to apply the aux chain patches to the coin im working on and then it should be able to be merged mined with dvc and ixc etc

I guess I don't know what each of these differently named patches are supposed to contain.

I had one huge patch that was the difference between bitcoin and a coin that could act as a secondary chain. It originally came from the namecoin dev, but that would maybe have contained a lot of namecoin-specific stuff not useful to other coins unless he himself did what I am proposing, of first adding to bitcoin the merged mining as a secondary chain stuff befroe doing stuff that is specific to a particular other coin such as namecoin. So likely what I used was what doublec had made after he stripped out all the namecoin-specific stuff (if present) to get down to the nitty gritty of just the merged mining without all the namecoin domains etc etc stuff that other coins don't need or want.

-MarkM-
legendary
Activity: 1078
Merit: 1005
Okay I am not understanding what you mean then. By use bitcoin as a primary chain, you mean act as a secondary chain?
No, I mean as a primary chain using the merge mining proxy software. That software requires extra RPC commands to be patched to bitcoin. This patch ports those extra RPC commands. But those RPC commands also use a bunch of stuff that the secondary chain RPC commands use - so a lot of the porting work to get the secondary chain additional stuff working is also done in this patch.
legendary
Activity: 2940
Merit: 1090
Its secondary chain we want.
That's why I wrote "Although it doesn't include the patches required for an auxilliary chain it should be fairly easy to add those as it'll just be the rpc functions that are needed.". That commit does all the hard work. It ports over the auxpow stuff, changes the things required in block creation,etc. You can do the rest if you want it.

Okay I am not understanding what you mean then. By use bitcoin as a primary chain, you mean act as a secondary chain?

Of course the identification of which aux you are is unique to each chain so is a separate thing like name icon etc, part of what each coin needs to change to be its own unique different (aux) chain.

-MarkM-
legendary
Activity: 1078
Merit: 1005
Yes but all coins derived from bitcoin already can act as primary chain, because bitcoin already can.
Well, yes and no. If they're using the 'merge mining proxy' they can't as that proxy requires patches to bitcoin. If they're using custom block generation pool software then that software would need to be changed to work with their coin.
Pages:
Jump to: