ark-network / ark

Ark is a layer-two protocol designed to scale Bitcoin transactions
https://arkdev.info
MIT License
53 stars 15 forks source link

Dynamic round lifetime #209

Open altafan opened 1 month ago

altafan commented 1 month ago

At the moment, the round lifetime is a configuration param of the asp, this a static parameter that can be updated only by restarting the asp.

We need admin RPCs to make it configurable so that it becomes a dynamic parameter.

This way, the round lifetime becomes a field of the Vtxo, therefore there's no need anymore to have this info stored by the SDK client.

The round lifetime must be removed from the GetInfoResponse message

tiero commented 1 month ago

I think GetInfo is fine to show the "current" lifetime to be used for NEXT rounds.

The thing is that the current may be different from the previous rounds, so that ListVtxos should always return the right one, as each VTXO may be different in terms of lifetimes and client need to know for refreshes.