Reputation: 13
I follow the steps on the QuickStart topic and try the cordapp-example. However, I has a question and this is my scenario.
After this point, if I start the cordapp-example network and access to PartyA and PartyB, I will see that PartyA has 2 IOU states but PartyB has only 1 IOU state. I am not sure what I need to do in order to sync the missing IOU state from the PartyA to PartyB.
Upvotes: 1
Views: 459
Reputation: 1
I have a similar scenario, during the flow's Broadcasting step, it waits indefinitely if the other Party is offline. Can we do this as an asynchronous process where the Broadcast can initiate sending the state/transaction and commit the transaction in current node. The other Party can receive the states as and when it comes online.
I have also posted it here - Corda: Synchronize multiple Nodes that represent same Party
Upvotes: 0
Reputation: 2062
So what is important to understand here is that there is no synchronisation feature as the states are kept in sync as the nodes transact during the flow process; what you have effectively done here is delete and amend your view of the world.
Corda isn't a public blockchain like bitcoin or ethereum; each actor's view of the ledger is subjective, so if you delete or lose your data, you won't be able to restore it from the other parties. If you think about this commercially, why would another actor have any incentive to give help you restore this data? Keeping your data safe is just one of the responsibilities you have when you are transacting in the commercial world.
I wrote a short blog piece about data husbandry here : https://www.corda.net/2017/05/corda-system-failures-data-needs-look-stuff-things-go-wrong/
Upvotes: 2