From 70cc9844aa47fbea920b7fc99f1afd0a842a59cb Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Thu, 16 Jan 2025 04:16:41 +0200 Subject: [PATCH] Change license of crates under `crates` and `shared` to 0BSD --- crates/pallet-domains/Cargo.toml | 2 +- crates/pallet-domains/src/lib.rs | 15 --------------- crates/pallet-rewards/Cargo.toml | 2 +- crates/pallet-rewards/src/lib.rs | 15 --------------- crates/pallet-runtime-configs/Cargo.toml | 2 +- crates/pallet-runtime-configs/src/lib.rs | 15 --------------- crates/pallet-subspace-mmr/Cargo.toml | 2 +- crates/pallet-subspace-mmr/src/lib.rs | 15 --------------- crates/pallet-subspace/Cargo.toml | 2 +- crates/pallet-subspace/README.md | 2 -- crates/pallet-subspace/src/lib.rs | 15 --------------- crates/pallet-subspace/src/mock.rs | 16 ---------------- crates/pallet-subspace/src/tests.rs | 16 ---------------- crates/pallet-transaction-fees/Cargo.toml | 2 +- crates/pallet-transaction-fees/README.md | 2 -- crates/pallet-transaction-fees/src/lib.rs | 15 --------------- crates/pallet-transaction-fees/src/weights.rs | 15 --------------- crates/sc-consensus-subspace-rpc/Cargo.toml | 2 +- crates/sc-consensus-subspace-rpc/README.md | 2 -- crates/sc-consensus-subspace-rpc/src/lib.rs | 17 ----------------- crates/sc-consensus-subspace/Cargo.toml | 2 +- crates/sc-consensus-subspace/src/archiver.rs | 16 ---------------- crates/sc-consensus-subspace/src/aux_schema.rs | 17 ----------------- .../sc-consensus-subspace/src/block_import.rs | 16 ---------------- crates/sc-consensus-subspace/src/lib.rs | 16 ---------------- .../sc-consensus-subspace/src/notification.rs | 15 --------------- .../sc-consensus-subspace/src/slot_worker.rs | 16 ---------------- crates/sc-consensus-subspace/src/tests.rs | 17 ----------------- crates/sc-domains/Cargo.toml | 2 +- crates/sc-domains/src/lib.rs | 16 ---------------- crates/sc-proof-of-time/Cargo.toml | 2 +- crates/sc-subspace-block-relay/Cargo.toml | 2 +- crates/sc-subspace-chain-specs/Cargo.toml | 2 +- crates/sc-subspace-chain-specs/src/lib.rs | 16 ---------------- crates/sp-consensus-subspace/Cargo.toml | 2 +- crates/sp-consensus-subspace/README.md | 4 +--- crates/sp-consensus-subspace/src/digests.rs | 16 ---------------- crates/sp-consensus-subspace/src/inherents.rs | 16 ---------------- crates/sp-consensus-subspace/src/lib.rs | 16 ---------------- crates/sp-domains-fraud-proof/Cargo.toml | 2 +- crates/sp-domains-fraud-proof/src/lib.rs | 16 ---------------- crates/sp-domains/Cargo.toml | 2 +- crates/sp-domains/src/lib.rs | 15 --------------- crates/sp-objects/Cargo.toml | 2 +- crates/sp-objects/src/lib.rs | 15 --------------- crates/sp-subspace-mmr/Cargo.toml | 2 +- crates/sp-subspace-mmr/src/lib.rs | 15 --------------- crates/subspace-archiving/Cargo.toml | 2 +- crates/subspace-archiving/src/archiver.rs | 15 --------------- crates/subspace-archiving/src/lib.rs | 15 --------------- crates/subspace-core-primitives/Cargo.toml | 2 +- crates/subspace-core-primitives/src/hashes.rs | 15 --------------- crates/subspace-core-primitives/src/lib.rs | 15 --------------- crates/subspace-core-primitives/src/objects.rs | 15 --------------- crates/subspace-erasure-coding/Cargo.toml | 2 +- crates/subspace-fake-runtime-api/Cargo.toml | 2 +- crates/subspace-fake-runtime-api/src/lib.rs | 16 ---------------- crates/subspace-farmer-components/Cargo.toml | 2 +- crates/subspace-farmer/Cargo.toml | 2 +- crates/subspace-farmer/src/utils/ss58.rs | 16 ---------------- crates/subspace-gateway-rpc/Cargo.toml | 2 +- crates/subspace-gateway/Cargo.toml | 2 +- crates/subspace-malicious-operator/Cargo.toml | 2 +- crates/subspace-malicious-operator/build.rs | 16 ---------------- .../src/bin/subspace-malicious-operator.rs | 16 ---------------- crates/subspace-malicious-operator/src/lib.rs | 16 ---------------- crates/subspace-networking/Cargo.toml | 2 +- crates/subspace-networking/src/lib.rs | 15 --------------- .../handlers/generic_request_handler.rs | 16 ---------------- crates/subspace-node/Cargo.toml | 2 +- crates/subspace-node/build.rs | 16 ---------------- crates/subspace-node/src/chain_spec.rs | 16 ---------------- crates/subspace-node/src/cli.rs | 16 ---------------- crates/subspace-node/src/domain.rs | 16 ---------------- .../src/domain/auto_id_chain_spec.rs | 16 ---------------- crates/subspace-node/src/domain/cli.rs | 16 ---------------- .../subspace-node/src/domain/evm_chain_spec.rs | 16 ---------------- crates/subspace-node/src/main.rs | 16 ---------------- crates/subspace-proof-of-space/Cargo.toml | 2 +- crates/subspace-proof-of-time/Cargo.toml | 2 +- crates/subspace-rpc-primitives/Cargo.toml | 2 +- crates/subspace-rpc-primitives/src/lib.rs | 15 --------------- crates/subspace-runtime-primitives/Cargo.toml | 2 +- crates/subspace-runtime-primitives/src/lib.rs | 16 ---------------- crates/subspace-runtime/Cargo.toml | 2 +- crates/subspace-runtime/build.rs | 16 ---------------- crates/subspace-runtime/src/lib.rs | 16 ---------------- crates/subspace-service/Cargo.toml | 2 +- crates/subspace-service/src/lib.rs | 16 ---------------- crates/subspace-service/src/rpc.rs | 16 ---------------- .../src/sync_from_dsn/import_blocks.rs | 16 ---------------- crates/subspace-verification/Cargo.toml | 2 +- crates/subspace-verification/src/lib.rs | 16 ---------------- shared/sc-subspace-sync-common/Cargo.toml | 2 +- .../src/snap_sync_engine.rs | 18 ------------------ shared/subspace-data-retrieval/Cargo.toml | 2 +- shared/subspace-data-retrieval/src/lib.rs | 15 --------------- .../src/object_fetcher.rs | 15 --------------- .../src/piece_fetcher.rs | 15 --------------- .../src/piece_getter.rs | 15 --------------- .../src/segment_downloading.rs | 15 --------------- shared/subspace-kzg/Cargo.toml | 2 +- shared/subspace-logging/Cargo.toml | 2 +- shared/subspace-metrics/Cargo.toml | 2 +- shared/subspace-proof-of-space-gpu/Cargo.toml | 2 +- shared/subspace-proof-of-space-gpu/build.rs | 4 +--- .../subspace-proof-of-space-gpu/src/blake3.cuh | 4 +--- .../subspace-proof-of-space-gpu/src/chacha.cuh | 4 +--- .../src/common_operations.cuh | 4 +--- .../src/create_tables.cuh | 4 +--- shared/subspace-proof-of-space-gpu/src/cuda.rs | 4 +--- .../src/data_structures.cuh | 4 +--- .../src/find_matches.cuh | 4 +--- .../src/find_proof.cuh | 4 +--- shared/subspace-proof-of-space-gpu/src/rocm.rs | 4 +--- .../src/sort15113.cuh | 4 +--- .../src/subspace_api.cu | 10 ++++------ 117 files changed, 57 insertions(+), 1031 deletions(-) diff --git a/crates/pallet-domains/Cargo.toml b/crates/pallet-domains/Cargo.toml index 7313be70ae..ff9a2292b5 100644 --- a/crates/pallet-domains/Cargo.toml +++ b/crates/pallet-domains/Cargo.toml @@ -3,7 +3,7 @@ name = "pallet-domains" version = "0.1.0" authors = ["Subspace Labs "] edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Subspace domains pallet" diff --git a/crates/pallet-domains/src/lib.rs b/crates/pallet-domains/src/lib.rs index 9b9b9c5089..e6815241d7 100644 --- a/crates/pallet-domains/src/lib.rs +++ b/crates/pallet-domains/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Pallet Domains #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/pallet-rewards/Cargo.toml b/crates/pallet-rewards/Cargo.toml index 30043ad86c..3ff1963934 100644 --- a/crates/pallet-rewards/Cargo.toml +++ b/crates/pallet-rewards/Cargo.toml @@ -3,7 +3,7 @@ name = "pallet-rewards" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Pallet for issuing rewards to block producers" diff --git a/crates/pallet-rewards/src/lib.rs b/crates/pallet-rewards/src/lib.rs index 4b7de6e935..64b0ee087b 100644 --- a/crates/pallet-rewards/src/lib.rs +++ b/crates/pallet-rewards/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Pallet for issuing rewards to block producers. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/pallet-runtime-configs/Cargo.toml b/crates/pallet-runtime-configs/Cargo.toml index 971f2f3967..57facf9b21 100644 --- a/crates/pallet-runtime-configs/Cargo.toml +++ b/crates/pallet-runtime-configs/Cargo.toml @@ -3,7 +3,7 @@ name = "pallet-runtime-configs" version = "0.1.0" authors = ["Liu-Cheng Xu "] edition = "2021" -license = "GPL-3.0-or-later WITH Classpath-exception-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Pallet for tweaking the runtime configs for multiple network" diff --git a/crates/pallet-runtime-configs/src/lib.rs b/crates/pallet-runtime-configs/src/lib.rs index 175f396597..71a66ebffd 100644 --- a/crates/pallet-runtime-configs/src/lib.rs +++ b/crates/pallet-runtime-configs/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2022 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Pallet for tweaking the runtime configs for multiple network. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/pallet-subspace-mmr/Cargo.toml b/crates/pallet-subspace-mmr/Cargo.toml index 001b3f8556..a9d4a1eff8 100644 --- a/crates/pallet-subspace-mmr/Cargo.toml +++ b/crates/pallet-subspace-mmr/Cargo.toml @@ -3,7 +3,7 @@ name = "pallet-subspace-mmr" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Primitives for Subspace MMR" -license = "GPL-3.0-or-later WITH Classpath-exception-2.0" +license = "0BSD" version = "0.1.0" authors = ["Subspace Labs "] edition = "2021" diff --git a/crates/pallet-subspace-mmr/src/lib.rs b/crates/pallet-subspace-mmr/src/lib.rs index 581d5d10a4..e6ccbc2d90 100644 --- a/crates/pallet-subspace-mmr/src/lib.rs +++ b/crates/pallet-subspace-mmr/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2022 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Pallet that provides necessary Leaf data for MMR. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/pallet-subspace/Cargo.toml b/crates/pallet-subspace/Cargo.toml index be8d3b0f27..b8fe2f8163 100644 --- a/crates/pallet-subspace/Cargo.toml +++ b/crates/pallet-subspace/Cargo.toml @@ -3,7 +3,7 @@ name = "pallet-subspace" version = "0.1.0" authors = ["Parity Technologies ", "Subspace Labs "] edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Subspace consensus pallet" diff --git a/crates/pallet-subspace/README.md b/crates/pallet-subspace/README.md index b0868dbfda..e22bc82b79 100644 --- a/crates/pallet-subspace/README.md +++ b/crates/pallet-subspace/README.md @@ -14,5 +14,3 @@ Pallet maintains crucial state required for Subspace Proof-of-Archival-Storage c validity of piece from solution can be checked later Pallet also provides handy API for finding block author, block reward address, randomness and some others. - -License: Apache-2.0 diff --git a/crates/pallet-subspace/src/lib.rs b/crates/pallet-subspace/src/lib.rs index e193be29e3..8ba37dd90c 100644 --- a/crates/pallet-subspace/src/lib.rs +++ b/crates/pallet-subspace/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2019-2021 Parity Technologies (UK) Ltd. -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. #![doc = include_str!("../README.md")] #![cfg_attr(not(feature = "std"), no_std)] #![feature(array_chunks, assert_matches, let_chains, portable_simd)] diff --git a/crates/pallet-subspace/src/mock.rs b/crates/pallet-subspace/src/mock.rs index ca14de2c38..c854817313 100644 --- a/crates/pallet-subspace/src/mock.rs +++ b/crates/pallet-subspace/src/mock.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2019-2021 Parity Technologies (UK) Ltd. -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Test utilities use crate::{self as pallet_subspace, AllowAuthoringBy, Config, EnableRewardsAt, NormalEraChange}; diff --git a/crates/pallet-subspace/src/tests.rs b/crates/pallet-subspace/src/tests.rs index 66f576514b..af6b54bd6d 100644 --- a/crates/pallet-subspace/src/tests.rs +++ b/crates/pallet-subspace/src/tests.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2019-2021 Parity Technologies (UK) Ltd. -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Consensus extension module tests for Subspace consensus. use crate::mock::{ diff --git a/crates/pallet-transaction-fees/Cargo.toml b/crates/pallet-transaction-fees/Cargo.toml index 7c03012e60..4001907767 100644 --- a/crates/pallet-transaction-fees/Cargo.toml +++ b/crates/pallet-transaction-fees/Cargo.toml @@ -3,7 +3,7 @@ name = "pallet-transaction-fees" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Pallet for charging and re-distributing transaction fees" diff --git a/crates/pallet-transaction-fees/README.md b/crates/pallet-transaction-fees/README.md index cca2c2b954..46e5637488 100644 --- a/crates/pallet-transaction-fees/README.md +++ b/crates/pallet-transaction-fees/README.md @@ -1,5 +1,3 @@ # Pallet Transaction Fees Pallet for charging and re-distributing transaction fees. - -License: Apache-2.0 diff --git a/crates/pallet-transaction-fees/src/lib.rs b/crates/pallet-transaction-fees/src/lib.rs index 1ec8b9fac4..cf66d92df9 100644 --- a/crates/pallet-transaction-fees/src/lib.rs +++ b/crates/pallet-transaction-fees/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Pallet for charging and re-distributing transaction fees. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/pallet-transaction-fees/src/weights.rs b/crates/pallet-transaction-fees/src/weights.rs index 7897c2f28e..e0fa3337c7 100644 --- a/crates/pallet-transaction-fees/src/weights.rs +++ b/crates/pallet-transaction-fees/src/weights.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Default weights for the Rewards Pallet //! This file was not auto-generated. diff --git a/crates/sc-consensus-subspace-rpc/Cargo.toml b/crates/sc-consensus-subspace-rpc/Cargo.toml index 5753a6b877..198ae5a635 100644 --- a/crates/sc-consensus-subspace-rpc/Cargo.toml +++ b/crates/sc-consensus-subspace-rpc/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Parity Technologies ", "Subspace Labs "] description = "RPC extensions for the Subspace consensus algorithm" edition = "2021" -license = "GPL-3.0-or-later WITH Classpath-exception-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" readme = "README.md" diff --git a/crates/sc-consensus-subspace-rpc/README.md b/crates/sc-consensus-subspace-rpc/README.md index 591a505e33..b68db93add 100644 --- a/crates/sc-consensus-subspace-rpc/README.md +++ b/crates/sc-consensus-subspace-rpc/README.md @@ -1,3 +1 @@ RPC api for Subspace Consensus. - -License: GPL-3.0-or-later WITH Classpath-exception-2.0 diff --git a/crates/sc-consensus-subspace-rpc/src/lib.rs b/crates/sc-consensus-subspace-rpc/src/lib.rs index 0dff89e28e..c8c5acda1e 100644 --- a/crates/sc-consensus-subspace-rpc/src/lib.rs +++ b/crates/sc-consensus-subspace-rpc/src/lib.rs @@ -1,20 +1,3 @@ -// Copyright (C) 2020-2021 Parity Technologies (UK) Ltd. -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! RPC api for Subspace. #![feature(try_blocks)] diff --git a/crates/sc-consensus-subspace/Cargo.toml b/crates/sc-consensus-subspace/Cargo.toml index 1a1a8ba4f7..9122fa9af6 100644 --- a/crates/sc-consensus-subspace/Cargo.toml +++ b/crates/sc-consensus-subspace/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Parity Technologies ", "Subspace Labs "] description = "Subspace consensus algorithm for substrate" edition = "2021" -license = "GPL-3.0-or-later WITH Classpath-exception-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" documentation = "https://docs.rs/sc-consensus-subspace" diff --git a/crates/sc-consensus-subspace/src/archiver.rs b/crates/sc-consensus-subspace/src/archiver.rs index 6fd9f434ef..c4ed38d2f2 100644 --- a/crates/sc-consensus-subspace/src/archiver.rs +++ b/crates/sc-consensus-subspace/src/archiver.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Consensus archiver responsible for archival of blockchain history, it is driven by block import //! pipeline. //! diff --git a/crates/sc-consensus-subspace/src/aux_schema.rs b/crates/sc-consensus-subspace/src/aux_schema.rs index 7f99fda6f1..137d3fb881 100644 --- a/crates/sc-consensus-subspace/src/aux_schema.rs +++ b/crates/sc-consensus-subspace/src/aux_schema.rs @@ -1,20 +1,3 @@ -// Copyright (C) 2019-2021 Parity Technologies (UK) Ltd. -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Schema for Subspace block weight in the aux-db. use codec::{Decode, Encode}; diff --git a/crates/sc-consensus-subspace/src/block_import.rs b/crates/sc-consensus-subspace/src/block_import.rs index 3e2ebb916f..820162384d 100644 --- a/crates/sc-consensus-subspace/src/block_import.rs +++ b/crates/sc-consensus-subspace/src/block_import.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Block import for Subspace, which includes stateful verification and corresponding notifications. //! //! In most cases block import happens after stateless block verification using [`verifier`](crate::verifier), diff --git a/crates/sc-consensus-subspace/src/lib.rs b/crates/sc-consensus-subspace/src/lib.rs index 57211c5c9a..079534f5de 100644 --- a/crates/sc-consensus-subspace/src/lib.rs +++ b/crates/sc-consensus-subspace/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! `sc-consensus-subspace` is the core of Subspace consensus implementation. //! //! You should familiarize yourself with [Subnomicon](https://subnomicon.subspace.network/) and, ideally, protocol diff --git a/crates/sc-consensus-subspace/src/notification.rs b/crates/sc-consensus-subspace/src/notification.rs index 22992e60e7..023debdb8e 100644 --- a/crates/sc-consensus-subspace/src/notification.rs +++ b/crates/sc-consensus-subspace/src/notification.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . //! Utility module for handling Subspace client notifications. use parking_lot::Mutex; diff --git a/crates/sc-consensus-subspace/src/slot_worker.rs b/crates/sc-consensus-subspace/src/slot_worker.rs index 98c06a26a5..1c8bc8e7c7 100644 --- a/crates/sc-consensus-subspace/src/slot_worker.rs +++ b/crates/sc-consensus-subspace/src/slot_worker.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Slot worker drives block and vote production based on slots produced in [`sc_proof_of_time`]. //! //! While slot worker uses [`sc_consensus_slots`], it is not driven by time, but instead by Proof of diff --git a/crates/sc-consensus-subspace/src/tests.rs b/crates/sc-consensus-subspace/src/tests.rs index 6fc89b9823..30ae1db037 100644 --- a/crates/sc-consensus-subspace/src/tests.rs +++ b/crates/sc-consensus-subspace/src/tests.rs @@ -1,20 +1,3 @@ -// Copyright (C) 2019-2021 Parity Technologies (UK) Ltd. -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! PoC testsuite // TODO: Restore in the future, currently tests are mostly broken and useless diff --git a/crates/sc-domains/Cargo.toml b/crates/sc-domains/Cargo.toml index 47fbf8e789..f773381034 100644 --- a/crates/sc-domains/Cargo.toml +++ b/crates/sc-domains/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Subspace Labs "] description = "Subspace service." edition = "2021" -license = "GPL-3.0-or-later" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" include = [ diff --git a/crates/sc-domains/src/lib.rs b/crates/sc-domains/src/lib.rs index 5413a50f22..0e96cebe2b 100644 --- a/crates/sc-domains/src/lib.rs +++ b/crates/sc-domains/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Domain specific Host functions and Extension factory use sc_client_api::execution_extensions::ExtensionsFactory as ExtensionsFactoryT; diff --git a/crates/sc-proof-of-time/Cargo.toml b/crates/sc-proof-of-time/Cargo.toml index 1e3394c2f9..e2cfb62a4c 100644 --- a/crates/sc-proof-of-time/Cargo.toml +++ b/crates/sc-proof-of-time/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sc-proof-of-time" description = "Subspace proof of time implementation" -license = "MIT OR Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Rahul Subramaniyam "] edition = "2021" diff --git a/crates/sc-subspace-block-relay/Cargo.toml b/crates/sc-subspace-block-relay/Cargo.toml index 4bc2671c65..2b373e2430 100644 --- a/crates/sc-subspace-block-relay/Cargo.toml +++ b/crates/sc-subspace-block-relay/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sc-subspace-block-relay" description = "Block relay implementation" -license = "MIT OR Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Rahul Subramaniyam "] edition = "2021" diff --git a/crates/sc-subspace-chain-specs/Cargo.toml b/crates/sc-subspace-chain-specs/Cargo.toml index fb238e4770..d7cffbb13a 100644 --- a/crates/sc-subspace-chain-specs/Cargo.toml +++ b/crates/sc-subspace-chain-specs/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sc-subspace-chain-specs" description = "Chain specification data structures tailored for Subspace" -license = "GPL-3.0-or-later WITH Classpath-exception-2.0" +license = "0BSD" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" diff --git a/crates/sc-subspace-chain-specs/src/lib.rs b/crates/sc-subspace-chain-specs/src/lib.rs index 88ec5992f8..9e797c908b 100644 --- a/crates/sc-subspace-chain-specs/src/lib.rs +++ b/crates/sc-subspace-chain-specs/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Consensus chain specifications for Subspace. /// Devnet chain spec diff --git a/crates/sp-consensus-subspace/Cargo.toml b/crates/sp-consensus-subspace/Cargo.toml index b4b750fc4d..6499304628 100644 --- a/crates/sp-consensus-subspace/Cargo.toml +++ b/crates/sp-consensus-subspace/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Parity Technologies ", "Subspace Labs "] description = "Primitives for Subspace consensus" edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" readme = "README.md" diff --git a/crates/sp-consensus-subspace/README.md b/crates/sp-consensus-subspace/README.md index 68159f7482..e7c7a99407 100644 --- a/crates/sp-consensus-subspace/README.md +++ b/crates/sp-consensus-subspace/README.md @@ -1,3 +1 @@ -Primitives for Subspace Consensus. Based on a fork of `sp_consensus_babe` - -License: Apache-2.0 +Primitives for Subspace Consensus. diff --git a/crates/sp-consensus-subspace/src/digests.rs b/crates/sp-consensus-subspace/src/digests.rs index 1169a45c87..72cbae5a2d 100644 --- a/crates/sp-consensus-subspace/src/digests.rs +++ b/crates/sp-consensus-subspace/src/digests.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2019-2021 Parity Technologies (UK) Ltd. -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Private implementation details of Subspace consensus digests. use crate::{ConsensusLog, PotParametersChange, SUBSPACE_ENGINE_ID}; diff --git a/crates/sp-consensus-subspace/src/inherents.rs b/crates/sp-consensus-subspace/src/inherents.rs index 402f3b4550..1a8825e24b 100644 --- a/crates/sp-consensus-subspace/src/inherents.rs +++ b/crates/sp-consensus-subspace/src/inherents.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2019-2021 Parity Technologies (UK) Ltd. -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Inherents for Subspace consensus #[cfg(not(feature = "std"))] diff --git a/crates/sp-consensus-subspace/src/lib.rs b/crates/sp-consensus-subspace/src/lib.rs index d3271eb907..6d4c6e5c71 100644 --- a/crates/sp-consensus-subspace/src/lib.rs +++ b/crates/sp-consensus-subspace/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2019-2021 Parity Technologies (UK) Ltd. -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Primitives for Subspace consensus. #![forbid(unsafe_code, missing_docs)] diff --git a/crates/sp-domains-fraud-proof/Cargo.toml b/crates/sp-domains-fraud-proof/Cargo.toml index defda73a60..5fdc0f7920 100644 --- a/crates/sp-domains-fraud-proof/Cargo.toml +++ b/crates/sp-domains-fraud-proof/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sp-domains-fraud-proof" description = "Domains fraud proof primitves for Consensus chain" -license = "GPL-3.0-or-later WITH Classpath-exception-2.0" +license = "0BSD" version = "0.1.0" authors = ["Subspace Labs "] edition = "2021" diff --git a/crates/sp-domains-fraud-proof/src/lib.rs b/crates/sp-domains-fraud-proof/src/lib.rs index e62b88e220..69d4a0deba 100644 --- a/crates/sp-domains-fraud-proof/src/lib.rs +++ b/crates/sp-domains-fraud-proof/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2022 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Subspace fraud proof primitives for consensus chain. #![cfg_attr(not(feature = "std"), no_std)] // `generic_const_exprs` is an incomplete feature diff --git a/crates/sp-domains/Cargo.toml b/crates/sp-domains/Cargo.toml index 2b485d98cd..96d9a4351b 100644 --- a/crates/sp-domains/Cargo.toml +++ b/crates/sp-domains/Cargo.toml @@ -3,7 +3,7 @@ name = "sp-domains" version = "0.1.0" authors = ["Subspace Labs "] edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Primitives of domains pallet" diff --git a/crates/sp-domains/src/lib.rs b/crates/sp-domains/src/lib.rs index b87f5824f3..483d9e2dba 100644 --- a/crates/sp-domains/src/lib.rs +++ b/crates/sp-domains/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Primitives for domains pallet. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/sp-objects/Cargo.toml b/crates/sp-objects/Cargo.toml index aa6fb0322b..e159212a87 100644 --- a/crates/sp-objects/Cargo.toml +++ b/crates/sp-objects/Cargo.toml @@ -3,7 +3,7 @@ name = "sp-objects" version = "0.1.0" authors = ["Vedhavyas Singareddi "] edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Primitives for Objects" diff --git a/crates/sp-objects/src/lib.rs b/crates/sp-objects/src/lib.rs index e36dec23a9..26ab47a04f 100644 --- a/crates/sp-objects/src/lib.rs +++ b/crates/sp-objects/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Primitives for Objects. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/sp-subspace-mmr/Cargo.toml b/crates/sp-subspace-mmr/Cargo.toml index 7e49038985..e7ab6ae8a5 100644 --- a/crates/sp-subspace-mmr/Cargo.toml +++ b/crates/sp-subspace-mmr/Cargo.toml @@ -3,7 +3,7 @@ name = "sp-subspace-mmr" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Primitives for Subspace MMR" -license = "GPL-3.0-or-later WITH Classpath-exception-2.0" +license = "0BSD" version = "0.1.0" authors = ["Subspace Labs "] edition = "2021" diff --git a/crates/sp-subspace-mmr/src/lib.rs b/crates/sp-subspace-mmr/src/lib.rs index 7b11c65c2d..53b67ca644 100644 --- a/crates/sp-subspace-mmr/src/lib.rs +++ b/crates/sp-subspace-mmr/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Primitives for Subspace MMR. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/subspace-archiving/Cargo.toml b/crates/subspace-archiving/Cargo.toml index 41bc6dcfc8..f58091c70c 100644 --- a/crates/subspace-archiving/Cargo.toml +++ b/crates/subspace-archiving/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-archiving" description = "Collection of modules used for dealing with archived state of Subspace Network" -license = "Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" diff --git a/crates/subspace-archiving/src/archiver.rs b/crates/subspace-archiving/src/archiver.rs index 923ea8cf0b..f45e7890dc 100644 --- a/crates/subspace-archiving/src/archiver.rs +++ b/crates/subspace-archiving/src/archiver.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - mod incremental_record_commitments; extern crate alloc; diff --git a/crates/subspace-archiving/src/lib.rs b/crates/subspace-archiving/src/lib.rs index eb19b2b622..a1405e03a5 100644 --- a/crates/subspace-archiving/src/lib.rs +++ b/crates/subspace-archiving/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Collection of modules used for dealing with archived state of Subspace Network. #![cfg_attr(not(feature = "std"), no_std)] #![feature(array_chunks, extract_if, iter_collect_into)] diff --git a/crates/subspace-core-primitives/Cargo.toml b/crates/subspace-core-primitives/Cargo.toml index 80f3efb038..006b03dcb9 100644 --- a/crates/subspace-core-primitives/Cargo.toml +++ b/crates/subspace-core-primitives/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-core-primitives" description = "Core primitives for Subspace Network" -license = "Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" diff --git a/crates/subspace-core-primitives/src/hashes.rs b/crates/subspace-core-primitives/src/hashes.rs index 80b3c32851..919c9672e8 100644 --- a/crates/subspace-core-primitives/src/hashes.rs +++ b/crates/subspace-core-primitives/src/hashes.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Hashes-related data structures and functions. use crate::ScalarBytes; diff --git a/crates/subspace-core-primitives/src/lib.rs b/crates/subspace-core-primitives/src/lib.rs index 0b9d0eb7ea..bc2603bd15 100644 --- a/crates/subspace-core-primitives/src/lib.rs +++ b/crates/subspace-core-primitives/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Core primitives for Subspace Network. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/subspace-core-primitives/src/objects.rs b/crates/subspace-core-primitives/src/objects.rs index 467e5a7f80..2814e9afed 100644 --- a/crates/subspace-core-primitives/src/objects.rs +++ b/crates/subspace-core-primitives/src/objects.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Data structures related to objects (useful data) stored on Subspace Network. //! //! There are two kinds of mappings: diff --git a/crates/subspace-erasure-coding/Cargo.toml b/crates/subspace-erasure-coding/Cargo.toml index 39416f1c34..34ae39dd2c 100644 --- a/crates/subspace-erasure-coding/Cargo.toml +++ b/crates/subspace-erasure-coding/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-erasure-coding" description = "Polynomial erasure coding implementation used in Subspace Network" -license = "Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" diff --git a/crates/subspace-fake-runtime-api/Cargo.toml b/crates/subspace-fake-runtime-api/Cargo.toml index 2853b930cb..0fc94e328a 100644 --- a/crates/subspace-fake-runtime-api/Cargo.toml +++ b/crates/subspace-fake-runtime-api/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Subspace Labs "] description = "Fake subspace runtime API." edition = "2021" -license = "GPL-3.0-or-later" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" include = ["/src", "/Cargo.toml"] diff --git a/crates/subspace-fake-runtime-api/src/lib.rs b/crates/subspace-fake-runtime-api/src/lib.rs index 7a4f5e1100..6ddfe88868 100644 --- a/crates/subspace-fake-runtime-api/src/lib.rs +++ b/crates/subspace-fake-runtime-api/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Provides "fake" runtime API implementation as a workaround for compile-time checks. use domain_runtime_primitives::opaque::Header as DomainHeader; diff --git a/crates/subspace-farmer-components/Cargo.toml b/crates/subspace-farmer-components/Cargo.toml index 6e6e64de7b..296a2c2497 100644 --- a/crates/subspace-farmer-components/Cargo.toml +++ b/crates/subspace-farmer-components/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-farmer-components" description = "Farmer for the Subspace Network Blockchain" -license = "MIT OR Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" diff --git a/crates/subspace-farmer/Cargo.toml b/crates/subspace-farmer/Cargo.toml index bff753a07f..4fbc6f2762 100644 --- a/crates/subspace-farmer/Cargo.toml +++ b/crates/subspace-farmer/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-farmer" description = "Farmer for the Subspace Network Blockchain" -license = "MIT OR Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" diff --git a/crates/subspace-farmer/src/utils/ss58.rs b/crates/subspace-farmer/src/utils/ss58.rs index 6d532ad988..52c66ded7c 100644 --- a/crates/subspace-farmer/src/utils/ss58.rs +++ b/crates/subspace-farmer/src/utils/ss58.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2017-2022 Parity Technologies (UK) Ltd. -// Copyright (C) 2022 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Modified version of SS58 parser extracted from Substrate in order to not pull the whole //! `sp-core` into farmer application diff --git a/crates/subspace-gateway-rpc/Cargo.toml b/crates/subspace-gateway-rpc/Cargo.toml index b8ed9081f3..145df1fcf5 100644 --- a/crates/subspace-gateway-rpc/Cargo.toml +++ b/crates/subspace-gateway-rpc/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Teor "] description = "A Subspace Network data gateway." edition = "2021" -license = "MIT OR Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" diff --git a/crates/subspace-gateway/Cargo.toml b/crates/subspace-gateway/Cargo.toml index 3127b26d06..024a6d4caf 100644 --- a/crates/subspace-gateway/Cargo.toml +++ b/crates/subspace-gateway/Cargo.toml @@ -7,7 +7,7 @@ authors = [ ] description = "A Subspace Network data gateway." edition = "2021" -license = "MIT OR Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" include = [ diff --git a/crates/subspace-malicious-operator/Cargo.toml b/crates/subspace-malicious-operator/Cargo.toml index 420eaaa385..6628698867 100644 --- a/crates/subspace-malicious-operator/Cargo.toml +++ b/crates/subspace-malicious-operator/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Subspace Labs "] description = "A Subspace Network Blockchain node." edition = "2021" -license = "GPL-3.0-or-later" +license = "0BSD" build = "build.rs" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" diff --git a/crates/subspace-malicious-operator/build.rs b/crates/subspace-malicious-operator/build.rs index e69d6d8b7a..f9d839f9be 100644 --- a/crates/subspace-malicious-operator/build.rs +++ b/crates/subspace-malicious-operator/build.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2023 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed}; fn main() { diff --git a/crates/subspace-malicious-operator/src/bin/subspace-malicious-operator.rs b/crates/subspace-malicious-operator/src/bin/subspace-malicious-operator.rs index 7727865a2a..5ca70c6ef0 100644 --- a/crates/subspace-malicious-operator/src/bin/subspace-malicious-operator.rs +++ b/crates/subspace-malicious-operator/src/bin/subspace-malicious-operator.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2023 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Subspace malicious operator node. #![feature(trait_upcasting)] diff --git a/crates/subspace-malicious-operator/src/lib.rs b/crates/subspace-malicious-operator/src/lib.rs index bd860bd3f4..8f2c26521f 100644 --- a/crates/subspace-malicious-operator/src/lib.rs +++ b/crates/subspace-malicious-operator/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2023 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Subspace malicious operator library. mod chain_spec; diff --git a/crates/subspace-networking/Cargo.toml b/crates/subspace-networking/Cargo.toml index 1f6184dbb8..6fde5204bb 100644 --- a/crates/subspace-networking/Cargo.toml +++ b/crates/subspace-networking/Cargo.toml @@ -7,7 +7,7 @@ authors = [ ] description = "Networking functionality of Subspace Network, primarily used for DSN (Distributed Storage Network)" edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" include = [ diff --git a/crates/subspace-networking/src/lib.rs b/crates/subspace-networking/src/lib.rs index b13554da37..bc0bdc59a4 100644 --- a/crates/subspace-networking/src/lib.rs +++ b/crates/subspace-networking/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Networking functionality of Subspace Network, primarily used for DSN (Distributed Storage //! Network). diff --git a/crates/subspace-networking/src/protocols/request_response/handlers/generic_request_handler.rs b/crates/subspace-networking/src/protocols/request_response/handlers/generic_request_handler.rs index a61c1c6661..3c298418eb 100644 --- a/crates/subspace-networking/src/protocols/request_response/handlers/generic_request_handler.rs +++ b/crates/subspace-networking/src/protocols/request_response/handlers/generic_request_handler.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2020-2022 Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Generic request-response handler, typically is used with a type implementing [`GenericRequest`] //! to significantly reduce boilerplate when implementing [`RequestHandler`]. diff --git a/crates/subspace-node/Cargo.toml b/crates/subspace-node/Cargo.toml index 0d0ad438fe..0acd2a2b50 100644 --- a/crates/subspace-node/Cargo.toml +++ b/crates/subspace-node/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Subspace Labs "] description = "A Subspace Network Blockchain node." edition = "2021" -license = "GPL-3.0-or-later" +license = "0BSD" build = "build.rs" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" diff --git a/crates/subspace-node/build.rs b/crates/subspace-node/build.rs index 3adcb97690..f9d839f9be 100644 --- a/crates/subspace-node/build.rs +++ b/crates/subspace-node/build.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed}; fn main() { diff --git a/crates/subspace-node/src/chain_spec.rs b/crates/subspace-node/src/chain_spec.rs index 8cf80065b8..066eda37e2 100644 --- a/crates/subspace-node/src/chain_spec.rs +++ b/crates/subspace-node/src/chain_spec.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Subspace chain configurations. use crate::chain_spec_utils::{chain_spec_properties, get_account_id_from_seed}; diff --git a/crates/subspace-node/src/cli.rs b/crates/subspace-node/src/cli.rs index a17768c999..131ef2c308 100644 --- a/crates/subspace-node/src/cli.rs +++ b/crates/subspace-node/src/cli.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - use crate::chain_spec; use crate::commands::{RunOptions, WipeOptions}; use clap::Parser; diff --git a/crates/subspace-node/src/domain.rs b/crates/subspace-node/src/domain.rs index 3b08441c67..fc4c850d84 100644 --- a/crates/subspace-node/src/domain.rs +++ b/crates/subspace-node/src/domain.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2023 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - pub mod auto_id_chain_spec; pub(crate) mod cli; pub mod evm_chain_spec; diff --git a/crates/subspace-node/src/domain/auto_id_chain_spec.rs b/crates/subspace-node/src/domain/auto_id_chain_spec.rs index 38c64422fe..c1be4e9c54 100644 --- a/crates/subspace-node/src/domain/auto_id_chain_spec.rs +++ b/crates/subspace-node/src/domain/auto_id_chain_spec.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2023 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! AutoId domain configurations. use crate::chain_spec_utils::{ diff --git a/crates/subspace-node/src/domain/cli.rs b/crates/subspace-node/src/domain/cli.rs index e057764d9b..fd1bace1a6 100644 --- a/crates/subspace-node/src/domain/cli.rs +++ b/crates/subspace-node/src/domain/cli.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - use crate::commands::{CreateDomainKeyOptions, InsertDomainKeyOptions}; use crate::domain::{auto_id_chain_spec, evm_chain_spec}; use clap::{Parser, ValueEnum}; diff --git a/crates/subspace-node/src/domain/evm_chain_spec.rs b/crates/subspace-node/src/domain/evm_chain_spec.rs index 7759be4370..9132f531fb 100644 --- a/crates/subspace-node/src/domain/evm_chain_spec.rs +++ b/crates/subspace-node/src/domain/evm_chain_spec.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2023 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! EVM domain configurations. use crate::chain_spec_utils::{chain_spec_properties, get_public_key_from_seed}; diff --git a/crates/subspace-node/src/main.rs b/crates/subspace-node/src/main.rs index c0bb9c7260..d7e1d4ae2a 100644 --- a/crates/subspace-node/src/main.rs +++ b/crates/subspace-node/src/main.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Subspace node implementation. #![feature(trait_upcasting)] diff --git a/crates/subspace-proof-of-space/Cargo.toml b/crates/subspace-proof-of-space/Cargo.toml index fad67cf123..2014041093 100644 --- a/crates/subspace-proof-of-space/Cargo.toml +++ b/crates/subspace-proof-of-space/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-proof-of-space" description = "Subspace proof of space implementation based on Chia" -license = "Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" diff --git a/crates/subspace-proof-of-time/Cargo.toml b/crates/subspace-proof-of-time/Cargo.toml index 1ad6bcfea0..f418dad0d7 100644 --- a/crates/subspace-proof-of-time/Cargo.toml +++ b/crates/subspace-proof-of-time/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-proof-of-time" description = "Subspace proof of time implementation" -license = "Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Rahul Subramaniyam "] edition = "2021" diff --git a/crates/subspace-rpc-primitives/Cargo.toml b/crates/subspace-rpc-primitives/Cargo.toml index 0647b0d4ca..c557506622 100644 --- a/crates/subspace-rpc-primitives/Cargo.toml +++ b/crates/subspace-rpc-primitives/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Subspace Labs "] description = "RPC primitives for Subspace Network" edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" include = [ diff --git a/crates/subspace-rpc-primitives/src/lib.rs b/crates/subspace-rpc-primitives/src/lib.rs index 319e37e12d..d7c31646b1 100644 --- a/crates/subspace-rpc-primitives/src/lib.rs +++ b/crates/subspace-rpc-primitives/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Primitives for Subspace RPC. use parity_scale_codec::{Decode, Encode, EncodeLike, Input, Output}; diff --git a/crates/subspace-runtime-primitives/Cargo.toml b/crates/subspace-runtime-primitives/Cargo.toml index 29d4eaadae..8bccfae0a0 100644 --- a/crates/subspace-runtime-primitives/Cargo.toml +++ b/crates/subspace-runtime-primitives/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-runtime-primitives" description = "Runtime primitives for Subspace Network" -license = "GPL-3.0-or-later" +license = "0BSD" version = "0.1.0" authors = ["Subspace Labs "] edition = "2021" diff --git a/crates/subspace-runtime-primitives/src/lib.rs b/crates/subspace-runtime-primitives/src/lib.rs index f29e9e28e6..1a89c1ca1d 100644 --- a/crates/subspace-runtime-primitives/src/lib.rs +++ b/crates/subspace-runtime-primitives/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Runtime primitives for Subspace Network. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/crates/subspace-runtime/Cargo.toml b/crates/subspace-runtime/Cargo.toml index 2a1a40bf7c..7a91479f0a 100644 --- a/crates/subspace-runtime/Cargo.toml +++ b/crates/subspace-runtime/Cargo.toml @@ -3,7 +3,7 @@ name = "subspace-runtime" version = "0.1.0" authors = ["Subspace Labs "] edition = "2021" -license = "GPL-3.0-or-later" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" include = [ diff --git a/crates/subspace-runtime/build.rs b/crates/subspace-runtime/build.rs index e2217a8dda..8f021e8381 100644 --- a/crates/subspace-runtime/build.rs +++ b/crates/subspace-runtime/build.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - fn main() { #[cfg(feature = "std")] { diff --git a/crates/subspace-runtime/src/lib.rs b/crates/subspace-runtime/src/lib.rs index ed930abdf7..f0ac27b258 100644 --- a/crates/subspace-runtime/src/lib.rs +++ b/crates/subspace-runtime/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - #![cfg_attr(not(feature = "std"), no_std)] #![feature(const_trait_impl, variant_count)] // `generic_const_exprs` is an incomplete feature diff --git a/crates/subspace-service/Cargo.toml b/crates/subspace-service/Cargo.toml index b3397a7f72..28c5e1562e 100644 --- a/crates/subspace-service/Cargo.toml +++ b/crates/subspace-service/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Subspace Labs "] description = "Subspace service." edition = "2021" -license = "GPL-3.0-or-later" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" include = [ diff --git a/crates/subspace-service/src/lib.rs b/crates/subspace-service/src/lib.rs index e94734a852..59156d21b3 100644 --- a/crates/subspace-service/src/lib.rs +++ b/crates/subspace-service/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Service and ServiceFactory implementation. Specialized wrapper over substrate service. #![feature( duration_constructors, diff --git a/crates/subspace-service/src/rpc.rs b/crates/subspace-service/src/rpc.rs index 9b10d80649..0103752955 100644 --- a/crates/subspace-service/src/rpc.rs +++ b/crates/subspace-service/src/rpc.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! A collection of node-specific RPC methods. //! //! Substrate provides the `sc-rpc` crate, which defines the core RPC layer diff --git a/crates/subspace-service/src/sync_from_dsn/import_blocks.rs b/crates/subspace-service/src/sync_from_dsn/import_blocks.rs index d6b648561d..c13d231727 100644 --- a/crates/subspace-service/src/sync_from_dsn/import_blocks.rs +++ b/crates/subspace-service/src/sync_from_dsn/import_blocks.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2023 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - use crate::sync_from_dsn::segment_header_downloader::SegmentHeaderDownloader; use crate::sync_from_dsn::PieceGetter; use sc_client_api::{AuxStore, BlockBackend, HeaderBackend}; diff --git a/crates/subspace-verification/Cargo.toml b/crates/subspace-verification/Cargo.toml index 093129e074..3ff1b96e1b 100644 --- a/crates/subspace-verification/Cargo.toml +++ b/crates/subspace-verification/Cargo.toml @@ -3,7 +3,7 @@ name = "subspace-verification" version = "0.1.0" authors = ["Vedhavyas Singareddi "] edition = "2021" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" description = "Verification primitives for Subspace" diff --git a/crates/subspace-verification/src/lib.rs b/crates/subspace-verification/src/lib.rs index e762747804..3d752ea4da 100644 --- a/crates/subspace-verification/src/lib.rs +++ b/crates/subspace-verification/src/lib.rs @@ -1,19 +1,3 @@ -// Copyright (C) 2021 Subspace Labs, Inc. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! Verification primitives for Subspace. #![forbid(unsafe_code)] #![warn(rust_2018_idioms, missing_debug_implementations, missing_docs)] diff --git a/shared/sc-subspace-sync-common/Cargo.toml b/shared/sc-subspace-sync-common/Cargo.toml index fbf6d60ea2..943eefdcc8 100644 --- a/shared/sc-subspace-sync-common/Cargo.toml +++ b/shared/sc-subspace-sync-common/Cargo.toml @@ -6,7 +6,7 @@ authors = [ "Shamil Gadelshin " ] description = "Synchronization algorithms for Autonomys Network" -license = "Apache-2.0" +license = "0BSD" repository = "https://github.com/autonomys/subspace" include = [ "/src", diff --git a/shared/sc-subspace-sync-common/src/snap_sync_engine.rs b/shared/sc-subspace-sync-common/src/snap_sync_engine.rs index f15c1abda6..9759c4bdd4 100644 --- a/shared/sc-subspace-sync-common/src/snap_sync_engine.rs +++ b/shared/sc-subspace-sync-common/src/snap_sync_engine.rs @@ -1,21 +1,3 @@ -// This file is part of Substrate. - -// Copyright (C) Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - //! `SyncingEngine` is the actor responsible for syncing Substrate chain //! to tip and keep the blockchain up to date with network updates. diff --git a/shared/subspace-data-retrieval/Cargo.toml b/shared/subspace-data-retrieval/Cargo.toml index 1843628c25..e91c58e5a7 100644 --- a/shared/subspace-data-retrieval/Cargo.toml +++ b/shared/subspace-data-retrieval/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-data-retrieval" description = "Fetching data from the archived history of the Subspace Distributed Storage Network." -license = "Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Teor "] edition = "2021" diff --git a/shared/subspace-data-retrieval/src/lib.rs b/shared/subspace-data-retrieval/src/lib.rs index a14159b2cb..eab9a73356 100644 --- a/shared/subspace-data-retrieval/src/lib.rs +++ b/shared/subspace-data-retrieval/src/lib.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2024 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Fetching data from the archived history of the Subspace Distributed Storage Network. #![feature(exact_size_is_empty)] diff --git a/shared/subspace-data-retrieval/src/object_fetcher.rs b/shared/subspace-data-retrieval/src/object_fetcher.rs index 85800987ef..4394f35bf6 100644 --- a/shared/subspace-data-retrieval/src/object_fetcher.rs +++ b/shared/subspace-data-retrieval/src/object_fetcher.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2024 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Fetching objects stored in the archived history of Subspace Network. use crate::piece_fetcher::download_pieces; diff --git a/shared/subspace-data-retrieval/src/piece_fetcher.rs b/shared/subspace-data-retrieval/src/piece_fetcher.rs index ea702a1606..9db8f64e1f 100644 --- a/shared/subspace-data-retrieval/src/piece_fetcher.rs +++ b/shared/subspace-data-retrieval/src/piece_fetcher.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2024 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Fetching pieces of the archived history of Subspace Network. use crate::object_fetcher::Error; diff --git a/shared/subspace-data-retrieval/src/piece_getter.rs b/shared/subspace-data-retrieval/src/piece_getter.rs index e23fee44ec..f323e5309b 100644 --- a/shared/subspace-data-retrieval/src/piece_getter.rs +++ b/shared/subspace-data-retrieval/src/piece_getter.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2024 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Getting object pieces from the Subspace Distributed Storage Network, or various caches. use async_trait::async_trait; diff --git a/shared/subspace-data-retrieval/src/segment_downloading.rs b/shared/subspace-data-retrieval/src/segment_downloading.rs index f84fe86ec4..689804ed8c 100644 --- a/shared/subspace-data-retrieval/src/segment_downloading.rs +++ b/shared/subspace-data-retrieval/src/segment_downloading.rs @@ -1,18 +1,3 @@ -// Copyright (C) 2024 Subspace Labs, Inc. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Fetching segments of the archived history of Subspace Network. use crate::piece_getter::PieceGetter; diff --git a/shared/subspace-kzg/Cargo.toml b/shared/subspace-kzg/Cargo.toml index 35f4d3e88f..62f46f40cf 100644 --- a/shared/subspace-kzg/Cargo.toml +++ b/shared/subspace-kzg/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-kzg" description = "KZG primitives for Subspace Network" -license = "Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Nazar Mokrynskyi "] edition = "2021" diff --git a/shared/subspace-logging/Cargo.toml b/shared/subspace-logging/Cargo.toml index 9345b5fc44..345dbd63da 100644 --- a/shared/subspace-logging/Cargo.toml +++ b/shared/subspace-logging/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-logging" description = "Ensure all logging uilities are centralized for the whole project" -license = "Apache-2.0" +license = "0BSD" version = "0.0.1" authors = ["Nazar Mokrynskyi "] edition = "2021" diff --git a/shared/subspace-metrics/Cargo.toml b/shared/subspace-metrics/Cargo.toml index a53310ba39..81c89d2d18 100644 --- a/shared/subspace-metrics/Cargo.toml +++ b/shared/subspace-metrics/Cargo.toml @@ -6,7 +6,7 @@ authors = [ "Shamil Gadelshin " ] description = "Metrics for Subspace Network" -license = "Apache-2.0" +license = "0BSD" homepage = "https://subspace.network" repository = "https://github.com/autonomys/subspace" include = [ diff --git a/shared/subspace-proof-of-space-gpu/Cargo.toml b/shared/subspace-proof-of-space-gpu/Cargo.toml index 3ab7730e15..8e2223176f 100644 --- a/shared/subspace-proof-of-space-gpu/Cargo.toml +++ b/shared/subspace-proof-of-space-gpu/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "subspace-proof-of-space-gpu" description = "Subspace proof of space implementation for GPU (low-level proving utilities)" -license = "Apache-2.0" +license = "0BSD" version = "0.1.0" authors = ["Supranational LLC"] edition = "2021" diff --git a/shared/subspace-proof-of-space-gpu/build.rs b/shared/subspace-proof-of-space-gpu/build.rs index 935605ee4a..95962f0efd 100644 --- a/shared/subspace-proof-of-space-gpu/build.rs +++ b/shared/subspace-proof-of-space-gpu/build.rs @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC use std::env; use std::thread::available_parallelism; diff --git a/shared/subspace-proof-of-space-gpu/src/blake3.cuh b/shared/subspace-proof-of-space-gpu/src/blake3.cuh index dfb1f52b6f..64529629d6 100644 --- a/shared/subspace-proof-of-space-gpu/src/blake3.cuh +++ b/shared/subspace-proof-of-space-gpu/src/blake3.cuh @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC #include #include diff --git a/shared/subspace-proof-of-space-gpu/src/chacha.cuh b/shared/subspace-proof-of-space-gpu/src/chacha.cuh index 10bed1ce68..faddef44b2 100644 --- a/shared/subspace-proof-of-space-gpu/src/chacha.cuh +++ b/shared/subspace-proof-of-space-gpu/src/chacha.cuh @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC #include #include diff --git a/shared/subspace-proof-of-space-gpu/src/common_operations.cuh b/shared/subspace-proof-of-space-gpu/src/common_operations.cuh index 6b125726c9..5341fa9578 100644 --- a/shared/subspace-proof-of-space-gpu/src/common_operations.cuh +++ b/shared/subspace-proof-of-space-gpu/src/common_operations.cuh @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC __device__ __forceinline__ uint32_t byte_swap(uint32_t in) diff --git a/shared/subspace-proof-of-space-gpu/src/create_tables.cuh b/shared/subspace-proof-of-space-gpu/src/create_tables.cuh index 6843123d4a..303bde43ae 100644 --- a/shared/subspace-proof-of-space-gpu/src/create_tables.cuh +++ b/shared/subspace-proof-of-space-gpu/src/create_tables.cuh @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC template __global__ __launch_bounds__(1024) diff --git a/shared/subspace-proof-of-space-gpu/src/cuda.rs b/shared/subspace-proof-of-space-gpu/src/cuda.rs index 6cff6ad625..e8a53d0389 100644 --- a/shared/subspace-proof-of-space-gpu/src/cuda.rs +++ b/shared/subspace-proof-of-space-gpu/src/cuda.rs @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC #[cfg(test)] mod tests; diff --git a/shared/subspace-proof-of-space-gpu/src/data_structures.cuh b/shared/subspace-proof-of-space-gpu/src/data_structures.cuh index eec265967f..58d5ead9c5 100644 --- a/shared/subspace-proof-of-space-gpu/src/data_structures.cuh +++ b/shared/subspace-proof-of-space-gpu/src/data_structures.cuh @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC #include #include diff --git a/shared/subspace-proof-of-space-gpu/src/find_matches.cuh b/shared/subspace-proof-of-space-gpu/src/find_matches.cuh index af79b36e67..ae78c9de82 100644 --- a/shared/subspace-proof-of-space-gpu/src/find_matches.cuh +++ b/shared/subspace-proof-of-space-gpu/src/find_matches.cuh @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC __device__ __forceinline__ uint32_t calculate_destination(uint32_t parity, uint32_t r, uint32_t m) diff --git a/shared/subspace-proof-of-space-gpu/src/find_proof.cuh b/shared/subspace-proof-of-space-gpu/src/find_proof.cuh index 9a46eb9738..fc5ff476c8 100644 --- a/shared/subspace-proof-of-space-gpu/src/find_proof.cuh +++ b/shared/subspace-proof-of-space-gpu/src/find_proof.cuh @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC __device__ __forceinline__ uint32_t search_min_left_pos(table_data_ptr table, uint32_t dest, diff --git a/shared/subspace-proof-of-space-gpu/src/rocm.rs b/shared/subspace-proof-of-space-gpu/src/rocm.rs index 507517eb16..fe9298d4b7 100644 --- a/shared/subspace-proof-of-space-gpu/src/rocm.rs +++ b/shared/subspace-proof-of-space-gpu/src/rocm.rs @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC #[cfg(test)] mod tests; diff --git a/shared/subspace-proof-of-space-gpu/src/sort15113.cuh b/shared/subspace-proof-of-space-gpu/src/sort15113.cuh index 5ffd5abeae..d14cfbb437 100644 --- a/shared/subspace-proof-of-space-gpu/src/sort15113.cuh +++ b/shared/subspace-proof-of-space-gpu/src/sort15113.cuh @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC #ifndef __SUBSPACE_SORT_CUH__ #define __SUBSPACE_SORT_CUH__ diff --git a/shared/subspace-proof-of-space-gpu/src/subspace_api.cu b/shared/subspace-proof-of-space-gpu/src/subspace_api.cu index 67a185abf6..d454f12ddd 100644 --- a/shared/subspace-proof-of-space-gpu/src/subspace_api.cu +++ b/shared/subspace-proof-of-space-gpu/src/subspace_api.cu @@ -1,6 +1,4 @@ -// Copyright Supranational LLC -// Licensed under the Apache License, Version 2.0, see LICENSE for details. -// SPDX-License-Identifier: Apache-2.0 +// Originally written by Supranational LLC #include #include @@ -187,7 +185,7 @@ RustError::by_value generate_and_encode_pospace(const uint8_t* key, kern_endianness_swap<<>>(&d_record[record_size], &d_record[record_size], record_size); - + CUDA_OK(cudaGetLastError()); // Converts and duplicates data on the GPU. @@ -208,12 +206,12 @@ RustError::by_value generate_and_encode_pospace(const uint8_t* key, NTT::Base_dev_ptr(gpu, d_record, lg_record_size + 1, NTT::InputOutputOrder::RN, NTT::Direction::forward, NTT::Type::standard); - + // Convert the inputs (and outputs) back to big-endian kern_endianness_swap<<>>(&d_record[0], &d_record[0], 2 * record_size); - + CUDA_OK(cudaGetLastError()); // Record a list of pending operations submitted to the stream