Skip to content

Commit

Permalink
feat: allow 'hdd only' nodes to register on chain
Browse files Browse the repository at this point in the history
  • Loading branch information
renauter committed May 22, 2024
1 parent 62df060 commit fb7a5d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions clients/tfchain-client-go/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ var tfgridModuleErrors = []string{
"InvalidInterfaceIP",
"InvalidZosVersion",
"FarmingPolicyExpired",
"InvalidHRUInput",
"InvalidSRUInput",
"InvalidStorageInput",
"InvalidCRUInput",
"InvalidMRUInput",
"LatitudeInputTooShort",
Expand Down
3 changes: 1 addition & 2 deletions substrate-node/pallets/pallet-tfgrid/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,7 @@ pub mod pallet {
InvalidZosVersion,
FarmingPolicyExpired,

InvalidHRUInput,
InvalidSRUInput,
InvalidStorageInput,
InvalidCRUInput,
InvalidMRUInput,

Expand Down
3 changes: 1 addition & 2 deletions substrate-node/pallets/pallet-tfgrid/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ impl<T: Config> Pallet<T> {
fn get_resources(
resources: pallet::ResourcesInput,
) -> Result<Resources, DispatchErrorWithPostInfo> {
ensure!(resources.validate_hru(), Error::<T>::InvalidHRUInput);
ensure!(resources.validate_sru(), Error::<T>::InvalidSRUInput);
ensure!(resources.validate_storage(), Error::<T>::InvalidStorageInput);
ensure!(resources.validate_cru(), Error::<T>::InvalidCRUInput);
ensure!(resources.validate_mru(), Error::<T>::InvalidMRUInput);

Expand Down

0 comments on commit fb7a5d2

Please sign in to comment.