New Version Description
The 1.1.2 version of Photon currently can works on Windows, Linux ,Android, iOS etc, which enhances some new features and implement the optimization of previous version. Firstly, the new version optimizes the contract structure, support SMT mortgage in contract and transfer off-chain; Secondly , photon 1.1.2 use mDNS to discover nodes and communicate in local area network; Thirdly, new version realizes the integration of designated routing charge functions,which realizes stable offchain charging associated with PFS.Finally, more perfect error handling and error Information description were added to provide convenience for cross-language interaction.
Besides, there are some new optimizations and bug fix.
Optimization:
1 The interface result is changed from polling to synchronization, and the APP can actively adjust the page layout according to the channel state.
2 The transaction information persistence of contract call was designed to ensure that photon can asynchronously notify the APP in the scenario of contract call execution failure, to ensure that pending transaction can be correctly processed after crash restart, and correctly feed the transaction result to the upper application.
3 Solve the problem of repeated processing of events on the chain, and repair the inconsistency of the channel state (between the two participants) that may occur after multiple deposit and withdrawal and node crash.
4 The crash recovery scenario of contract invoke was constructed to ensure the safety of on-chain transactions.
5 The node message is upgraded to support the fast failure of the abnormal transaction and improve the user experience of the off-chain payment.
6 The the revenue query of the intermediate node is completed to improve the user benefit experience.
7.Add the channel state of StatePartnerWithdrawing and StatePartnerCooperativeSettling to exactly display the channel conditions
BUG fix:
1.Fix the bug of processing the channel events (in older channel which have been closed) on the new channel after crash recovery.
2. Fix the bug that caused the photon to crash instead of normal exit using the wrong RegisterAddress
3. Fix the bug that mobile phone could not subscribe to photon notification when starting with no network.
4. Fix the bug of memory leaks when removing locks in a channel
5. Fixed the bug that DirectTransfer could not send to other party when both sides held the locks in the channel