From 81f0a56ebdecff3fc97ed9096f5b39919e2a6e3e Mon Sep 17 00:00:00 2001 From: kdeme Date: Tue, 11 May 2021 09:37:33 +0200 Subject: [PATCH] Add/update bunch of license headers --- eth/p2p.nim | 15 ++++++--------- eth/p2p/blockchain_sync.nim | 7 +++++++ eth/p2p/blockchain_utils.nim | 7 +++++++ eth/p2p/peer_pool.nim | 7 +++++++ eth/p2p/private/p2p_types.nim | 7 +++++++ eth/p2p/rlpx.nim | 7 +++++++ eth/p2p/rlpx_protocols/whisper/whisper_types.nim | 15 ++++++--------- eth/p2p/rlpx_protocols/whisper_protocol.nim | 15 ++++++--------- 8 files changed, 53 insertions(+), 27 deletions(-) diff --git a/eth/p2p.nim b/eth/p2p.nim index fe0a8ca..4dca3fb 100644 --- a/eth/p2p.nim +++ b/eth/p2p.nim @@ -1,12 +1,9 @@ -# -# Ethereum P2P -# (c) Copyright 2018 -# Status Research & Development GmbH -# -# Licensed under either of -# Apache License, version 2.0, (LICENSE-APACHEv2) -# MIT license (LICENSE-MIT) -# +# nim-eth +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. import std/[tables, algorithm, random], diff --git a/eth/p2p/blockchain_sync.nim b/eth/p2p/blockchain_sync.nim index 7819b11..6e7643d 100644 --- a/eth/p2p/blockchain_sync.nim +++ b/eth/p2p/blockchain_sync.nim @@ -1,3 +1,10 @@ +# nim-eth +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + import std/[sets, options, random, hashes], chronos, chronicles, diff --git a/eth/p2p/blockchain_utils.nim b/eth/p2p/blockchain_utils.nim index 99d265f..6de1a52 100644 --- a/eth/p2p/blockchain_utils.nim +++ b/eth/p2p/blockchain_utils.nim @@ -1,3 +1,10 @@ +# nim-eth +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + import eth/common/[eth_types, state_accessors] diff --git a/eth/p2p/peer_pool.nim b/eth/p2p/peer_pool.nim index 56bc28b..8b516d6 100644 --- a/eth/p2p/peer_pool.nim +++ b/eth/p2p/peer_pool.nim @@ -1,3 +1,10 @@ +# nim-eth +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + # PeerPool attempts to keep connections to at least min_peers # on the given network. diff --git a/eth/p2p/private/p2p_types.nim b/eth/p2p/private/p2p_types.nim index 53f4c15..e0bb925 100644 --- a/eth/p2p/private/p2p_types.nim +++ b/eth/p2p/private/p2p_types.nim @@ -1,3 +1,10 @@ +# nim-eth +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + import std/[deques, tables], bearssl, chronos, diff --git a/eth/p2p/rlpx.nim b/eth/p2p/rlpx.nim index 902335e..28e6841 100644 --- a/eth/p2p/rlpx.nim +++ b/eth/p2p/rlpx.nim @@ -1,3 +1,10 @@ +# nim-eth +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + import std/[tables, algorithm, deques, hashes, options, typetraits], stew/shims/macros, chronicles, nimcrypto, chronos, diff --git a/eth/p2p/rlpx_protocols/whisper/whisper_types.nim b/eth/p2p/rlpx_protocols/whisper/whisper_types.nim index 5a91dc4..20af9a5 100644 --- a/eth/p2p/rlpx_protocols/whisper/whisper_types.nim +++ b/eth/p2p/rlpx_protocols/whisper/whisper_types.nim @@ -1,12 +1,9 @@ -# -# Whisper -# (c) Copyright 2018-2019 -# Status Research & Development GmbH -# -# Licensed under either of -# Apache License, version 2.0, (LICENSE-APACHEv2) -# MIT license (LICENSE-MIT) -# +# nim-eth - Whisper +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. import std/[algorithm, bitops, math, options, tables, times, hashes], diff --git a/eth/p2p/rlpx_protocols/whisper_protocol.nim b/eth/p2p/rlpx_protocols/whisper_protocol.nim index 4330b76..59ead25 100644 --- a/eth/p2p/rlpx_protocols/whisper_protocol.nim +++ b/eth/p2p/rlpx_protocols/whisper_protocol.nim @@ -1,12 +1,9 @@ -# -# Whisper -# (c) Copyright 2018-2019 -# Status Research & Development GmbH -# -# Licensed under either of -# Apache License, version 2.0, (LICENSE-APACHEv2) -# MIT license (LICENSE-MIT) -# +# nim-eth - Whisper +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. ## Whisper ## *******