This is a bi-weekly update of all things concerning the protocol design and
reference implementation of State Channels.
We plan to keep the bi-weekly schedule for these reports. Feedback is always appreciated.
Dynamic transaction fee calculation
Implementation: PR #2588
The FSM used a hardcoded fee of
30 000 * local gas price (or
33 000) for all transactions. In certain cases this was insufficient and
transactions which should be ok were rejected. This was changes such that the
fee is computed dynamically for each transaction. The only exception is the
channel_mutual_close_tx transaction which requires a hard-coded fee.
Updated UML diagram
The UML diagram describing the core states of the SC FSM has been updated.
Previously it was part of the source file itself. It has been moved out into its
own file to ease maintenance. The resulting diagram can be viewed in the
wiki. The intention is to keep the UML diagram up-to-date with
changes to the source code and easily comprehensible.
Websocket client disconnect and reconnect
Clients can now disconnect from the FSM without the FSM shutting down
immediately. Instead a client may reconnect using the new off-chain
channel_client_reconnect_tx transaction. The tx contains the information
needed to locate the right FSM, including the client’s public key.
It must be signed by the client, proving that it possesses the private key
(or other signing capability) for the account.
Improved hard fork detection
Implementation: PR #2608
The detection logic was improved to detect whether a protocol version was active
Refactorings and general improvements
The FSM has grown quite large over the last year. Therefore, an ongoing effort
is to refactor parts of the code to make it easier to comprehend and
maintainable. Refactorings are meant to be done is small chunks to keep impact
low and feature development going.
Initial design of virtual state channels
Design: PR #382
An initial design of VSCs is in review, which is meant to act as a proposal for
further community discussion.