From 6521aa24db10298cf480887a9cdc2fdd1fbb6725 Mon Sep 17 00:00:00 2001 From: User Date: Mon, 22 May 2023 11:22:04 -0700 Subject: [PATCH] Update file headers --- .integration/src/lib.rs | 26 +++++++++---------- account/src/lib.rs | 26 +++++++++---------- build.rs | 26 +++++++++---------- cli/src/commands/account.rs | 26 +++++++++---------- cli/src/commands/clean.rs | 26 +++++++++---------- cli/src/commands/developer/decrypt.rs | 26 +++++++++---------- cli/src/commands/developer/deploy.rs | 26 +++++++++---------- cli/src/commands/developer/execute.rs | 26 +++++++++---------- cli/src/commands/developer/mod.rs | 26 +++++++++---------- cli/src/commands/developer/scan.rs | 26 +++++++++---------- cli/src/commands/developer/transfer.rs | 26 +++++++++---------- cli/src/commands/mod.rs | 22 +++++++--------- cli/src/commands/start.rs | 26 +++++++++---------- cli/src/commands/update.rs | 22 +++++++--------- cli/src/helpers/bech32m.rs | 22 +++++++--------- cli/src/helpers/log_writer.rs | 26 +++++++++---------- cli/src/helpers/logger.rs | 26 +++++++++---------- cli/src/helpers/mod.rs | 22 +++++++--------- cli/src/helpers/updater.rs | 26 +++++++++---------- cli/src/lib.rs | 22 +++++++--------- display/src/lib.rs | 26 +++++++++---------- display/src/pages/logs.rs | 22 +++++++--------- display/src/pages/mod.rs | 22 +++++++--------- display/src/pages/overview.rs | 26 +++++++++---------- display/src/tabs.rs | 22 +++++++--------- node/cdn/src/blocks.rs | 26 +++++++++---------- node/cdn/src/lib.rs | 22 +++++++--------- node/consensus/src/helpers/mod.rs | 26 +++++++++---------- node/consensus/src/lib.rs | 26 +++++++++---------- node/consensus/src/memory_pool/mod.rs | 26 +++++++++---------- node/consensus/src/memory_pool/solutions.rs | 26 +++++++++---------- .../consensus/src/memory_pool/transactions.rs | 26 +++++++++---------- node/consensus/src/tests.rs | 26 +++++++++---------- node/messages/src/beacon_propose.rs | 22 +++++++--------- node/messages/src/beacon_timeout.rs | 22 +++++++--------- node/messages/src/beacon_vote.rs | 22 +++++++--------- node/messages/src/block_request.rs | 26 +++++++++---------- node/messages/src/block_response.rs | 22 +++++++--------- node/messages/src/challenge_request.rs | 26 +++++++++---------- node/messages/src/challenge_response.rs | 26 +++++++++---------- node/messages/src/disconnect.rs | 26 +++++++++---------- node/messages/src/helpers/block_locators.rs | 26 +++++++++---------- node/messages/src/helpers/codec.rs | 26 +++++++++---------- node/messages/src/helpers/data.rs | 22 +++++++--------- node/messages/src/helpers/disconnect.rs | 22 +++++++--------- node/messages/src/helpers/mod.rs | 26 +++++++++---------- node/messages/src/helpers/node_type.rs | 22 +++++++--------- node/messages/src/helpers/noise_codec.rs | 26 +++++++++---------- node/messages/src/lib.rs | 26 +++++++++---------- node/messages/src/peer_request.rs | 26 +++++++++---------- node/messages/src/peer_response.rs | 26 +++++++++---------- node/messages/src/ping.rs | 26 +++++++++---------- node/messages/src/pong.rs | 26 +++++++++---------- node/messages/src/puzzle_request.rs | 26 +++++++++---------- node/messages/src/puzzle_response.rs | 26 +++++++++---------- node/messages/src/unconfirmed_solution.rs | 26 +++++++++---------- node/messages/src/unconfirmed_transaction.rs | 26 +++++++++---------- node/metrics/src/lib.rs | 26 +++++++++---------- node/metrics/src/names.rs | 22 +++++++--------- node/rest/src/helpers/auth.rs | 26 +++++++++---------- node/rest/src/helpers/error.rs | 22 +++++++--------- node/rest/src/helpers/mod.rs | 22 +++++++--------- node/rest/src/lib.rs | 26 +++++++++---------- node/rest/src/routes.rs | 26 +++++++++---------- node/router/src/handshake.rs | 26 +++++++++---------- node/router/src/heartbeat.rs | 22 +++++++--------- node/router/src/helpers/cache.rs | 26 +++++++++---------- node/router/src/helpers/mod.rs | 22 +++++++--------- node/router/src/helpers/peer.rs | 26 +++++++++---------- node/router/src/helpers/resolver.rs | 26 +++++++++---------- node/router/src/helpers/sync.rs | 26 +++++++++---------- node/router/src/inbound.rs | 26 +++++++++---------- node/router/src/lib.rs | 26 +++++++++---------- node/router/src/outbound.rs | 26 +++++++++---------- node/router/src/routing.rs | 22 +++++++--------- node/router/tests/cleanups.rs | 26 +++++++++---------- node/router/tests/common/mod.rs | 26 +++++++++---------- node/router/tests/common/router.rs | 26 +++++++++---------- node/router/tests/connect.rs | 26 +++++++++---------- node/router/tests/disconnect.rs | 26 +++++++++---------- node/src/beacon/mod.rs | 26 +++++++++---------- node/src/beacon/router.rs | 22 +++++++--------- node/src/client/mod.rs | 22 +++++++--------- node/src/client/router.rs | 26 +++++++++---------- node/src/helpers.rs | 26 +++++++++---------- node/src/lib.rs | 26 +++++++++---------- node/src/prover/mod.rs | 22 +++++++--------- node/src/prover/router.rs | 26 +++++++++---------- node/src/traits.rs | 26 +++++++++---------- node/src/validator/mod.rs | 26 +++++++++---------- node/src/validator/router.rs | 26 +++++++++---------- node/tcp/src/helpers/config.rs | 22 +++++++--------- node/tcp/src/helpers/connections.rs | 26 +++++++++---------- node/tcp/src/helpers/known_peers.rs | 22 +++++++--------- node/tcp/src/helpers/mod.rs | 26 +++++++++---------- node/tcp/src/helpers/stats.rs | 22 +++++++--------- node/tcp/src/lib.rs | 26 +++++++++---------- node/tcp/src/protocols/disconnect.rs | 22 +++++++--------- node/tcp/src/protocols/handshake.rs | 26 +++++++++---------- node/tcp/src/protocols/mod.rs | 22 +++++++--------- node/tcp/src/protocols/on_connect.rs | 22 +++++++--------- node/tcp/src/protocols/reading.rs | 26 +++++++++---------- node/tcp/src/protocols/writing.rs | 26 +++++++++---------- node/tcp/src/tcp.rs | 26 +++++++++---------- node/tests/common/mod.rs | 26 +++++++++---------- node/tests/common/node.rs | 22 +++++++--------- node/tests/common/test_peer.rs | 26 +++++++++---------- node/tests/handshake.rs | 26 +++++++++---------- node/tests/peering.rs | 26 +++++++++---------- snarkos/main.rs | 22 +++++++--------- 110 files changed, 1254 insertions(+), 1474 deletions(-) diff --git a/.integration/src/lib.rs b/.integration/src/lib.rs index 3eac9012da..bd4dd7b675 100644 --- a/.integration/src/lib.rs +++ b/.integration/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![forbid(unsafe_code)] diff --git a/account/src/lib.rs b/account/src/lib.rs index b03b72bdcd..93eaae0855 100644 --- a/account/src/lib.rs +++ b/account/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![forbid(unsafe_code)] diff --git a/build.rs b/build.rs index c02a918a36..4abb8a6119 100644 --- a/build.rs +++ b/build.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use std::{fs::File, io::Read, path::Path}; diff --git a/cli/src/commands/account.rs b/cli/src/commands/account.rs index 89b22df898..8354df50ae 100644 --- a/cli/src/commands/account.rs +++ b/cli/src/commands/account.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkvm::console::{ account::PrivateKey, diff --git a/cli/src/commands/clean.rs b/cli/src/commands/clean.rs index 06ddb22bdd..eab55c78b4 100644 --- a/cli/src/commands/clean.rs +++ b/cli/src/commands/clean.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use anyhow::{bail, Result}; use clap::Parser; diff --git a/cli/src/commands/developer/decrypt.rs b/cli/src/commands/developer/decrypt.rs index e0ab54102b..4e1caeb83e 100644 --- a/cli/src/commands/developer/decrypt.rs +++ b/cli/src/commands/developer/decrypt.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::CurrentNetwork; diff --git a/cli/src/commands/developer/deploy.rs b/cli/src/commands/developer/deploy.rs index 25e4a5d5cd..3e35aca0b6 100644 --- a/cli/src/commands/developer/deploy.rs +++ b/cli/src/commands/developer/deploy.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::{CurrentNetwork, Developer}; diff --git a/cli/src/commands/developer/execute.rs b/cli/src/commands/developer/execute.rs index 8c8043eac7..428722901a 100644 --- a/cli/src/commands/developer/execute.rs +++ b/cli/src/commands/developer/execute.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::{CurrentNetwork, Developer, Program}; diff --git a/cli/src/commands/developer/mod.rs b/cli/src/commands/developer/mod.rs index 5c73a362b9..e91238f157 100644 --- a/cli/src/commands/developer/mod.rs +++ b/cli/src/commands/developer/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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 decrypt; pub use decrypt::*; diff --git a/cli/src/commands/developer/scan.rs b/cli/src/commands/developer/scan.rs index a1a1d1bde1..e8ba28d47b 100644 --- a/cli/src/commands/developer/scan.rs +++ b/cli/src/commands/developer/scan.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::CurrentNetwork; diff --git a/cli/src/commands/developer/transfer.rs b/cli/src/commands/developer/transfer.rs index 068c527229..d46674bdcd 100644 --- a/cli/src/commands/developer/transfer.rs +++ b/cli/src/commands/developer/transfer.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::{CurrentNetwork, Developer}; diff --git a/cli/src/commands/mod.rs b/cli/src/commands/mod.rs index f1bf9f1cc1..5cb6d0a9ca 100644 --- a/cli/src/commands/mod.rs +++ b/cli/src/commands/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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 account; pub use account::*; diff --git a/cli/src/commands/start.rs b/cli/src/commands/start.rs index b9a654244a..1182a69b6f 100644 --- a/cli/src/commands/start.rs +++ b/cli/src/commands/start.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkos_account::Account; use snarkos_display::Display; diff --git a/cli/src/commands/update.rs b/cli/src/commands/update.rs index 1ab25ea6d3..210b451e82 100644 --- a/cli/src/commands/update.rs +++ b/cli/src/commands/update.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use crate::helpers::Updater; diff --git a/cli/src/helpers/bech32m.rs b/cli/src/helpers/bech32m.rs index 2352d95d7b..3aaf9efd88 100644 --- a/cli/src/helpers/bech32m.rs +++ b/cli/src/helpers/bech32m.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. pub const BECH32M_CHARSET: &str = "qpzry9x8gf2tvdw0s3jn54khce6mua7l1"; diff --git a/cli/src/helpers/log_writer.rs b/cli/src/helpers/log_writer.rs index 4593851d09..4f76605bb7 100644 --- a/cli/src/helpers/log_writer.rs +++ b/cli/src/helpers/log_writer.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use std::io; use tokio::sync::mpsc; diff --git a/cli/src/helpers/logger.rs b/cli/src/helpers/logger.rs index 076983bdd1..5fe7132731 100644 --- a/cli/src/helpers/logger.rs +++ b/cli/src/helpers/logger.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use crate::helpers::LogWriter; diff --git a/cli/src/helpers/mod.rs b/cli/src/helpers/mod.rs index b7f7912616..e4891413e7 100644 --- a/cli/src/helpers/mod.rs +++ b/cli/src/helpers/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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 bech32m; pub use bech32m::*; diff --git a/cli/src/helpers/updater.rs b/cli/src/helpers/updater.rs index c773608a7f..40deb242f9 100644 --- a/cli/src/helpers/updater.rs +++ b/cli/src/helpers/updater.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use colored::Colorize; use self_update::{backends::github, version::bump_is_greater, Status}; diff --git a/cli/src/lib.rs b/cli/src/lib.rs index 955829bf3d..8bc0d19b9a 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. #![forbid(unsafe_code)] #![recursion_limit = "256"] diff --git a/display/src/lib.rs b/display/src/lib.rs index 16855a6b1b..2954b96e21 100644 --- a/display/src/lib.rs +++ b/display/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![forbid(unsafe_code)] diff --git a/display/src/pages/logs.rs b/display/src/pages/logs.rs index 8432497e96..87227e43d4 100644 --- a/display/src/pages/logs.rs +++ b/display/src/pages/logs.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use std::collections::VecDeque; use tokio::sync::mpsc; diff --git a/display/src/pages/mod.rs b/display/src/pages/mod.rs index c57b5afa98..f7b6dd4cc9 100644 --- a/display/src/pages/mod.rs +++ b/display/src/pages/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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 logs; pub(crate) use logs::Logs; diff --git a/display/src/pages/overview.rs b/display/src/pages/overview.rs index 3ed6a9ccb0..6e00823b29 100644 --- a/display/src/pages/overview.rs +++ b/display/src/pages/overview.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkos_node::Node; use snarkvm::prelude::Network; diff --git a/display/src/tabs.rs b/display/src/tabs.rs index 646c267627..57e2331cf6 100644 --- a/display/src/tabs.rs +++ b/display/src/tabs.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. pub(super) struct Tabs { pub titles: Vec<&'static str>, diff --git a/node/cdn/src/blocks.rs b/node/cdn/src/blocks.rs index eaffc00817..a7315143cd 100644 --- a/node/cdn/src/blocks.rs +++ b/node/cdn/src/blocks.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkvm::prelude::{ cow_to_copied, diff --git a/node/cdn/src/lib.rs b/node/cdn/src/lib.rs index 80970eb3b7..ae7ecc396e 100644 --- a/node/cdn/src/lib.rs +++ b/node/cdn/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. #![forbid(unsafe_code)] diff --git a/node/consensus/src/helpers/mod.rs b/node/consensus/src/helpers/mod.rs index 427d77e7ab..59f7458b85 100644 --- a/node/consensus/src/helpers/mod.rs +++ b/node/consensus/src/helpers/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/consensus/src/lib.rs b/node/consensus/src/lib.rs index 4fbbf61074..fdde13eea9 100644 --- a/node/consensus/src/lib.rs +++ b/node/consensus/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![forbid(unsafe_code)] diff --git a/node/consensus/src/memory_pool/mod.rs b/node/consensus/src/memory_pool/mod.rs index ab2f97f2fe..321d0a9036 100644 --- a/node/consensus/src/memory_pool/mod.rs +++ b/node/consensus/src/memory_pool/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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 solutions; mod transactions; diff --git a/node/consensus/src/memory_pool/solutions.rs b/node/consensus/src/memory_pool/solutions.rs index 198ee1e174..9be18f285e 100644 --- a/node/consensus/src/memory_pool/solutions.rs +++ b/node/consensus/src/memory_pool/solutions.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/consensus/src/memory_pool/transactions.rs b/node/consensus/src/memory_pool/transactions.rs index 2bd6dea04b..b89cd76287 100644 --- a/node/consensus/src/memory_pool/transactions.rs +++ b/node/consensus/src/memory_pool/transactions.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/consensus/src/tests.rs b/node/consensus/src/tests.rs index b97953593c..3687800a59 100644 --- a/node/consensus/src/tests.rs +++ b/node/consensus/src/tests.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkvm::{ console::{ diff --git a/node/messages/src/beacon_propose.rs b/node/messages/src/beacon_propose.rs index 67525909b1..dd8acd9e2c 100644 --- a/node/messages/src/beacon_propose.rs +++ b/node/messages/src/beacon_propose.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use super::*; diff --git a/node/messages/src/beacon_timeout.rs b/node/messages/src/beacon_timeout.rs index f3ac23a795..98c3d66923 100644 --- a/node/messages/src/beacon_timeout.rs +++ b/node/messages/src/beacon_timeout.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use super::*; diff --git a/node/messages/src/beacon_vote.rs b/node/messages/src/beacon_vote.rs index be59b94858..72b746c8f4 100644 --- a/node/messages/src/beacon_vote.rs +++ b/node/messages/src/beacon_vote.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use super::*; diff --git a/node/messages/src/block_request.rs b/node/messages/src/block_request.rs index 57c4775c23..6f9db2b6be 100644 --- a/node/messages/src/block_request.rs +++ b/node/messages/src/block_request.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/block_response.rs b/node/messages/src/block_response.rs index a1dd2700ea..45c7783723 100644 --- a/node/messages/src/block_response.rs +++ b/node/messages/src/block_response.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use super::*; diff --git a/node/messages/src/challenge_request.rs b/node/messages/src/challenge_request.rs index ca7d156058..3654649611 100644 --- a/node/messages/src/challenge_request.rs +++ b/node/messages/src/challenge_request.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/challenge_response.rs b/node/messages/src/challenge_response.rs index 19cd6c47e9..0c8e42b6b1 100644 --- a/node/messages/src/challenge_response.rs +++ b/node/messages/src/challenge_response.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/disconnect.rs b/node/messages/src/disconnect.rs index 62feefda3a..26f5832946 100644 --- a/node/messages/src/disconnect.rs +++ b/node/messages/src/disconnect.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/helpers/block_locators.rs b/node/messages/src/helpers/block_locators.rs index f182c17ba2..56ac1aecb3 100644 --- a/node/messages/src/helpers/block_locators.rs +++ b/node/messages/src/helpers/block_locators.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkvm::prelude::{has_duplicates, Network}; diff --git a/node/messages/src/helpers/codec.rs b/node/messages/src/helpers/codec.rs index d33efd2ca4..8a2b99d5d0 100644 --- a/node/messages/src/helpers/codec.rs +++ b/node/messages/src/helpers/codec.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use crate::Message; use snarkvm::prelude::Network; diff --git a/node/messages/src/helpers/data.rs b/node/messages/src/helpers/data.rs index ee96d88712..d17f55883c 100644 --- a/node/messages/src/helpers/data.rs +++ b/node/messages/src/helpers/data.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use snarkvm::prelude::{FromBytes, ToBytes}; diff --git a/node/messages/src/helpers/disconnect.rs b/node/messages/src/helpers/disconnect.rs index 2756e42d49..8813b68d89 100644 --- a/node/messages/src/helpers/disconnect.rs +++ b/node/messages/src/helpers/disconnect.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use serde::{Deserialize, Serialize}; diff --git a/node/messages/src/helpers/mod.rs b/node/messages/src/helpers/mod.rs index b7f7e9440b..ab813c03bd 100644 --- a/node/messages/src/helpers/mod.rs +++ b/node/messages/src/helpers/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. pub mod block_locators; pub use block_locators::*; diff --git a/node/messages/src/helpers/node_type.rs b/node/messages/src/helpers/node_type.rs index e6a3140f60..0d48c7a4a6 100644 --- a/node/messages/src/helpers/node_type.rs +++ b/node/messages/src/helpers/node_type.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use serde::{Deserialize, Serialize}; diff --git a/node/messages/src/helpers/noise_codec.rs b/node/messages/src/helpers/noise_codec.rs index c416db0b7b..64f062411b 100644 --- a/node/messages/src/helpers/noise_codec.rs +++ b/node/messages/src/helpers/noise_codec.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use std::{io, sync::Arc}; diff --git a/node/messages/src/lib.rs b/node/messages/src/lib.rs index 2e49899433..e0baef0ea0 100644 --- a/node/messages/src/lib.rs +++ b/node/messages/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![forbid(unsafe_code)] diff --git a/node/messages/src/peer_request.rs b/node/messages/src/peer_request.rs index c99f3e9359..e4ed95b96a 100644 --- a/node/messages/src/peer_request.rs +++ b/node/messages/src/peer_request.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/peer_response.rs b/node/messages/src/peer_response.rs index 63bd0cb5f3..a39f349feb 100644 --- a/node/messages/src/peer_response.rs +++ b/node/messages/src/peer_response.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/ping.rs b/node/messages/src/ping.rs index e7e4917e93..f8436d153d 100644 --- a/node/messages/src/ping.rs +++ b/node/messages/src/ping.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/pong.rs b/node/messages/src/pong.rs index b189caa177..c573051d11 100644 --- a/node/messages/src/pong.rs +++ b/node/messages/src/pong.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/puzzle_request.rs b/node/messages/src/puzzle_request.rs index 7f0f64edd8..e9349e65b1 100644 --- a/node/messages/src/puzzle_request.rs +++ b/node/messages/src/puzzle_request.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/puzzle_response.rs b/node/messages/src/puzzle_response.rs index b871e81e8b..cd5ae9af36 100644 --- a/node/messages/src/puzzle_response.rs +++ b/node/messages/src/puzzle_response.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/unconfirmed_solution.rs b/node/messages/src/unconfirmed_solution.rs index e7ce2ee62a..3ef36e9e34 100644 --- a/node/messages/src/unconfirmed_solution.rs +++ b/node/messages/src/unconfirmed_solution.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/messages/src/unconfirmed_transaction.rs b/node/messages/src/unconfirmed_transaction.rs index 19cf92fe40..c7a5235699 100644 --- a/node/messages/src/unconfirmed_transaction.rs +++ b/node/messages/src/unconfirmed_transaction.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/metrics/src/lib.rs b/node/metrics/src/lib.rs index a7f67963ba..a35e4f9665 100644 --- a/node/metrics/src/lib.rs +++ b/node/metrics/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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 names; diff --git a/node/metrics/src/names.rs b/node/metrics/src/names.rs index d8c6d85fd8..10ba3539ae 100644 --- a/node/metrics/src/names.rs +++ b/node/metrics/src/names.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. pub const GAUGE_NAMES: [&str; 4] = [blocks::HEIGHT, peers::CONNECTED, peers::CANDIDATE, peers::RESTRICTED]; diff --git a/node/rest/src/helpers/auth.rs b/node/rest/src/helpers/auth.rs index 770a90db8d..dd79887afc 100644 --- a/node/rest/src/helpers/auth.rs +++ b/node/rest/src/helpers/auth.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkvm::prelude::*; diff --git a/node/rest/src/helpers/error.rs b/node/rest/src/helpers/error.rs index 8250a1ce03..21fb803801 100644 --- a/node/rest/src/helpers/error.rs +++ b/node/rest/src/helpers/error.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use axum::{ http::StatusCode, diff --git a/node/rest/src/helpers/mod.rs b/node/rest/src/helpers/mod.rs index f31bc5f22b..701de0c92a 100644 --- a/node/rest/src/helpers/mod.rs +++ b/node/rest/src/helpers/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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 auth; pub use auth::*; diff --git a/node/rest/src/lib.rs b/node/rest/src/lib.rs index 78a2cc191b..84187840e6 100644 --- a/node/rest/src/lib.rs +++ b/node/rest/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![forbid(unsafe_code)] diff --git a/node/rest/src/routes.rs b/node/rest/src/routes.rs index b3dfd006f4..bf03f8b506 100644 --- a/node/rest/src/routes.rs +++ b/node/rest/src/routes.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/router/src/handshake.rs b/node/router/src/handshake.rs index 4584c3a184..9b548dd3c7 100644 --- a/node/router/src/handshake.rs +++ b/node/router/src/handshake.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use crate::{Peer, Router}; use snarkos_node_messages::{ diff --git a/node/router/src/heartbeat.rs b/node/router/src/heartbeat.rs index 5f46c56d1a..f6a4bd0a31 100644 --- a/node/router/src/heartbeat.rs +++ b/node/router/src/heartbeat.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use crate::{Outbound, Router, REDUNDANCY_FACTOR}; use snarkos_node_messages::{DisconnectReason, Message, PeerRequest, PuzzleRequest}; diff --git a/node/router/src/helpers/cache.rs b/node/router/src/helpers/cache.rs index 1f9334464e..290f1fac4a 100644 --- a/node/router/src/helpers/cache.rs +++ b/node/router/src/helpers/cache.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkos_node_messages::BlockRequest; use snarkvm::prelude::{Network, PuzzleCommitment}; diff --git a/node/router/src/helpers/mod.rs b/node/router/src/helpers/mod.rs index 0379400125..ab1ac941d2 100644 --- a/node/router/src/helpers/mod.rs +++ b/node/router/src/helpers/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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 cache; pub use cache::Cache; diff --git a/node/router/src/helpers/peer.rs b/node/router/src/helpers/peer.rs index 9b2c8549bb..4ad5da41ac 100644 --- a/node/router/src/helpers/peer.rs +++ b/node/router/src/helpers/peer.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkos_node_messages::{ChallengeRequest, NodeType}; use snarkvm::prelude::{Address, Network}; diff --git a/node/router/src/helpers/resolver.rs b/node/router/src/helpers/resolver.rs index 52ce0885a4..c4a6fa1dd3 100644 --- a/node/router/src/helpers/resolver.rs +++ b/node/router/src/helpers/resolver.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use indexmap::IndexMap; use parking_lot::RwLock; diff --git a/node/router/src/helpers/sync.rs b/node/router/src/helpers/sync.rs index 17d2edc0ec..1d75c218a2 100644 --- a/node/router/src/helpers/sync.rs +++ b/node/router/src/helpers/sync.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkos_node_messages::BlockLocators; use snarkvm::prelude::{Block, Network}; diff --git a/node/router/src/inbound.rs b/node/router/src/inbound.rs index 21b38fe6e0..499e997dda 100644 --- a/node/router/src/inbound.rs +++ b/node/router/src/inbound.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use crate::{Outbound, Peer}; use snarkos_node_messages::{ diff --git a/node/router/src/lib.rs b/node/router/src/lib.rs index a15be72f35..f5f07dcddf 100644 --- a/node/router/src/lib.rs +++ b/node/router/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![forbid(unsafe_code)] diff --git a/node/router/src/outbound.rs b/node/router/src/outbound.rs index f3057993da..ebe6abe3e7 100644 --- a/node/router/src/outbound.rs +++ b/node/router/src/outbound.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use crate::Router; use snarkos_node_messages::{BlockLocators, Message, Ping}; diff --git a/node/router/src/routing.rs b/node/router/src/routing.rs index 3c1f4e8b56..daacef4589 100644 --- a/node/router/src/routing.rs +++ b/node/router/src/routing.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use crate::{Heartbeat, Inbound, Outbound}; use snarkos_node_messages::Message; diff --git a/node/router/tests/cleanups.rs b/node/router/tests/cleanups.rs index 5368396e88..763758ead3 100644 --- a/node/router/tests/cleanups.rs +++ b/node/router/tests/cleanups.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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 common; use common::*; diff --git a/node/router/tests/common/mod.rs b/node/router/tests/common/mod.rs index b1757d48d9..dacbee934a 100644 --- a/node/router/tests/common/mod.rs +++ b/node/router/tests/common/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #[allow(dead_code)] pub mod router; diff --git a/node/router/tests/common/router.rs b/node/router/tests/common/router.rs index 3165bf071b..e466fba827 100644 --- a/node/router/tests/common/router.rs +++ b/node/router/tests/common/router.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use crate::common::sample_genesis_block; use snarkos_node_messages::{ diff --git a/node/router/tests/connect.rs b/node/router/tests/connect.rs index e511283e4c..56922a1a4c 100644 --- a/node/router/tests/connect.rs +++ b/node/router/tests/connect.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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 common; use common::*; diff --git a/node/router/tests/disconnect.rs b/node/router/tests/disconnect.rs index 3fd5aefa89..92b5ce4a09 100644 --- a/node/router/tests/disconnect.rs +++ b/node/router/tests/disconnect.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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 common; use common::*; diff --git a/node/src/beacon/mod.rs b/node/src/beacon/mod.rs index a90c35889c..1539dcbc37 100644 --- a/node/src/beacon/mod.rs +++ b/node/src/beacon/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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 router; diff --git a/node/src/beacon/router.rs b/node/src/beacon/router.rs index c9dfbb90a6..d15b127536 100644 --- a/node/src/beacon/router.rs +++ b/node/src/beacon/router.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use super::*; diff --git a/node/src/client/mod.rs b/node/src/client/mod.rs index 20578e7571..6ba0af638f 100644 --- a/node/src/client/mod.rs +++ b/node/src/client/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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 router; diff --git a/node/src/client/router.rs b/node/src/client/router.rs index c8a540d7df..c1713912da 100644 --- a/node/src/client/router.rs +++ b/node/src/client/router.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/src/helpers.rs b/node/src/helpers.rs index 14fed19e06..71dddee303 100644 --- a/node/src/helpers.rs +++ b/node/src/helpers.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkos_node_messages::{BlockLocators, CHECKPOINT_INTERVAL, NUM_RECENTS}; use snarkvm::prelude::{ConsensusStorage, Ledger, Network}; diff --git a/node/src/lib.rs b/node/src/lib.rs index 0eede94bd7..2bd41fa781 100644 --- a/node/src/lib.rs +++ b/node/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![forbid(unsafe_code)] #![recursion_limit = "256"] diff --git a/node/src/prover/mod.rs b/node/src/prover/mod.rs index 8b6dd235f5..0a8012c96e 100644 --- a/node/src/prover/mod.rs +++ b/node/src/prover/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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 router; diff --git a/node/src/prover/router.rs b/node/src/prover/router.rs index 801b0275c2..5603344037 100644 --- a/node/src/prover/router.rs +++ b/node/src/prover/router.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/src/traits.rs b/node/src/traits.rs index 2372d1df2e..743754e063 100644 --- a/node/src/traits.rs +++ b/node/src/traits.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkos_node_messages::NodeType; use snarkos_node_router::Routing; diff --git a/node/src/validator/mod.rs b/node/src/validator/mod.rs index 07e0603270..165934f345 100644 --- a/node/src/validator/mod.rs +++ b/node/src/validator/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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 router; diff --git a/node/src/validator/router.rs b/node/src/validator/router.rs index e5efbb4c5d..c1f464eb61 100644 --- a/node/src/validator/router.rs +++ b/node/src/validator/router.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use super::*; diff --git a/node/tcp/src/helpers/config.rs b/node/tcp/src/helpers/config.rs index 6904cb5147..66fb0f1b12 100644 --- a/node/tcp/src/helpers/config.rs +++ b/node/tcp/src/helpers/config.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use std::{ io::{self, ErrorKind::*}, diff --git a/node/tcp/src/helpers/connections.rs b/node/tcp/src/helpers/connections.rs index 3b22a51090..3f071edfc9 100644 --- a/node/tcp/src/helpers/connections.rs +++ b/node/tcp/src/helpers/connections.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. //! Objects associated with connection handling. diff --git a/node/tcp/src/helpers/known_peers.rs b/node/tcp/src/helpers/known_peers.rs index 404cfedcd3..e9bac8b4dd 100644 --- a/node/tcp/src/helpers/known_peers.rs +++ b/node/tcp/src/helpers/known_peers.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use std::{collections::HashMap, net::SocketAddr, sync::Arc}; diff --git a/node/tcp/src/helpers/mod.rs b/node/tcp/src/helpers/mod.rs index c3f315d8fc..7a3534e4d4 100644 --- a/node/tcp/src/helpers/mod.rs +++ b/node/tcp/src/helpers/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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 config; pub use config::Config; diff --git a/node/tcp/src/helpers/stats.rs b/node/tcp/src/helpers/stats.rs index 50ab6eb804..15d1f16837 100644 --- a/node/tcp/src/helpers/stats.rs +++ b/node/tcp/src/helpers/stats.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use std::sync::atomic::{AtomicU64, Ordering::Relaxed}; diff --git a/node/tcp/src/lib.rs b/node/tcp/src/lib.rs index 662d35dd32..53e7bbf20f 100644 --- a/node/tcp/src/lib.rs +++ b/node/tcp/src/lib.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![deny(missing_docs)] #![deny(unsafe_code)] diff --git a/node/tcp/src/protocols/disconnect.rs b/node/tcp/src/protocols/disconnect.rs index bdd0f2382b..7da4681b38 100644 --- a/node/tcp/src/protocols/disconnect.rs +++ b/node/tcp/src/protocols/disconnect.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use std::net::SocketAddr; diff --git a/node/tcp/src/protocols/handshake.rs b/node/tcp/src/protocols/handshake.rs index 51d4392793..7291e6b315 100644 --- a/node/tcp/src/protocols/handshake.rs +++ b/node/tcp/src/protocols/handshake.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use std::{io, time::Duration}; diff --git a/node/tcp/src/protocols/mod.rs b/node/tcp/src/protocols/mod.rs index bdc6e80fa8..ed0bf59778 100644 --- a/node/tcp/src/protocols/mod.rs +++ b/node/tcp/src/protocols/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. //! Opt-in protocols available to the node; each protocol is expected to spawn its own task that runs throughout the //! node's lifetime and handles a specific functionality. The communication with these tasks is done via dedicated diff --git a/node/tcp/src/protocols/on_connect.rs b/node/tcp/src/protocols/on_connect.rs index 42718028ca..3f26ae3031 100644 --- a/node/tcp/src/protocols/on_connect.rs +++ b/node/tcp/src/protocols/on_connect.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. //! Opt-in protocols available to the node; each protocol is expected to spawn its own task that runs throughout the //! node's lifetime and handles a specific functionality. The communication with these tasks is done via dedicated diff --git a/node/tcp/src/protocols/reading.rs b/node/tcp/src/protocols/reading.rs index b36c920e70..8d4505f688 100644 --- a/node/tcp/src/protocols/reading.rs +++ b/node/tcp/src/protocols/reading.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use std::{io, net::SocketAddr}; diff --git a/node/tcp/src/protocols/writing.rs b/node/tcp/src/protocols/writing.rs index d3a9cc9076..d69f84184f 100644 --- a/node/tcp/src/protocols/writing.rs +++ b/node/tcp/src/protocols/writing.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use std::{any::Any, collections::HashMap, io, net::SocketAddr, sync::Arc}; diff --git a/node/tcp/src/tcp.rs b/node/tcp/src/tcp.rs index 153d6b8d72..3a7fd42ec4 100644 --- a/node/tcp/src/tcp.rs +++ b/node/tcp/src/tcp.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use std::{ collections::HashSet, diff --git a/node/tests/common/mod.rs b/node/tests/common/mod.rs index ce51dfbc87..c6e19f50c4 100644 --- a/node/tests/common/mod.rs +++ b/node/tests/common/mod.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. pub mod node; pub mod test_peer; diff --git a/node/tests/common/node.rs b/node/tests/common/node.rs index 12a266c64e..efc0ac69f4 100644 --- a/node/tests/common/node.rs +++ b/node/tests/common/node.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use crate::common::test_peer::sample_genesis_block; use snarkos_account::Account; diff --git a/node/tests/common/test_peer.rs b/node/tests/common/test_peer.rs index 612b672508..a38e631e7a 100644 --- a/node/tests/common/test_peer.rs +++ b/node/tests/common/test_peer.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. use snarkos_account::Account; use snarkos_node_messages::{ChallengeRequest, ChallengeResponse, Data, Message, MessageCodec, MessageTrait, NodeType}; diff --git a/node/tests/handshake.rs b/node/tests/handshake.rs index 47eeb4c7de..b1a1fac16f 100644 --- a/node/tests/handshake.rs +++ b/node/tests/handshake.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![recursion_limit = "256"] diff --git a/node/tests/peering.rs b/node/tests/peering.rs index f5edc24758..d0ff54410f 100644 --- a/node/tests/peering.rs +++ b/node/tests/peering.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. - -// The snarkOS library 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. - -// The snarkOS library 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 the snarkOS library. If not, see . +// This file is part of the snarkVM library. + +// 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. #![recursion_limit = "256"] diff --git a/snarkos/main.rs b/snarkos/main.rs index df6922d0f1..4f8b4740b9 100644 --- a/snarkos/main.rs +++ b/snarkos/main.rs @@ -1,18 +1,16 @@ // Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the snarkOS library. +// This file is part of the snarkVM library. -// The snarkOS library 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. +// 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 -// The snarkOS library 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 the snarkOS library. If not, see . +// 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. use snarkos_cli::{commands::CLI, helpers::Updater};