Upgrading Corda Flow causes error on next run: TransactionVerificationException$ContractConstraintRejectionCorda: exceptions when running junit tests in IDEDo we really need a notary that validates?Guidance on upgrading of contract codes in CordaCommercialPaper Tutorial, creating a flow to issue,move and redeem a currencyError replacing network map and notary on cordaMultiple states in same contract is failing at verifyErrors with new contractsHow to restrict observer node from doing any transactionStates pointing to the new contract version still tries to deserialise old contract?How to check what contract is running for a transaction in the flow?

How dangerous is XSS

If a warlock makes a Dancing Sword their pact weapon, is there a way to prevent it from disappearing if it's farther away for more than a minute?

In the UK, is it possible to get a referendum by a court decision?

What is the most common color to indicate the input-field is disabled?

Is this draw by repetition?

Placement of More Information/Help Icon button for Radio Buttons

Can compressed videos be decoded back to their uncompresed original format?

How to install cross-compiler on Ubuntu 18.04?

How many wives did king shaul have

Unlock My Phone! February 2018

How to Prove P(a) → ∀x(P(x) ∨ ¬(x = a)) using Natural Deduction

Am I breaking OOP practice with this architecture?

How to travel to Japan while expressing milk?

How to stretch the corners of this image so that it looks like a perfect rectangle?

Is it possible to map the firing of neurons in the human brain so as to stimulate artificial memories in someone else?

What exactly is ineptocracy?

What historical events would have to change in order to make 19th century "steampunk" technology possible?

How badly should I try to prevent a user from XSSing themselves?

What do you call someone who asks many questions?

How to remove border from elements in the last row?

my venezuela girlfriend wants to travel the USA where i live.what does she need to do and how expensive will it become or how difficult?

How could indestructible materials be used in power generation?

Was the Stack Exchange "Happy April Fools" page fitting with the '90's code?

Do Iron Man suits sport waste management systems?



Upgrading Corda Flow causes error on next run: TransactionVerificationException$ContractConstraintRejection


Corda: exceptions when running junit tests in IDEDo we really need a notary that validates?Guidance on upgrading of contract codes in CordaCommercialPaper Tutorial, creating a flow to issue,move and redeem a currencyError replacing network map and notary on cordaMultiple states in same contract is failing at verifyErrors with new contractsHow to restrict observer node from doing any transactionStates pointing to the new contract version still tries to deserialise old contract?How to check what contract is running for a transaction in the flow?













0















As mentioned in the docs on performing flow upgrades, all you need to do is basically shut down the node, replace JAR, and start the node back up. When I do this, when my upgraded flow is run the next time, I get the following error:



net.corda.core.contracts.TransactionVerificationException$ContractConstraintRejection: Contract constraints failed for com.company.project.contract.MyContract, transaction: ABCDEFG


And the flow does not complete as a result. What am I doing wrong?










share|improve this question


























    0















    As mentioned in the docs on performing flow upgrades, all you need to do is basically shut down the node, replace JAR, and start the node back up. When I do this, when my upgraded flow is run the next time, I get the following error:



    net.corda.core.contracts.TransactionVerificationException$ContractConstraintRejection: Contract constraints failed for com.company.project.contract.MyContract, transaction: ABCDEFG


    And the flow does not complete as a result. What am I doing wrong?










    share|improve this question
























      0












      0








      0








      As mentioned in the docs on performing flow upgrades, all you need to do is basically shut down the node, replace JAR, and start the node back up. When I do this, when my upgraded flow is run the next time, I get the following error:



      net.corda.core.contracts.TransactionVerificationException$ContractConstraintRejection: Contract constraints failed for com.company.project.contract.MyContract, transaction: ABCDEFG


      And the flow does not complete as a result. What am I doing wrong?










      share|improve this question














      As mentioned in the docs on performing flow upgrades, all you need to do is basically shut down the node, replace JAR, and start the node back up. When I do this, when my upgraded flow is run the next time, I get the following error:



      net.corda.core.contracts.TransactionVerificationException$ContractConstraintRejection: Contract constraints failed for com.company.project.contract.MyContract, transaction: ABCDEFG


      And the flow does not complete as a result. What am I doing wrong?







      corda






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 21:22









      Chad GrimaldiChad Grimaldi

      62




      62






















          1 Answer
          1






          active

          oldest

          votes


















          0














          As my experience it seem like Corda flow upgrade not update network parameter (state still belong to old hash, old contract). Then when replace with new contract it will be contract constraint.
          So I think you have 3 way to manage this



          1. For local network bootstrap, update network parameter before doing flow upgrade (I use network-bootstrap.jar for copy new contract to cordapp folder, then it will append new contract hash immediately)

          2. For Corda network, you must contact network operator for update new hash.

          3. Use SignatureConstraint of Corda4 (they claim that it's upgrade easier but I didn't try yet)

          Hope this help






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55052985%2fupgrading-corda-flow-causes-error-on-next-run-transactionverificationexception%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            As my experience it seem like Corda flow upgrade not update network parameter (state still belong to old hash, old contract). Then when replace with new contract it will be contract constraint.
            So I think you have 3 way to manage this



            1. For local network bootstrap, update network parameter before doing flow upgrade (I use network-bootstrap.jar for copy new contract to cordapp folder, then it will append new contract hash immediately)

            2. For Corda network, you must contact network operator for update new hash.

            3. Use SignatureConstraint of Corda4 (they claim that it's upgrade easier but I didn't try yet)

            Hope this help






            share|improve this answer



























              0














              As my experience it seem like Corda flow upgrade not update network parameter (state still belong to old hash, old contract). Then when replace with new contract it will be contract constraint.
              So I think you have 3 way to manage this



              1. For local network bootstrap, update network parameter before doing flow upgrade (I use network-bootstrap.jar for copy new contract to cordapp folder, then it will append new contract hash immediately)

              2. For Corda network, you must contact network operator for update new hash.

              3. Use SignatureConstraint of Corda4 (they claim that it's upgrade easier but I didn't try yet)

              Hope this help






              share|improve this answer

























                0












                0








                0







                As my experience it seem like Corda flow upgrade not update network parameter (state still belong to old hash, old contract). Then when replace with new contract it will be contract constraint.
                So I think you have 3 way to manage this



                1. For local network bootstrap, update network parameter before doing flow upgrade (I use network-bootstrap.jar for copy new contract to cordapp folder, then it will append new contract hash immediately)

                2. For Corda network, you must contact network operator for update new hash.

                3. Use SignatureConstraint of Corda4 (they claim that it's upgrade easier but I didn't try yet)

                Hope this help






                share|improve this answer













                As my experience it seem like Corda flow upgrade not update network parameter (state still belong to old hash, old contract). Then when replace with new contract it will be contract constraint.
                So I think you have 3 way to manage this



                1. For local network bootstrap, update network parameter before doing flow upgrade (I use network-bootstrap.jar for copy new contract to cordapp folder, then it will append new contract hash immediately)

                2. For Corda network, you must contact network operator for update new hash.

                3. Use SignatureConstraint of Corda4 (they claim that it's upgrade easier but I didn't try yet)

                Hope this help







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 11 at 7:00









                Satienpong YoteeSatienpong Yotee

                174




                174





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55052985%2fupgrading-corda-flow-causes-error-on-next-run-transactionverificationexception%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    1928 у кіно

                    Захаров Федір Захарович

                    Ель Греко