Transaction Validation

+2 votes
Hi everyone,

I' not sure if there is the correct place to ask about this, but I really need a bit of help.

Is possible if some could tell me where exactly in the multichain code (c++) the transactions are validated that they're correct , because I would to like to add a some few change if is possible,

Thanks in advance

Pd: if there is another place where I can ask about this please tell it to me! :)
asked Apr 18, 2017 by Ivaev

1 Answer

0 votes
 
Best answer

You can start by looking at the AcceptMultiChainTransaction() function.

answered Apr 18, 2017 by MultiChain
selected Apr 18, 2017 by Ivaev
Hi Again. that function was really usefull for me. I have another problem related with the validation. I found that The file what I look for was the MultichainScript which is used by the function  AcceptMultiChainTransaction() so I defined my own validation function and it works well with static definitions. The problem was when I trying to save some information like metadata in a vector. I figured out that the process happens more than once so I have duplicate information. My goal is trying to make a validation function like IsDirtyOpReturnScript() but checking some variable saved on the current mc_script. any help?
I think this is beyond the point at which we're able to help you, if you're working on modifying the source code. Sorry about that.
...