BlockPo / BlockPo-to-Tradelayer

Incubation Repo for the TradeLayer protocol, 0.2.0
http://www.tradelayer.org
Other
8 stars 8 forks source link

Adjust Channel Expiration #132

Closed patrickdugan closed 4 years ago

patrickdugan commented 4 years ago

Currently Trade Channels expire and are deleted from the registry/trades cease to be valid after ~24 hours worth of blocks. This is problematic because it requires wasted fees and time re-establishing trade channels. Instead, a TC should have an expiry of creation time + 144 blocks (BTC) or 580 blocks (LTC) where all unpublished trades become invalid, but every time a trade is printed (e.g. published to be confirmed into the blockchain and create a fee event) this timer resets to 144 blocks after this event.

Additionally the object data about channels should include this block height where it would expire and include the data in the RPC related to Trade Channels.

santos177 commented 4 years ago

Implemente yet inside tradelayer on litecoin.