threefoldtech / tfchain

Threefold Chain.
Apache License 2.0
15 stars 11 forks source link

What will happen to a rent contract on a grace period for an offline node #979

Open A-Harby opened 1 month ago

A-Harby commented 1 month ago

What is your question?

What will happen to a rent contract on a grace period for an offline node?

What have you tried so far?

Tried deleting but couldn't, Error from TS client: FarmHasNotEnoughPublicIPsFree: Failed to apply {"args":{"calls":[{"args":{"contract_id":"119,696"},"method":"cancelContract","section":"smartContractModule"}]},"method":"batchAll","section":"utility"}

14,976,851,872,796,664 the grace period amount on the chain.

contract was created yesterday, 6/5/2024, 3:28:18 PM here https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftfchain.dev.grid.tf%2Fws#/explorer/query/0xad6a6762b837ab9aef06acbf729462fe708de7c9e5864b01398188251c5bd52a

Screenshots

Error from polka image

renauter commented 4 weeks ago

From polka side: The error suggest you don't have fund enough to make the call to cancelContract(): https://polkadot.js.org/docs/substrate/errors/#expendability Since you are in grace period I assume it is the case (?)

From TS client side; This is weird because FarmHasNotEnoughPublicIPsFree error can only be triggered when you want to reserve an IP when creating a node contract so I don't see how it comes here...