Uploaded image for project: 'Corda'
  1. CORDA-2307

V3 node unable to process double-spend error message from V4 notary

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Highest
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Severity:
      Critical
    • Feature Team:
      Corda Core
    • Sprint:

      Description

      The performance test app in the ENT repo has a simple flow that does a double spend. We'll use that to reproduce the error.

      ENT repo

      git checkout release-V3.2
      ./gradlew perftestcordapp:jar
      

      OS repo

      1. Modify minimumPlatformVersion in net.corda.nodeapi.internal.network.NetworkBootstrapper#defaultNetworkParametersWith to 3
      2. ./gradlew samples:notary-demo:deployNodesSingle

      Notary:

      cd samples/notary-demo/build/nodes/nodesSingle/Notary\ Service
      cp <ENT repo>/perftestcordapp/build/libs/corda-ptflows-3.2.jar cordapps
      java -jar corda.jar
      

      Alice:

      cd samples/notary-demo/build/nodes/nodesSingle/Alice\ Corp
      curl -sSL https://ci-artifactory.corda.r3cev.com/artifactory/list/corda/net/corda/corda/3.3-corda/corda-3.3-corda.jar -o corda.jar
      cp <ENT repo>/perftestcordapp/build/libs/corda-ptflows-3.2.jar cordapps
      rm persistence.mv.db
      java -jar corda.jar
      start CashIssueAndDoublePayment amount: £100, issueRef: 123, payTo: "Alice Corp", anonymous: false, notary: "Notary Service"
      

      Expected result

      CashIssueAndDoublePayment returns successfully on receipt of the double-spend error.

      Actual result

      The flow hangs and the following error message is printed:

      [ERROR] 22:16:58+0000 [Node thread-1] statemachine.StateMachineManagerImpl.onSessionMessage - Received corrupt SessionMessage data from O=Notary Service, L=Zurich, C=CH {invocation_id=8718374f-ded9-4aef-9020-302febbd226b, invocation_timestamp=2018-12-07T22:16:45.776Z, session_id=8718374f-ded9-4aef-9020-302febbd226b, session_timestamp=2018-12-07T22:16:45.776Z}
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                shams.asari Shams Asari
                Reporter:
                shams.asari Shams Asari
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: