Date: 2024-01-09
Accepted
See here for more details.
We want to be able to create a rent contract on node even if it is in standby phase. Moreover, user should be billed for this contract only during online periods.
In pallet-smart-contract
:
-
Remove the
node_power.is_down()
restriction when trying to create a rent contract increate_rent_contract()
extrinsic. restriction -
Modify rent contract billing logic by allowing billing only if the node is online (
PowerState
=Up
). To skip the billing during the standby period we update the contract lock when the node power state is switched toUp
.