diff --git a/app/ProcessCpuProfiler.ts b/app/ProcessCpuProfiler.ts index 31bbf45117b8a38b3b5a6e447f1896025738a2a2..163f784307dba1c7a37a2527abc030dfd0c34c44 100644 --- a/app/ProcessCpuProfiler.ts +++ b/app/ProcessCpuProfiler.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + const SAMPLING_PERIOD = 150 // milliseconds const MAX_SAMPLES_DISTANCE = 20 * 1000000 // seconds diff --git a/app/cli.ts b/app/cli.ts index 887724f418e72399566968f7c645c14fb0c2598d..0060f3718be8a6d7f45749efa228847ec27076e0 100644 --- a/app/cli.ts +++ b/app/cli.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + const Command = require('commander').Command; const pjson = require('../package.json'); const duniter = require('../index'); diff --git a/app/lib/blockchain/BasicBlockchain.ts b/app/lib/blockchain/BasicBlockchain.ts index dbf9fbabdc496accefed78583990709b6c529baf..40cd0d668fb5fd2c1d71c06539038ec22ff4cea0 100644 --- a/app/lib/blockchain/BasicBlockchain.ts +++ b/app/lib/blockchain/BasicBlockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" import {BlockchainOperator} from "./interfaces/BlockchainOperator" diff --git a/app/lib/blockchain/DuniterBlockchain.ts b/app/lib/blockchain/DuniterBlockchain.ts index 0b446a7375ca4d8fe4daa701f28e86eb54edbe34..6d1ca03215a8d2eefdc530e375530ea572c3d37b 100644 --- a/app/lib/blockchain/DuniterBlockchain.ts +++ b/app/lib/blockchain/DuniterBlockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {MiscIndexedBlockchain} from "./MiscIndexedBlockchain" import {IindexEntry, IndexEntry, Indexer, MindexEntry, SindexEntry} from "../indexer" import {BlockchainOperator} from "./interfaces/BlockchainOperator" diff --git a/app/lib/blockchain/IndexedBlockchain.ts b/app/lib/blockchain/IndexedBlockchain.ts index 2545c3b660f3dd26be87782d456536580a94b89d..dd81222d526e201922e47a47cdef90f666c212ba 100644 --- a/app/lib/blockchain/IndexedBlockchain.ts +++ b/app/lib/blockchain/IndexedBlockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" import {BasicBlockchain} from "./BasicBlockchain" import {IndexOperator} from "./interfaces/IndexOperator" diff --git a/app/lib/blockchain/MiscIndexedBlockchain.ts b/app/lib/blockchain/MiscIndexedBlockchain.ts index dbde55274aa6eca25fe8b7ea328c5823fdcc8141..5f881ba0d0dad2f6dea1b27a734c5c4949e02cc3 100644 --- a/app/lib/blockchain/MiscIndexedBlockchain.ts +++ b/app/lib/blockchain/MiscIndexedBlockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" import {IndexedBlockchain} from "./IndexedBlockchain" import {SQLIndex} from "./SqlIndex" diff --git a/app/lib/blockchain/SqlBlockchain.ts b/app/lib/blockchain/SqlBlockchain.ts index 7b474199b11c68814f60de435197e7158cdb79d6..84d2f5b97fac12abe67e335d692e1a8845ff58c0 100644 --- a/app/lib/blockchain/SqlBlockchain.ts +++ b/app/lib/blockchain/SqlBlockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" import {BlockchainOperator} from "./interfaces/BlockchainOperator" diff --git a/app/lib/blockchain/SqlIndex.ts b/app/lib/blockchain/SqlIndex.ts index 60ca27de52126e4e64c5e15005f1576c10e3d366..53cb379c94934e700abc4bab8097691533085db4 100644 --- a/app/lib/blockchain/SqlIndex.ts +++ b/app/lib/blockchain/SqlIndex.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" import {IndexOperator} from "./interfaces/IndexOperator" import {AbstractIndex} from "../dal/sqliteDAL/AbstractIndex"; diff --git a/app/lib/blockchain/Switcher.ts b/app/lib/blockchain/Switcher.ts index e6ae9892390d004a2c4455f077cb87c5e56612f6..4346fd1af0c8a1e5ef95f19f9b0994e35de0692f 100644 --- a/app/lib/blockchain/Switcher.ts +++ b/app/lib/blockchain/Switcher.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BlockDTO} from "../dto/BlockDTO" export interface SwitchBlock { diff --git a/app/lib/blockchain/interfaces/BlockchainOperator.ts b/app/lib/blockchain/interfaces/BlockchainOperator.ts index 12e96f11a481dfbf8fd2a3361d74ebca52c21486..f3f50177b91ea18f8598742f516bc76f601c4b55 100644 --- a/app/lib/blockchain/interfaces/BlockchainOperator.ts +++ b/app/lib/blockchain/interfaces/BlockchainOperator.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" export interface BlockchainOperator { diff --git a/app/lib/blockchain/interfaces/IndexOperator.ts b/app/lib/blockchain/interfaces/IndexOperator.ts index 9a5eb5a4271e2b93ab37137c636f7785a15bab7f..57b475d630fa753a04713bd904b7d29b89bc8951 100644 --- a/app/lib/blockchain/interfaces/IndexOperator.ts +++ b/app/lib/blockchain/interfaces/IndexOperator.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" export interface IndexOperator { diff --git a/app/lib/common-libs/buid.ts b/app/lib/common-libs/buid.ts index 3e2be9cb63f26cb8026f7beecd972d6cf581c674..d5d2be517902f352e4bb6654832bc53f57482431 100644 --- a/app/lib/common-libs/buid.ts +++ b/app/lib/common-libs/buid.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const BLOCK_UID = /^(0|[1-9]\d{0,18})-[A-F0-9]{64}$/; diff --git a/app/lib/common-libs/constants.ts b/app/lib/common-libs/constants.ts index e1be3f6661f221523d06aad8460cb82d3c36f6a4..54d3d879b74569eb1e04ee0c51ac8e8e0bc8abd2 100644 --- a/app/lib/common-libs/constants.ts +++ b/app/lib/common-libs/constants.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const CURRENCY = "[a-zA-Z0-9-_ ]{2,50}" diff --git a/app/lib/common-libs/crypto/base58.ts b/app/lib/common-libs/crypto/base58.ts index 61e710cc379b9a88b0abb2aae4b9326e1943fbe3..3244b48b720f7602565e81a049ae6d4a2d0354c1 100644 --- a/app/lib/common-libs/crypto/base58.ts +++ b/app/lib/common-libs/crypto/base58.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + const bs58 = require('bs58') export const Base58encode = (bytes:any) => bs58.encode(bytes) diff --git a/app/lib/common-libs/crypto/keyring.ts b/app/lib/common-libs/crypto/keyring.ts index 1427a7e55effda9291f92af99d0e4f00d64a2939..f4db4b383dec7902215f36a88cacfdd1d175591d 100644 --- a/app/lib/common-libs/crypto/keyring.ts +++ b/app/lib/common-libs/crypto/keyring.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Base58decode, Base58encode} from "./base58" import {decodeBase64, decodeUTF8, encodeBase64} from "./nacl-util" diff --git a/app/lib/common-libs/crypto/nacl-util.ts b/app/lib/common-libs/crypto/nacl-util.ts index 6ecb795f4d3206b02a3e59b68794425105a70fa5..b381860b101da1b28c527eeab18071088ee83d04 100644 --- a/app/lib/common-libs/crypto/nacl-util.ts +++ b/app/lib/common-libs/crypto/nacl-util.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + declare function escape(s:string): string; declare function unescape(s:string): string; diff --git a/app/lib/common-libs/dos2unix.ts b/app/lib/common-libs/dos2unix.ts index cf7ee5ebc996fa6212e5ab5fafe26cca0488c9a6..e319feace52dead71eec20c430040a523a3e8d39 100644 --- a/app/lib/common-libs/dos2unix.ts +++ b/app/lib/common-libs/dos2unix.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export function dos2unix(str:string) { return str.replace(/\r\n/g, '\n') } diff --git a/app/lib/common-libs/index.ts b/app/lib/common-libs/index.ts index 5ff95cdec843ec64925ce75561b2f03083a56747..856bc80fb7eeb58b8e66ebd4ddbd66ebc4b9c7d3 100644 --- a/app/lib/common-libs/index.ts +++ b/app/lib/common-libs/index.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as rawer from './rawer' import {Base58decode, Base58encode} from "./crypto/base58" import {unlock as txunlock} from "./txunlock" diff --git a/app/lib/common-libs/parsers/GenericParser.ts b/app/lib/common-libs/parsers/GenericParser.ts index 551e80345566e3d7c6db2452b5edc6bf3a055aba..a030846f5ad6717e19caf7a9029a04d93f7c1578 100644 --- a/app/lib/common-libs/parsers/GenericParser.ts +++ b/app/lib/common-libs/parsers/GenericParser.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../../../lib/common-libs/constants" import * as stream from "stream" import {hashf} from "../../../lib/common" diff --git a/app/lib/common-libs/parsers/block.ts b/app/lib/common-libs/parsers/block.ts index e0aef2ec6d1c642a2382c90299651f9421940187..343095f485c87a77a7f6a79c6e52ecf5f9901ed1 100644 --- a/app/lib/common-libs/parsers/block.ts +++ b/app/lib/common-libs/parsers/block.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../../../lib/common-libs/constants" import {GenericParser} from "./GenericParser" import {hashf} from "../../../lib/common" diff --git a/app/lib/common-libs/parsers/certification.ts b/app/lib/common-libs/parsers/certification.ts index 61e7541307dfcc4fe8adfcdf04e3edd2035e52ec..ed7f517cf6face9884189bc11000fd3449d65d5e 100644 --- a/app/lib/common-libs/parsers/certification.ts +++ b/app/lib/common-libs/parsers/certification.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../../../lib/common-libs/constants" import {GenericParser} from "./GenericParser" import {rawer} from "../../../lib/common-libs/index" diff --git a/app/lib/common-libs/parsers/identity.ts b/app/lib/common-libs/parsers/identity.ts index eed67d9098b5fba8671069e3078280f2a914c9fd..309f7722a0828def4d51dddb60ecf069872f834e 100644 --- a/app/lib/common-libs/parsers/identity.ts +++ b/app/lib/common-libs/parsers/identity.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {GenericParser} from "./GenericParser" import {CommonConstants} from "../../../lib/common-libs/constants" import {hashf} from "../../../lib/common" diff --git a/app/lib/common-libs/parsers/index.ts b/app/lib/common-libs/parsers/index.ts index fdf5e42c17f3597a9508f658461a98a40ada1446..520a96a603ede3056b4bf28d4d0cd8b4e84a7188 100644 --- a/app/lib/common-libs/parsers/index.ts +++ b/app/lib/common-libs/parsers/index.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BlockParser} from "./block" import {CertificationParser} from "./certification" import {IdentityParser} from "./identity" diff --git a/app/lib/common-libs/parsers/membership.ts b/app/lib/common-libs/parsers/membership.ts index 25c3c5cc3cbc2dc16da74b1b15c11ac9b9b1b938..c05224931ae23695be6c9bd98ce8de11e5a1ee02 100644 --- a/app/lib/common-libs/parsers/membership.ts +++ b/app/lib/common-libs/parsers/membership.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../../../lib/common-libs/constants" import {GenericParser} from "./GenericParser" import {rawer} from "../../../lib/common-libs/index" diff --git a/app/lib/common-libs/parsers/peer.ts b/app/lib/common-libs/parsers/peer.ts index 57c71591eb925a10cffa1b42813884f7a170cf2f..67ddb9ad327f87d825494886555df8bd241ee28d 100644 --- a/app/lib/common-libs/parsers/peer.ts +++ b/app/lib/common-libs/parsers/peer.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {GenericParser} from "./GenericParser" import {CommonConstants} from "../../../lib/common-libs/constants" import {rawer} from "../../../lib/common-libs/index" diff --git a/app/lib/common-libs/parsers/revocation.ts b/app/lib/common-libs/parsers/revocation.ts index c70580237467b2ddddff9dd7c58f265c4b6e1ef1..9f253c6b787683081b6b189190e966ccb69ce277 100644 --- a/app/lib/common-libs/parsers/revocation.ts +++ b/app/lib/common-libs/parsers/revocation.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../../../lib/common-libs/constants" import {GenericParser} from "./GenericParser" import {hashf} from "../../../lib/common" diff --git a/app/lib/common-libs/parsers/transaction.ts b/app/lib/common-libs/parsers/transaction.ts index e7c96e93e65f157a009988e87847b8f8a26c9c84..fc8bf5033541eb986c995c732a7845498ed707d7 100644 --- a/app/lib/common-libs/parsers/transaction.ts +++ b/app/lib/common-libs/parsers/transaction.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../constants" import {GenericParser} from "./GenericParser" import {rawer} from "../../../lib/common-libs/index" diff --git a/app/lib/common-libs/randomPick.ts b/app/lib/common-libs/randomPick.ts index fa64c73deb0650ffdb80e2144d33e3a31d0ea5d3..ccd912754e15840a089ef5ca35d641d4e1be8bf1 100644 --- a/app/lib/common-libs/randomPick.ts +++ b/app/lib/common-libs/randomPick.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export const randomPick = <T>(elements:T[], max:number) => { const chosen:T[] = [] diff --git a/app/lib/common-libs/rawer.ts b/app/lib/common-libs/rawer.ts index 8760b244c1c9bfc65ed1fe61563a527ec111fdce..568199c92a3a68b1db6c3666b8d0f2dd7ea2a576 100644 --- a/app/lib/common-libs/rawer.ts +++ b/app/lib/common-libs/rawer.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {dos2unix} from "./dos2unix" import {PeerDTO} from "../dto/PeerDTO" import {IdentityDTO} from "../dto/IdentityDTO" diff --git a/app/lib/common-libs/txunlock.ts b/app/lib/common-libs/txunlock.ts index f37f88a2bcca845c9d7b6e87f06fb6677447436c..bde87663a909cbd715f953032a88ece16632b3b5 100644 --- a/app/lib/common-libs/txunlock.ts +++ b/app/lib/common-libs/txunlock.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {hashf} from "../common" import {evalParams} from "../rules/global_rules" import {TxSignatureResult} from "../dto/TransactionDTO" diff --git a/app/lib/common.ts b/app/lib/common.ts index e644a73d7ce76f8f336f7bb57919319687313b67..aecb52f0e30b113c2f1038a2fac2d68206e1a72a 100644 --- a/app/lib/common.ts +++ b/app/lib/common.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as crypto from 'crypto' export const hashf = function hashf(str:string) { diff --git a/app/lib/common/package.ts b/app/lib/common/package.ts index 6f2b557374efed2c239a580a1e2723797562750e..2fdfc677f7e3872593e1c86046a66b66279bd6b3 100644 --- a/app/lib/common/package.ts +++ b/app/lib/common/package.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export class Package { diff --git a/app/lib/computation/BlockchainContext.ts b/app/lib/computation/BlockchainContext.ts index 426ed2dc8c8b0bfcca4ccd6b6c37bee22d58ab1b..09b387a0152d830514b2d465f5a7029ce8e9b925 100644 --- a/app/lib/computation/BlockchainContext.ts +++ b/app/lib/computation/BlockchainContext.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {BlockDTO} from "../dto/BlockDTO" import {DuniterBlockchain} from "../blockchain/DuniterBlockchain" diff --git a/app/lib/computation/QuickSync.ts b/app/lib/computation/QuickSync.ts index db385418a5d7a2e52a6609cc4aa7da8b4de29607..5d8853884b2da9e9e1d21816ec66a3469ae67483 100644 --- a/app/lib/computation/QuickSync.ts +++ b/app/lib/computation/QuickSync.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" import {DuniterBlockchain} from "../blockchain/DuniterBlockchain"; import {BlockDTO} from "../dto/BlockDTO"; diff --git a/app/lib/constants.ts b/app/lib/constants.ts index 6de53d349a025efb22f3be7cc62ecb497e2a7385..5b9f76d72d3869b2dff9cfd99208c93498d0f83d 100644 --- a/app/lib/constants.ts +++ b/app/lib/constants.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {CommonConstants} from "./common-libs/constants" import {OtherConstants} from "./other_constants" diff --git a/app/lib/dal/drivers/SQLiteDriver.ts b/app/lib/dal/drivers/SQLiteDriver.ts index 3a47dd1b9fb0b5e649e63f515aebea397faffce0..b7e52b00eb19aa3fc20a6f95f14ea02b1271cda6 100644 --- a/app/lib/dal/drivers/SQLiteDriver.ts +++ b/app/lib/dal/drivers/SQLiteDriver.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + const qfs = require('q-io/fs') const sqlite3 = require("sqlite3").verbose() diff --git a/app/lib/dal/fileDAL.ts b/app/lib/dal/fileDAL.ts index d4a5d7481923c17816907793556a4f8a70cf434c..a74e9de3c01369c1c948e0531305c891f97e0966 100644 --- a/app/lib/dal/fileDAL.ts +++ b/app/lib/dal/fileDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {SQLiteDriver} from "./drivers/SQLiteDriver" import {ConfDAL} from "./fileDALs/ConfDAL" import {StatDAL} from "./fileDALs/StatDAL" diff --git a/app/lib/dal/fileDALs/AbstractCFS.ts b/app/lib/dal/fileDALs/AbstractCFS.ts index adb52dbafdf40b1a683dfb9d8a4ee0621560df38..c03ccb0e5e75909760baa9e24cf3273af245bd58 100644 --- a/app/lib/dal/fileDALs/AbstractCFS.ts +++ b/app/lib/dal/fileDALs/AbstractCFS.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CFSCore} from "./CFSCore"; export class AbstractCFS { diff --git a/app/lib/dal/fileDALs/CFSCore.ts b/app/lib/dal/fileDALs/CFSCore.ts index f215bfaa4c90a6bf67821efab2058144aa74c704..0de15b707aeac9ac09001b410647699bd4ffd810 100644 --- a/app/lib/dal/fileDALs/CFSCore.ts +++ b/app/lib/dal/fileDALs/CFSCore.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/app/lib/dal/fileDALs/ConfDAL.ts b/app/lib/dal/fileDALs/ConfDAL.ts index ff5a0e707509078d9dc757e0389ceaadf5adc48e..1fa90e1482b5fe29c177c819cea9c0df9dce8a43 100644 --- a/app/lib/dal/fileDALs/ConfDAL.ts +++ b/app/lib/dal/fileDALs/ConfDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractCFS} from "./AbstractCFS" import {ConfDTO} from "../../dto/ConfDTO" import {CommonConstants} from "../../common-libs/constants"; diff --git a/app/lib/dal/fileDALs/PowDAL.ts b/app/lib/dal/fileDALs/PowDAL.ts index 6a3d0102a6b5eb6986da81cc038bf34043526efc..eaba6594d4243fc2b7bec5551887c167a54fc527 100644 --- a/app/lib/dal/fileDALs/PowDAL.ts +++ b/app/lib/dal/fileDALs/PowDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractCFS} from "./AbstractCFS" export class PowDAL extends AbstractCFS { diff --git a/app/lib/dal/fileDALs/StatDAL.ts b/app/lib/dal/fileDALs/StatDAL.ts index 147f8e3d3150d87d2e4053464d96aa45cee9ea5b..1e913c5fe57558c051c3fd611de5d143ed264fc2 100644 --- a/app/lib/dal/fileDALs/StatDAL.ts +++ b/app/lib/dal/fileDALs/StatDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractCFS} from "./AbstractCFS"; import {CFSCore} from "./CFSCore"; const _ = require('underscore'); diff --git a/app/lib/dal/sqliteDAL/AbstractIndex.ts b/app/lib/dal/sqliteDAL/AbstractIndex.ts index 6c4e073e7bc2e4d115bd7ce393cdbfcedc5b248b..298295be161751372f971eb068d046f45fe3b531 100644 --- a/app/lib/dal/sqliteDAL/AbstractIndex.ts +++ b/app/lib/dal/sqliteDAL/AbstractIndex.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractSQLite, BeforeSaveHook} from "./AbstractSQLite"; import {SQLiteDriver} from "../drivers/SQLiteDriver"; import {IndexEntry, Indexer} from "../../indexer"; diff --git a/app/lib/dal/sqliteDAL/AbstractSQLite.ts b/app/lib/dal/sqliteDAL/AbstractSQLite.ts index f0df4e5d3104ea7f721ae25ffc3cad3d1938effa..8b9a13926764b7f8619b62dc7e57128a3afe23b8 100644 --- a/app/lib/dal/sqliteDAL/AbstractSQLite.ts +++ b/app/lib/dal/sqliteDAL/AbstractSQLite.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {SQLiteDriver} from "../drivers/SQLiteDriver" /** * Created by cgeek on 22/08/15. diff --git a/app/lib/dal/sqliteDAL/BlockDAL.ts b/app/lib/dal/sqliteDAL/BlockDAL.ts index 59def3ab07738f0bd197135343da17af757137df..a595055e0ad00fa79937ad40755edfdfaa6e9b40 100644 --- a/app/lib/dal/sqliteDAL/BlockDAL.ts +++ b/app/lib/dal/sqliteDAL/BlockDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractSQLite} from "./AbstractSQLite" import {SQLiteDriver} from "../drivers/SQLiteDriver" import {DBBlock} from "../../db/DBBlock" diff --git a/app/lib/dal/sqliteDAL/CertDAL.ts b/app/lib/dal/sqliteDAL/CertDAL.ts index d12774e5721706c8756f6e9c29a9101ac1cd9680..2db48d0aeb067ccaacdfb32fb4df4a240b473d70 100644 --- a/app/lib/dal/sqliteDAL/CertDAL.ts +++ b/app/lib/dal/sqliteDAL/CertDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {SQLiteDriver} from "../drivers/SQLiteDriver" import {AbstractSQLite} from "./AbstractSQLite" import { SandBox } from './SandBox'; diff --git a/app/lib/dal/sqliteDAL/DocumentDAL.ts b/app/lib/dal/sqliteDAL/DocumentDAL.ts index e5ce3c562c98d6f3830523d06a1b9fe67eb846b8..c6bbf5d68c4d4728c41fc630c1141683f78abc88 100644 --- a/app/lib/dal/sqliteDAL/DocumentDAL.ts +++ b/app/lib/dal/sqliteDAL/DocumentDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export interface DBDocument { issuers: string[] } \ No newline at end of file diff --git a/app/lib/dal/sqliteDAL/IdentityDAL.ts b/app/lib/dal/sqliteDAL/IdentityDAL.ts index 364eb00cd1e822b82e0c590a491154a160641a11..b87f98e8ddf4560fd717a9591ddadd0cbd422d7b 100644 --- a/app/lib/dal/sqliteDAL/IdentityDAL.ts +++ b/app/lib/dal/sqliteDAL/IdentityDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractSQLite} from "./AbstractSQLite" import {SQLiteDriver} from "../drivers/SQLiteDriver" import { SandBox } from './SandBox'; diff --git a/app/lib/dal/sqliteDAL/MembershipDAL.ts b/app/lib/dal/sqliteDAL/MembershipDAL.ts index 110ed1429ef627d114a54b2937d09396d92c0416..825559f03ef20efdcf91c002293a1c2950fa0f77 100644 --- a/app/lib/dal/sqliteDAL/MembershipDAL.ts +++ b/app/lib/dal/sqliteDAL/MembershipDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {SQLiteDriver} from "../drivers/SQLiteDriver"; import {AbstractSQLite} from "./AbstractSQLite"; import { SandBox } from './SandBox'; diff --git a/app/lib/dal/sqliteDAL/MetaDAL.ts b/app/lib/dal/sqliteDAL/MetaDAL.ts index 4cb8299eb7ee31c9ef0bdce4c9a348d88b444d2d..fe48511cb584fec8c4a98366dec77593d197b77c 100644 --- a/app/lib/dal/sqliteDAL/MetaDAL.ts +++ b/app/lib/dal/sqliteDAL/MetaDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractSQLite} from "./AbstractSQLite" import {SQLiteDriver} from "../drivers/SQLiteDriver" import {ConfDTO} from "../../dto/ConfDTO" diff --git a/app/lib/dal/sqliteDAL/PeerDAL.ts b/app/lib/dal/sqliteDAL/PeerDAL.ts index 2903ff44e00c86b414de2435b4de9234973824b7..e5662fa8a7ddf683b6000c944052df7c155490d5 100644 --- a/app/lib/dal/sqliteDAL/PeerDAL.ts +++ b/app/lib/dal/sqliteDAL/PeerDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {SQLiteDriver} from "../drivers/SQLiteDriver" import {AbstractSQLite} from "./AbstractSQLite" diff --git a/app/lib/dal/sqliteDAL/SandBox.ts b/app/lib/dal/sqliteDAL/SandBox.ts index d8e9f3d96c7fa07438baf8cca9b117a549f63232..903d2b28564bf05122b33b029bcfa3a641c94929 100644 --- a/app/lib/dal/sqliteDAL/SandBox.ts +++ b/app/lib/dal/sqliteDAL/SandBox.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {DBDocument} from './DocumentDAL'; export class SandBox<T extends DBDocument> { diff --git a/app/lib/dal/sqliteDAL/TxsDAL.ts b/app/lib/dal/sqliteDAL/TxsDAL.ts index dbc82ca99d71528ad6fb65580a21d12318ef574d..278220cd13823032757bed038aad417e5adf4d1b 100644 --- a/app/lib/dal/sqliteDAL/TxsDAL.ts +++ b/app/lib/dal/sqliteDAL/TxsDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractSQLite} from "./AbstractSQLite" import {SQLiteDriver} from "../drivers/SQLiteDriver" import {TransactionDTO} from "../../dto/TransactionDTO" diff --git a/app/lib/dal/sqliteDAL/WalletDAL.ts b/app/lib/dal/sqliteDAL/WalletDAL.ts index 86c9f31b4828698d65f632585146090e3a559c0f..03644eac336e68f87d759b30d371e1285d08630c 100644 --- a/app/lib/dal/sqliteDAL/WalletDAL.ts +++ b/app/lib/dal/sqliteDAL/WalletDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {SQLiteDriver} from "../drivers/SQLiteDriver"; import {AbstractSQLite} from "./AbstractSQLite"; diff --git a/app/lib/dal/sqliteDAL/index/BIndexDAL.ts b/app/lib/dal/sqliteDAL/index/BIndexDAL.ts index 24de1d84d6a15b5377711c9592adf1f69ec45f5e..ee205dd490d68e2d81495238c249b928a7ffd04e 100644 --- a/app/lib/dal/sqliteDAL/index/BIndexDAL.ts +++ b/app/lib/dal/sqliteDAL/index/BIndexDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractSQLite} from "../AbstractSQLite"; import {DBHead} from "../../../db/DBHead"; import {SQLiteDriver} from "../../drivers/SQLiteDriver"; diff --git a/app/lib/dal/sqliteDAL/index/CIndexDAL.ts b/app/lib/dal/sqliteDAL/index/CIndexDAL.ts index 17c23707e61d800a360ba371cae35fdd2dc0a510..d0c58259a37ae6cc151f61cc5921f40c8e6649fe 100644 --- a/app/lib/dal/sqliteDAL/index/CIndexDAL.ts +++ b/app/lib/dal/sqliteDAL/index/CIndexDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractIndex} from "../AbstractIndex" import {SQLiteDriver} from "../../drivers/SQLiteDriver" import {CindexEntry} from "../../../indexer" diff --git a/app/lib/dal/sqliteDAL/index/IIndexDAL.ts b/app/lib/dal/sqliteDAL/index/IIndexDAL.ts index 7d9c9ae8c10357d52734fbe375ce86aaa898d499..c945ea994bc11b7c84a497fb51459111d58e79e3 100644 --- a/app/lib/dal/sqliteDAL/index/IIndexDAL.ts +++ b/app/lib/dal/sqliteDAL/index/IIndexDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {SQLiteDriver} from "../../drivers/SQLiteDriver"; import {AbstractIndex} from "../AbstractIndex"; import {IindexEntry, Indexer} from "../../../indexer"; diff --git a/app/lib/dal/sqliteDAL/index/MIndexDAL.ts b/app/lib/dal/sqliteDAL/index/MIndexDAL.ts index 6cb188689e3ceba1c0d29cc1c2992736b4af37de..2ff64db3b98dccf02f17ba0c788be2a6ca628fe0 100644 --- a/app/lib/dal/sqliteDAL/index/MIndexDAL.ts +++ b/app/lib/dal/sqliteDAL/index/MIndexDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {SQLiteDriver} from "../../drivers/SQLiteDriver"; import {AbstractIndex} from "../AbstractIndex"; import {Indexer, MindexEntry} from "../../../indexer"; diff --git a/app/lib/dal/sqliteDAL/index/SIndexDAL.ts b/app/lib/dal/sqliteDAL/index/SIndexDAL.ts index dc414cf0c39c92631a14cc34b4e6c7e4fa0b8590..13115dcec1233b67a8654b4552c80772b404e726 100644 --- a/app/lib/dal/sqliteDAL/index/SIndexDAL.ts +++ b/app/lib/dal/sqliteDAL/index/SIndexDAL.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Indexer, SindexEntry} from "../../../indexer" import {SQLiteDriver} from "../../drivers/SQLiteDriver" import {AbstractIndex} from "../AbstractIndex" diff --git a/app/lib/db/DBBlock.ts b/app/lib/db/DBBlock.ts index 40cba2e0df490117fca39a8df66cb3cc12a74abe..9e9a7d7c950a2fd60cc18867fb6c8381d678e5d4 100644 --- a/app/lib/db/DBBlock.ts +++ b/app/lib/db/DBBlock.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BlockDTO} from "../dto/BlockDTO" import {TransactionDTO} from "../dto/TransactionDTO" diff --git a/app/lib/db/DBHead.ts b/app/lib/db/DBHead.ts index 2154b015f299e07ed6ebe05af06173ab558c3603..ab4e48fcf3d86e4c5721beac1e1adcee57830642 100644 --- a/app/lib/db/DBHead.ts +++ b/app/lib/db/DBHead.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export class DBHead { // TODO: some properties are not registered in the DB, we should create another class diff --git a/app/lib/db/DBTransaction.ts b/app/lib/db/DBTransaction.ts index 9e0a7c82fa36c9f5cded7c7e6c658ff8b68fb850..4e5bb3ab32addad01f05db020e2d992944e2042d 100644 --- a/app/lib/db/DBTransaction.ts +++ b/app/lib/db/DBTransaction.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {TransactionDTO} from "../dto/TransactionDTO" export class DBTransaction extends TransactionDTO { diff --git a/app/lib/dto/BlockDTO.ts b/app/lib/dto/BlockDTO.ts index 4ce76b018205a56465c0388c0da0f2647c14f890..dba24f303c178e302669905b1448f080f9744c66 100644 --- a/app/lib/dto/BlockDTO.ts +++ b/app/lib/dto/BlockDTO.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {TransactionDTO} from "./TransactionDTO" import {CurrencyConfDTO} from "./ConfDTO" import {hashf} from "../common" diff --git a/app/lib/dto/CertificationDTO.ts b/app/lib/dto/CertificationDTO.ts index 56b13924326d1079d11e4a9ef40e71b86e9361c7..45c2d2d403635dfd673e3ea25d1c9a5a66d6d788 100644 --- a/app/lib/dto/CertificationDTO.ts +++ b/app/lib/dto/CertificationDTO.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {IdentityDTO} from "./IdentityDTO" import {Buid} from "../common-libs/buid" import {Cloneable} from "./Cloneable"; diff --git a/app/lib/dto/Cloneable.ts b/app/lib/dto/Cloneable.ts index f3d5165b1d18704e5cee71bf8571c2f243cbb077..358cc75ac8030c014e53270f5834da334536f5c4 100644 --- a/app/lib/dto/Cloneable.ts +++ b/app/lib/dto/Cloneable.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export interface Cloneable { clone(): any } \ No newline at end of file diff --git a/app/lib/dto/ConfDTO.ts b/app/lib/dto/ConfDTO.ts index f9405f1f4efbbe7a2017f8dee565dea38be47854..eb9ccef3391badfa479b1ed7dc1fdb013be73f3f 100644 --- a/app/lib/dto/ConfDTO.ts +++ b/app/lib/dto/ConfDTO.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../common-libs/constants" import { ProxiesConf } from '../proxy'; const _ = require('underscore'); diff --git a/app/lib/dto/IdentityDTO.ts b/app/lib/dto/IdentityDTO.ts index 5bf4a81c6a3975b86dfee715fe28b3a70701bfcc..b1ed24d2ee40b3d646ee10bd176c4b4c9591b7d8 100644 --- a/app/lib/dto/IdentityDTO.ts +++ b/app/lib/dto/IdentityDTO.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {RevocationDTO} from "./RevocationDTO" import {hashf} from "../common" import {DBIdentity, NewDBIdentity} from "../dal/sqliteDAL/IdentityDAL" diff --git a/app/lib/dto/Jsonable.ts b/app/lib/dto/Jsonable.ts index 17228fa53531e6a1dd47a72f9b769297c751c8b4..fa028a88d5cfa103ae7cc2a6bfb3ff9b9a2737a6 100644 --- a/app/lib/dto/Jsonable.ts +++ b/app/lib/dto/Jsonable.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export interface Jsonable { json(): any } \ No newline at end of file diff --git a/app/lib/dto/MembershipDTO.ts b/app/lib/dto/MembershipDTO.ts index d3fe3b208b095d21c991e24c193c261222302c00..a3a564c03e34068acaf756d5ec2637a9ff41b94d 100644 --- a/app/lib/dto/MembershipDTO.ts +++ b/app/lib/dto/MembershipDTO.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {IdentityDTO} from "./IdentityDTO" import * as moment from "moment" import {Cloneable} from "./Cloneable"; diff --git a/app/lib/dto/MerkleDTO.ts b/app/lib/dto/MerkleDTO.ts index 09531529f5bfffd622fe2d3b906cea60b4856298..1d6d136343fa40d2cf3f0b528959804be82b8bec 100644 --- a/app/lib/dto/MerkleDTO.ts +++ b/app/lib/dto/MerkleDTO.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const merkle = require('merkle'); diff --git a/app/lib/dto/PeerDTO.ts b/app/lib/dto/PeerDTO.ts index 4b9555bfc617bb4ceff21c2c4ef2104f4ae97cb5..119c8a90c7c3938ed7b658d81af88edd418223c7 100644 --- a/app/lib/dto/PeerDTO.ts +++ b/app/lib/dto/PeerDTO.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {DBPeer} from "../dal/sqliteDAL/PeerDAL" import {hashf} from "../common" import {CommonConstants} from "../common-libs/constants" diff --git a/app/lib/dto/RevocationDTO.ts b/app/lib/dto/RevocationDTO.ts index f98d75b63f09c75ed5c383a4e28cdb8492cbf1dc..1185188dafe53668ee0b3aa4d05112795a63f0a7 100644 --- a/app/lib/dto/RevocationDTO.ts +++ b/app/lib/dto/RevocationDTO.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Cloneable} from "./Cloneable"; import {hashf} from "../common"; diff --git a/app/lib/dto/TransactionDTO.ts b/app/lib/dto/TransactionDTO.ts index b70cfbacafcdb0e402091af945230218e3fd1214..b443b1a8024cef6475a1899be10a21eb77729ee0 100644 --- a/app/lib/dto/TransactionDTO.ts +++ b/app/lib/dto/TransactionDTO.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {hashf} from "../common" import {Cloneable} from "./Cloneable" import {verify} from "../common-libs/crypto/keyring" diff --git a/app/lib/helpers/merkle.ts b/app/lib/helpers/merkle.ts index 938e95ca51d66ef458de87aa4ab3be285497c382..db89f0b735164b8e5e4347b3a80c305ff1256937 100644 --- a/app/lib/helpers/merkle.ts +++ b/app/lib/helpers/merkle.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export const processForURL = async (req:any, merkle:any, valueCoroutine:any) => { // Result const json:any = { diff --git a/app/lib/indexer.ts b/app/lib/indexer.ts index b5f1c47be1b391cf00f6e99e7fa3a77d46db7375..c4e4c6b6c317fd615533fa7f89a8237b555a01d4 100644 --- a/app/lib/indexer.ts +++ b/app/lib/indexer.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BlockDTO} from "./dto/BlockDTO" import {ConfDTO, CurrencyConfDTO} from "./dto/ConfDTO" import {IdentityDTO} from "./dto/IdentityDTO" diff --git a/app/lib/logger.ts b/app/lib/logger.ts index e6631ca62a618d1a49198970fe0f6eba03eb978b..b1a5a0e330a766a66e974f268f349fd7245d12b1 100644 --- a/app/lib/logger.ts +++ b/app/lib/logger.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const moment = require('moment'); const path = require('path'); diff --git a/app/lib/other_constants.ts b/app/lib/other_constants.ts index db1ff032c0c867efc07246c16a6d28a7cff7fb5d..203afe23d6bcac3053657be600b52b927e58431c 100644 --- a/app/lib/other_constants.ts +++ b/app/lib/other_constants.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export const OtherConstants = { MUTE_LOGS_DURING_UNIT_TESTS: true, diff --git a/app/lib/proxy.ts b/app/lib/proxy.ts index 340de605c58ebb5b84fec40fd73889acbb7339cd..0d670bdea4a399ffedff28d21e67054c5af363de 100644 --- a/app/lib/proxy.ts +++ b/app/lib/proxy.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "./common-libs/constants" const SocksProxyAgent = require('socks-proxy-agent'); diff --git a/app/lib/rules/global_rules.ts b/app/lib/rules/global_rules.ts index 4fa145004e341899c915288cfdd374402dddf496..3bc3d5417591fea6df8b84d6e1ff7290786e6669 100644 --- a/app/lib/rules/global_rules.ts +++ b/app/lib/rules/global_rules.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../dto/ConfDTO" import {FileDAL} from "../dal/fileDAL" import {DBBlock} from "../db/DBBlock" diff --git a/app/lib/rules/helpers.ts b/app/lib/rules/helpers.ts index 26894dd9e519d08a6c6a9ab4008f95ea19a0d366..ee7d194d9279cb74b2f529c8477a06b460197306 100644 --- a/app/lib/rules/helpers.ts +++ b/app/lib/rules/helpers.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../dto/ConfDTO" import {CommonConstants} from "../common-libs/constants" diff --git a/app/lib/rules/index.ts b/app/lib/rules/index.ts index 28d13899b467bb69fe4a8c9be2e9c0bcd021bcac..a3091ce798abf53a5536042065a6a0d09ea2f581 100644 --- a/app/lib/rules/index.ts +++ b/app/lib/rules/index.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {BlockDTO} from "../dto/BlockDTO" import {ConfDTO} from "../dto/ConfDTO" diff --git a/app/lib/rules/local_rules.ts b/app/lib/rules/local_rules.ts index 93b8e4aa19df8131ab24ec43599e4a926badf6ce..bec4b70c7424835917b1d20340aa64c1da997fe9 100644 --- a/app/lib/rules/local_rules.ts +++ b/app/lib/rules/local_rules.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {BlockDTO} from "../dto/BlockDTO" import {ConfDTO} from "../dto/ConfDTO" diff --git a/app/lib/streams/multicaster.ts b/app/lib/streams/multicaster.ts index afb629f11ec48c618a25f4575107172648c4cb9d..43d2a3b0621611c38de47941a7723ff4f19b54ea 100644 --- a/app/lib/streams/multicaster.ts +++ b/app/lib/streams/multicaster.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../dto/ConfDTO" import * as stream from "stream" import {DBPeer} from "../dal/sqliteDAL/PeerDAL" diff --git a/app/lib/streams/router.ts b/app/lib/streams/router.ts index e62c9e5e67269df2887f5c90a8f8cc529282e4e2..30953a8689928e2ee715e58ce9a5140fb014d078 100644 --- a/app/lib/streams/router.ts +++ b/app/lib/streams/router.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as stream from "stream" import {PeeringService} from "../../service/PeeringService" import {FileDAL} from "../dal/fileDAL" diff --git a/app/lib/system/directory.ts b/app/lib/system/directory.ts index 2c1a4d658347aca032e727dda062a01a69e0f1f7..1dffb23d07035b38568a353abb118d2ce9cf6d05 100644 --- a/app/lib/system/directory.ts +++ b/app/lib/system/directory.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {SQLiteDriver} from "../dal/drivers/SQLiteDriver" import {CFSCore} from "../dal/fileDALs/CFSCore" import {WoTBObject} from "../wot" diff --git a/app/lib/wizard.ts b/app/lib/wizard.ts index 249358d4fba11e979cb4889751c8b3fe4028cf31..dbf9bf45859f79d61ac3c88b8060d7ab75adda93 100644 --- a/app/lib/wizard.ts +++ b/app/lib/wizard.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "./dto/ConfDTO" const constants = require('./constants'); diff --git a/app/lib/wot.ts b/app/lib/wot.ts index d91199b6f1fc3e2be32f996a77a918b9e81b4066..b535ca68e81e533af1f52581e946e27825d92a3f 100644 --- a/app/lib/wot.ts +++ b/app/lib/wot.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + const wotb = require('wotb'); export interface WoTBInterface { diff --git a/app/modules/bma/index.ts b/app/modules/bma/index.ts index 0509226ad298ff2145579c79a0cfe9ab61dc3533..462ee2c857bfbb0c2f7097931e341b99f1ac23f1 100644 --- a/app/modules/bma/index.ts +++ b/app/modules/bma/index.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {NetworkConfDTO} from "../../lib/dto/ConfDTO" import {Server} from "../../../server" diff --git a/app/modules/bma/lib/bma.ts b/app/modules/bma/lib/bma.ts index a2f37c6665d6cf439614ee4cfe12421e7eeda59c..183125820a98dcc8ed1773bafed2a2273ae0f288 100644 --- a/app/modules/bma/lib/bma.ts +++ b/app/modules/bma/lib/bma.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Server} from "../../../../server" import {BmaApi, Network, NetworkInterface} from "./network" import {block2HttpBlock, HttpPeer} from "./dtos" diff --git a/app/modules/bma/lib/constants.ts b/app/modules/bma/lib/constants.ts index 20a76a6eb9cc64e8a6710c5667c1129a836e7694..2488dd573ac3579d7aa7dd097925e8029f6dd0ba 100644 --- a/app/modules/bma/lib/constants.ts +++ b/app/modules/bma/lib/constants.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../../../lib/common-libs/constants" export const BMAConstants = { diff --git a/app/modules/bma/lib/controllers/AbstractController.ts b/app/modules/bma/lib/controllers/AbstractController.ts index f35c5469a522291c7763a3ef3a6727cb753dfeb0..c9b8d9a37fb2575a5ea17e296232a82f6361d140 100644 --- a/app/modules/bma/lib/controllers/AbstractController.ts +++ b/app/modules/bma/lib/controllers/AbstractController.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Server} from "../../../../../server" import {dos2unix} from "../../../../lib/common-libs/dos2unix" import {CommonConstants} from "../../../../lib/common-libs/constants" diff --git a/app/modules/bma/lib/controllers/blockchain.ts b/app/modules/bma/lib/controllers/blockchain.ts index 8e1e5cd90726f9c093ba5954fbd8b79d36635171..0a0afd8c50023b85029350426aa9b7d59a8f5122 100644 --- a/app/modules/bma/lib/controllers/blockchain.ts +++ b/app/modules/bma/lib/controllers/blockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {Server} from "../../../../../server" import {AbstractController} from "./AbstractController" diff --git a/app/modules/bma/lib/controllers/network.ts b/app/modules/bma/lib/controllers/network.ts index 84ac6c842b27286aefcd44cca809348a7101cdb9..6072103feba92f98cc35fdbe01e59acf590136ba 100644 --- a/app/modules/bma/lib/controllers/network.ts +++ b/app/modules/bma/lib/controllers/network.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractController} from "./AbstractController" import {BMAConstants} from "../constants" import {HttpMerkleOfPeers, HttpPeer, HttpPeers, HttpWS2PHeads, HttpWS2PInfo} from "../dtos" diff --git a/app/modules/bma/lib/controllers/node.ts b/app/modules/bma/lib/controllers/node.ts index 3cc4c9dd58947d8221a69934af41fe1a7a0ae1f1..d75ed955a991cc5a7a5cb1f5c32408ce32da8a73 100644 --- a/app/modules/bma/lib/controllers/node.ts +++ b/app/modules/bma/lib/controllers/node.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {AbstractController} from "./AbstractController" import {HttpSandbox, HttpSandboxes, HttpSummary} from "../dtos"; diff --git a/app/modules/bma/lib/controllers/transactions.ts b/app/modules/bma/lib/controllers/transactions.ts index 28b89e4f2cc368b12ee61419d06dd938333d861c..068993fc12aedcbb21ac75e2a53ea2940eb4e297 100644 --- a/app/modules/bma/lib/controllers/transactions.ts +++ b/app/modules/bma/lib/controllers/transactions.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractController} from "./AbstractController"; import {ParametersService} from "../parameters"; import {Source} from "../entity/source"; diff --git a/app/modules/bma/lib/controllers/uds.ts b/app/modules/bma/lib/controllers/uds.ts index 16ee005f9302ec60225750f4025f130647ec16a2..14b5f6f29c72c7b0bbd16c0ac8f61cd79a9db377 100644 --- a/app/modules/bma/lib/controllers/uds.ts +++ b/app/modules/bma/lib/controllers/uds.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractController} from "./AbstractController" import {ParametersService} from "../parameters" import {Source} from "../entity/source" diff --git a/app/modules/bma/lib/controllers/wot.ts b/app/modules/bma/lib/controllers/wot.ts index 9e7553ea4c77d2ec33eff55499eb2e9e8f01ec32..5e8a8c54431f58b18da88994bd4cf45306486c5c 100644 --- a/app/modules/bma/lib/controllers/wot.ts +++ b/app/modules/bma/lib/controllers/wot.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { IindexEntry } from './../../../../lib/indexer'; import {AbstractController} from "./AbstractController"; import {BMAConstants} from "../constants"; diff --git a/app/modules/bma/lib/dtos.ts b/app/modules/bma/lib/dtos.ts index 60f592e6fe673e60c7f9d3b858b341deaf931a36..f37c5139fd4da215ba1e516f7b48cd11eb75a7e4 100644 --- a/app/modules/bma/lib/dtos.ts +++ b/app/modules/bma/lib/dtos.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BlockDTO} from "../../../lib/dto/BlockDTO" import {DBPeer as DBPeer2} from "../../../lib/dal/sqliteDAL/PeerDAL" import {WS2PHead} from "../../ws2p/lib/WS2PCluster" diff --git a/app/modules/bma/lib/entity/source.ts b/app/modules/bma/lib/entity/source.ts index 1bc134728948bf89cc51c245677cbdc5eb093176..2543a55206ffc462e0c6c9e3827b7e738df34070 100644 --- a/app/modules/bma/lib/entity/source.ts +++ b/app/modules/bma/lib/entity/source.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/app/modules/bma/lib/http2raw.ts b/app/modules/bma/lib/http2raw.ts index 0fe2d48c5645850eec2fa01365ec76b860a06512..cc7df590dca894a585281a242db643fe6e84a6b8 100644 --- a/app/modules/bma/lib/http2raw.ts +++ b/app/modules/bma/lib/http2raw.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BMAConstants} from "./constants" module.exports = { diff --git a/app/modules/bma/lib/limiter.ts b/app/modules/bma/lib/limiter.ts index 7a0c70f9abf0c41a0097ae3910e4b909205733ae..f44c13790f7d2ce5b0f1ea8af1abc73bf865e4c2 100644 --- a/app/modules/bma/lib/limiter.ts +++ b/app/modules/bma/lib/limiter.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const A_MINUTE = 60 * 1000; diff --git a/app/modules/bma/lib/network.ts b/app/modules/bma/lib/network.ts index 60e17dada3f4090fcad47cf06eb7eb7108da84ea..831dd61ddcc28714768dfcf6fad8f67db4d3bf33 100644 --- a/app/modules/bma/lib/network.ts +++ b/app/modules/bma/lib/network.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {NetworkConfDTO} from "../../../lib/dto/ConfDTO" import {Server} from "../../../../server" diff --git a/app/modules/bma/lib/parameters.ts b/app/modules/bma/lib/parameters.ts index 3a27c9db386b50058aada7eaeb1dbeb1ff955f48..fed7b661e6b9f33fda042444a1ada168a7764a52 100644 --- a/app/modules/bma/lib/parameters.ts +++ b/app/modules/bma/lib/parameters.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {BMAConstants} from "./constants" diff --git a/app/modules/bma/lib/sanitize.ts b/app/modules/bma/lib/sanitize.ts index 01d6cec2c3764c6e1e58d68af1ec2bf4466e9481..d2a5ce5e70c74d43b881e7911342631587101271 100644 --- a/app/modules/bma/lib/sanitize.ts +++ b/app/modules/bma/lib/sanitize.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; let _ = require('underscore'); diff --git a/app/modules/bma/lib/tojson.ts b/app/modules/bma/lib/tojson.ts index b562efd77222642be683acf436f9b14771db3b7b..d9528205e898778fde147cf89b8d41ae59731037 100644 --- a/app/modules/bma/lib/tojson.ts +++ b/app/modules/bma/lib/tojson.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {BlockDTO} from "../../../lib/dto/BlockDTO" diff --git a/app/modules/bma/lib/upnp.ts b/app/modules/bma/lib/upnp.ts index ea599e5a0b18e48f5c7fe60bffd24a561244d566..068e804efb5130008ad1beeb5f97b98b5323bc18 100644 --- a/app/modules/bma/lib/upnp.ts +++ b/app/modules/bma/lib/upnp.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BMAConstants} from "./constants" import {ConfDTO} from "../../../lib/dto/ConfDTO" diff --git a/app/modules/check-config.ts b/app/modules/check-config.ts index cd8bcd11b868dcda60e7871bd0059bc27e824bc7..1c93db89983f835b0235c0603d2d1f6565c86b76 100644 --- a/app/modules/check-config.ts +++ b/app/modules/check-config.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Server} from "../../server" const constants = require('../lib/constants'); diff --git a/app/modules/config.ts b/app/modules/config.ts index 1f47e4544abacf6d08a2a20d3528f9413b77ae7e..e37bd9258cac3b72fc67dcc3b47566a3abc827a5 100644 --- a/app/modules/config.ts +++ b/app/modules/config.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" diff --git a/app/modules/crawler/index.ts b/app/modules/crawler/index.ts index 6150e052b70ba0ea572a16f12596b3da5734ad00..8eff8439a3633275c32dcc25c4b45f99524e6ad7 100644 --- a/app/modules/crawler/index.ts +++ b/app/modules/crawler/index.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../../lib/dto/ConfDTO" import {Server} from "../../../server" import {Contacter} from "./lib/contacter" diff --git a/app/modules/crawler/lib/connect.ts b/app/modules/crawler/lib/connect.ts index af727a516d42d31970a65002338ba7368deadc77..2d89d28a6612e029494173a3ec16390aa2c96011 100644 --- a/app/modules/crawler/lib/connect.ts +++ b/app/modules/crawler/lib/connect.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CrawlerConstants} from "./constants" import {Contacter} from "./contacter" diff --git a/app/modules/crawler/lib/constants.ts b/app/modules/crawler/lib/constants.ts index 37358f9414c5fabe9faa4a2519a9cb05c2f1ff0b..f53e6f6073b768a9deac61b8d77b8b84f1fcc915 100644 --- a/app/modules/crawler/lib/constants.ts +++ b/app/modules/crawler/lib/constants.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../../../lib/common-libs/constants" export const CrawlerConstants = { diff --git a/app/modules/crawler/lib/contacter.ts b/app/modules/crawler/lib/contacter.ts index fde7ee1ea5ac07c2a20841e767e69b3b94e65df5..c2e93c4e33f568f5147afa128f851723706e46ff 100644 --- a/app/modules/crawler/lib/contacter.ts +++ b/app/modules/crawler/lib/contacter.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CrawlerConstants} from "./constants" const rp = require('request-promise'); diff --git a/app/modules/crawler/lib/crawler.ts b/app/modules/crawler/lib/crawler.ts index 9520c5e3abbae6b58d033c04f7879ef051205b56..8766c226c9386d33d6342ad73cd24745248b4f71 100644 --- a/app/modules/crawler/lib/crawler.ts +++ b/app/modules/crawler/lib/crawler.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as stream from "stream" import {Server} from "../../../../server" import {ConfDTO} from "../../../lib/dto/ConfDTO" diff --git a/app/modules/crawler/lib/garbager.ts b/app/modules/crawler/lib/garbager.ts index 75b92b8dc766c9ea2ad7d4c35575208ac858c566..f748a63a66320d97dfb3e6f5729efa73bd56b74d 100644 --- a/app/modules/crawler/lib/garbager.ts +++ b/app/modules/crawler/lib/garbager.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CrawlerConstants} from "./constants" import {Server} from "../../../../server" diff --git a/app/modules/crawler/lib/pulling.ts b/app/modules/crawler/lib/pulling.ts index 41472d518d3e20b93b5ce84093dfce50327e3876..7dc23418d1ce38ee117803d74aa8971ba1f9714c 100644 --- a/app/modules/crawler/lib/pulling.ts +++ b/app/modules/crawler/lib/pulling.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {BlockDTO} from "../../../lib/dto/BlockDTO" import {DBBlock} from "../../../lib/db/DBBlock" diff --git a/app/modules/crawler/lib/req2fwd.ts b/app/modules/crawler/lib/req2fwd.ts index 790900c7a5f6dc04ce097e67cd0d90263240c450..80bb8467676cc7b2af4e96c97c02cf70cc221d99 100644 --- a/app/modules/crawler/lib/req2fwd.ts +++ b/app/modules/crawler/lib/req2fwd.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Contacter} from "./contacter" import {verify} from "../../../lib/common-libs/crypto/keyring" import {rawer} from "../../../lib/common-libs/index" diff --git a/app/modules/crawler/lib/sandbox.ts b/app/modules/crawler/lib/sandbox.ts index c72abc8f23925a930ba690aad02ec1133162d1d1..58d3d79a7a1f6bde1b4a37ebf106dcdff4d392c5 100644 --- a/app/modules/crawler/lib/sandbox.ts +++ b/app/modules/crawler/lib/sandbox.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {Contacter} from "./contacter" import {Server} from "../../../../server" diff --git a/app/modules/crawler/lib/sync.ts b/app/modules/crawler/lib/sync.ts index df6f29031bb618f2a6083f886c453b3e9553bc5a..fea2026986e7394185b003a818840e40d48a8a27 100644 --- a/app/modules/crawler/lib/sync.ts +++ b/app/modules/crawler/lib/sync.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CrawlerConstants} from "./constants" import * as stream from "stream" import {Server} from "../../../../server" diff --git a/app/modules/crawler/lib/tx_cleaner.ts b/app/modules/crawler/lib/tx_cleaner.ts index 67a72e9572c9752848b4e6a91190e0ba914f18cb..354e210a7f896e7f440ea3530183316b48040176 100644 --- a/app/modules/crawler/lib/tx_cleaner.ts +++ b/app/modules/crawler/lib/tx_cleaner.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export const tx_cleaner = (txs:any) => // Remove unused signatories - see https://github.com/duniter/duniter/issues/494 diff --git a/app/modules/daemon.ts b/app/modules/daemon.ts index 584920f3c4444c8d83859d85abbce5fce3d8a8f2..628107e6914f112f899d06e579b04861289156f2 100644 --- a/app/modules/daemon.ts +++ b/app/modules/daemon.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" diff --git a/app/modules/export-bc.ts b/app/modules/export-bc.ts index 6667f8255a94ba830d4e99b10c32bde73b076457..2deb97a2ad1186a798ddf5bee0d3d44629b079e1 100644 --- a/app/modules/export-bc.ts +++ b/app/modules/export-bc.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" diff --git a/app/modules/keypair/index.ts b/app/modules/keypair/index.ts index bbe70ad6588b3bd19290d81646abdb51caef519e..50f8a3d11a8bd2659bf5f2a7c0e29537550e5033 100644 --- a/app/modules/keypair/index.ts +++ b/app/modules/keypair/index.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {randomKey} from "../../lib/common-libs/crypto/keyring" import {ConfDTO, KeypairConfDTO} from "../../lib/dto/ConfDTO" import {Server} from "../../../server" diff --git a/app/modules/keypair/lib/scrypt.ts b/app/modules/keypair/lib/scrypt.ts index 7092a400a9ac33367a2caae0e017206bb741e50a..c3ba296227f1eeef148f2e0f1bb1b8746e6c5e8a 100644 --- a/app/modules/keypair/lib/scrypt.ts +++ b/app/modules/keypair/lib/scrypt.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {Base58encode} from "../../../lib/common-libs/crypto/base58" import {decodeBase64} from "../../../lib/common-libs/crypto/nacl-util" diff --git a/app/modules/peersignal.ts b/app/modules/peersignal.ts index e7bb140a0ed107f10987ea9cb97570f1a23dcf96..6a7c5d0f412541974072bcf9d60bbec7e5e1ce3f 100644 --- a/app/modules/peersignal.ts +++ b/app/modules/peersignal.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" diff --git a/app/modules/plugin.ts b/app/modules/plugin.ts index 68c4211ff577b7177386ccb2eac428a3052d42a7..0fd7849c94a783793315311986a0e7bdbff361ce 100644 --- a/app/modules/plugin.ts +++ b/app/modules/plugin.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" diff --git a/app/modules/prover/index.ts b/app/modules/prover/index.ts index 856e1423761bde02af8b9da064ffb307c0b65d18..3da0e1fb473d5380f828a873376e5ad048f0ccf3 100644 --- a/app/modules/prover/index.ts +++ b/app/modules/prover/index.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../../lib/dto/ConfDTO" import {BlockGenerator, BlockGeneratorWhichProves} from "./lib/blockGenerator" import {ProverConstants} from "./lib/constants" diff --git a/app/modules/prover/lib/PowWorker.ts b/app/modules/prover/lib/PowWorker.ts index bb0b73b000e1fff991045bdd7f6899539d85da13..5d74ba256bf1a6b74ddf4c9fc4dcd5a58f60bbbc 100644 --- a/app/modules/prover/lib/PowWorker.ts +++ b/app/modules/prover/lib/PowWorker.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Querable} from "./permanentProver" const querablep = require('querablep') diff --git a/app/modules/prover/lib/blockGenerator.ts b/app/modules/prover/lib/blockGenerator.ts index 938bc378875ee487d68fab0a65aea005b5d78be3..48ab6db8e663bab72e59959b29c55b3aa045387e 100644 --- a/app/modules/prover/lib/blockGenerator.ts +++ b/app/modules/prover/lib/blockGenerator.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {ConfDTO} from "../../../lib/dto/ConfDTO" import {Server} from "../../../../server" diff --git a/app/modules/prover/lib/blockProver.ts b/app/modules/prover/lib/blockProver.ts index 93647b3b1c035658a309b2b9e11cd7371511e969..3d1489aca10d55586118e87ad0fffaa70da34c83 100644 --- a/app/modules/prover/lib/blockProver.ts +++ b/app/modules/prover/lib/blockProver.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ProverConstants} from "./constants" import {Server} from "../../../../server" import {PowEngine} from "./engine" diff --git a/app/modules/prover/lib/constants.ts b/app/modules/prover/lib/constants.ts index bb0cfcf31821b76e4a86b066049431d345317613..286ecbd9d355d927d96e6dd018e2eaec351b71e9 100644 --- a/app/modules/prover/lib/constants.ts +++ b/app/modules/prover/lib/constants.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export const ProverConstants = { CORES_MAXIMUM_USE_IN_PARALLEL: 8, diff --git a/app/modules/prover/lib/engine.ts b/app/modules/prover/lib/engine.ts index 883e9a6f1b507ed72875ae5eec9d07eddf5a2693..df8991dab9726100fb09ea4dc6df18ebfd8167ce 100644 --- a/app/modules/prover/lib/engine.ts +++ b/app/modules/prover/lib/engine.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Master as PowCluster} from "./powCluster" import {ConfDTO} from "../../../lib/dto/ConfDTO" import {FileDAL} from "../../../lib/dal/fileDAL"; diff --git a/app/modules/prover/lib/permanentProver.ts b/app/modules/prover/lib/permanentProver.ts index d5c4fefedeceb4550d8a4972fddfc4b4a3a09e49..9bf74f00054a6c36c5f58bf7cd686f15bdc94dea 100644 --- a/app/modules/prover/lib/permanentProver.ts +++ b/app/modules/prover/lib/permanentProver.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BlockGeneratorWhichProves} from "./blockGenerator" import {ConfDTO} from "../../../lib/dto/ConfDTO" import {BlockProver} from "./blockProver" diff --git a/app/modules/prover/lib/powCluster.ts b/app/modules/prover/lib/powCluster.ts index 069bfba8fd1b493f153990da33646fa97b0ce3dd..9bc46362a4fd7ec376dafdc93ab9ed25c505a368 100644 --- a/app/modules/prover/lib/powCluster.ts +++ b/app/modules/prover/lib/powCluster.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../../../lib/dto/ConfDTO" import {ProverConstants} from "./constants" import {createPowWorker} from "./proof" diff --git a/app/modules/prover/lib/proof.ts b/app/modules/prover/lib/proof.ts index 855adb169858a77118674f622885e2868cba953f..af1024409ad401bc0f0991215e52de8b3f0bdf82 100644 --- a/app/modules/prover/lib/proof.ts +++ b/app/modules/prover/lib/proof.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {LOCAL_RULES_HELPERS} from "../../../lib/rules/local_rules" import {hashf} from "../../../lib/common" import {DBBlock} from "../../../lib/db/DBBlock" diff --git a/app/modules/prover/lib/prover.ts b/app/modules/prover/lib/prover.ts index 3a48a5b1afe7e79caae6ab162387cf94870af767..a16bcc40f0910d52bcb3d6ed6aa8daaa0d7ced21 100644 --- a/app/modules/prover/lib/prover.ts +++ b/app/modules/prover/lib/prover.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {PermanentProver} from "./permanentProver" import * as stream from "stream" diff --git a/app/modules/reapply.ts b/app/modules/reapply.ts index e5271c97dc2f6167cf202d1a29412765ab92db55..0fcb1b206d56b29ae4c75cd268b73ff161a4c191 100644 --- a/app/modules/reapply.ts +++ b/app/modules/reapply.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" diff --git a/app/modules/reset.ts b/app/modules/reset.ts index d6b82b3bf609db11d90e6255959b3f3e0b3f2924..96a883304afc7d4cb29c7996dfeca4d071d9c331 100644 --- a/app/modules/reset.ts +++ b/app/modules/reset.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" diff --git a/app/modules/revert.ts b/app/modules/revert.ts index 546118cbb63e14a550d69d637743f023a5bd9484..cc9c890d6c007555211016e301e87dc76cd60045 100644 --- a/app/modules/revert.ts +++ b/app/modules/revert.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" diff --git a/app/modules/router.ts b/app/modules/router.ts index 9c7f2b14d4eded2c706118fdb1a6d3ee0c0b621a..da33c528548ae5b525ca30ac650b47b28197278c 100644 --- a/app/modules/router.ts +++ b/app/modules/router.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" diff --git a/app/modules/wizard.ts b/app/modules/wizard.ts index 64a67475712a2660ff7ec1caf50afaa1931864dd..a6b6e3b4e3cb9e8470d7f4fa13d17d9ff5d7f7f5 100644 --- a/app/modules/wizard.ts +++ b/app/modules/wizard.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../lib/dto/ConfDTO" import {Server} from "../../server" import {Wizard} from "../lib/wizard" diff --git a/app/modules/ws2p/index.ts b/app/modules/ws2p/index.ts index 64c4acd0bd8be0559036416b9561a4c5a8b5800a..6b8e1a3f1d6f7d6593cad9c879249c69a586b1ec 100644 --- a/app/modules/ws2p/index.ts +++ b/app/modules/ws2p/index.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {WS2PConstants} from './lib/constants'; import {ConfDTO, WS2PConfDTO} from "../../lib/dto/ConfDTO" diff --git a/app/modules/ws2p/lib/WS2PBlockPuller.ts b/app/modules/ws2p/lib/WS2PBlockPuller.ts index df7ec78c9f2f6768e9d0fb012f13f9538b2e244b..1a3445bc2ea16c02e58c492a768d1a5c91960464 100644 --- a/app/modules/ws2p/lib/WS2PBlockPuller.ts +++ b/app/modules/ws2p/lib/WS2PBlockPuller.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BlockDTO} from "../../../lib/dto/BlockDTO" import {AbstractDAO} from "../../crawler/lib/pulling" import {Server} from "../../../../server" diff --git a/app/modules/ws2p/lib/WS2PClient.ts b/app/modules/ws2p/lib/WS2PClient.ts index af885353d0a0afe5f573cd5322dcced2b2f1a638..f4b03b46a03d3c0552ccf3a910f0610d8a6148a1 100644 --- a/app/modules/ws2p/lib/WS2PClient.ts +++ b/app/modules/ws2p/lib/WS2PClient.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { WS2PCluster } from './WS2PCluster'; import {Server} from "../../../../server" import {WS2PConnection, WS2PPubkeyLocalAuth, WS2PPubkeyRemoteAuth} from "./WS2PConnection" diff --git a/app/modules/ws2p/lib/WS2PCluster.ts b/app/modules/ws2p/lib/WS2PCluster.ts index 3b912104fab9b77a56d5d4ad89e258afc77c4863..5a92233d678f4e571f506dffe588d0940d580048 100644 --- a/app/modules/ws2p/lib/WS2PCluster.ts +++ b/app/modules/ws2p/lib/WS2PCluster.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {DEFAULT_ENCODING} from 'crypto'; import {WS2PServer} from "./WS2PServer" import {Server} from "../../../../server" diff --git a/app/modules/ws2p/lib/WS2PConnection.ts b/app/modules/ws2p/lib/WS2PConnection.ts index 752a3cf408c9a309b9780a78edb46b396fd70d3d..5bef15d0ce786616c846d85fcfa885142a68f1a0 100644 --- a/app/modules/ws2p/lib/WS2PConnection.ts +++ b/app/modules/ws2p/lib/WS2PConnection.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Key, verify} from "../../../lib/common-libs/crypto/keyring" import {WS2PMessageHandler} from "./impl/WS2PMessageHandler" import {BlockDTO} from "../../../lib/dto/BlockDTO" diff --git a/app/modules/ws2p/lib/WS2PDocpoolPuller.ts b/app/modules/ws2p/lib/WS2PDocpoolPuller.ts index d95d55436f62cbc49f3dae7871f5b5d47498b46f..cc44dc48078102263157eb6c0e42ecd751db9657 100644 --- a/app/modules/ws2p/lib/WS2PDocpoolPuller.ts +++ b/app/modules/ws2p/lib/WS2PDocpoolPuller.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Server} from "../../../../server" import {WS2PConnection} from "./WS2PConnection" import {WS2PRequester} from "./WS2PRequester" diff --git a/app/modules/ws2p/lib/WS2PRequester.ts b/app/modules/ws2p/lib/WS2PRequester.ts index cd2d7c6476dab0c092292d010430f811107290d3..29f72b72f5d8a85593172abb719710759c047a32 100644 --- a/app/modules/ws2p/lib/WS2PRequester.ts +++ b/app/modules/ws2p/lib/WS2PRequester.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {WS2PConnection} from "./WS2PConnection" import {BlockDTO} from "../../../lib/dto/BlockDTO" diff --git a/app/modules/ws2p/lib/WS2PServer.ts b/app/modules/ws2p/lib/WS2PServer.ts index ce08493018528ec69b57f2e2c84efc1d1a838685..d0eec6b8fdd663a6a615acb7bef158490ce67c83 100644 --- a/app/modules/ws2p/lib/WS2PServer.ts +++ b/app/modules/ws2p/lib/WS2PServer.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Server} from "../../../../server" import {WS2PConnection, WS2PPubkeyLocalAuth, WS2PPubkeyRemoteAuth} from "./WS2PConnection" import {Key} from "../../../lib/common-libs/crypto/keyring" diff --git a/app/modules/ws2p/lib/WS2PSingleWriteStream.ts b/app/modules/ws2p/lib/WS2PSingleWriteStream.ts index 69b619a829678711514d92746eced4539bc1b17b..ffba3eb55cde00abb6e6647e099e11164f2c6ee0 100644 --- a/app/modules/ws2p/lib/WS2PSingleWriteStream.ts +++ b/app/modules/ws2p/lib/WS2PSingleWriteStream.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as stream from "stream" import {NewLogger} from "../../../lib/logger" import {CertificationDTO} from "../../../lib/dto/CertificationDTO" diff --git a/app/modules/ws2p/lib/WS2PStreamer.ts b/app/modules/ws2p/lib/WS2PStreamer.ts index 010a4616b4dad7a6e64a65471fed9937f6345be0..f96b10a026396ff5953e02a9efaa9ff990111c93 100644 --- a/app/modules/ws2p/lib/WS2PStreamer.ts +++ b/app/modules/ws2p/lib/WS2PStreamer.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as stream from "stream" import { NewLogger } from "../../../lib/logger"; import { WS2PConnection } from "./WS2PConnection"; diff --git a/app/modules/ws2p/lib/constants.ts b/app/modules/ws2p/lib/constants.ts index 664026793d56ccf07033f930143ab2085b022ab0..3ec09645fbeab14b286b71a533b7ac10bf3c9ea9 100644 --- a/app/modules/ws2p/lib/constants.ts +++ b/app/modules/ws2p/lib/constants.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../../../lib/common-libs/constants" export const WS2PConstants = { diff --git a/app/modules/ws2p/lib/impl/WS2PMessageHandler.ts b/app/modules/ws2p/lib/impl/WS2PMessageHandler.ts index 312fa614b458b8ff52de6f7aba3ce820b6748162..56c7870d2c3a27502352ab475553ded10cc2bbf2 100644 --- a/app/modules/ws2p/lib/impl/WS2PMessageHandler.ts +++ b/app/modules/ws2p/lib/impl/WS2PMessageHandler.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {WS2PResponse} from "./WS2PResponse" import {WS2PConnection} from "../WS2PConnection" export interface WS2PMessageHandler { diff --git a/app/modules/ws2p/lib/impl/WS2PReqMapperByServer.ts b/app/modules/ws2p/lib/impl/WS2PReqMapperByServer.ts index 74eed972dc3ea5db0d3e8b720165d6dc964fdc88..b5bd1e954ae501f8e0331f49e8d0f9f43d0d507e 100644 --- a/app/modules/ws2p/lib/impl/WS2PReqMapperByServer.ts +++ b/app/modules/ws2p/lib/impl/WS2PReqMapperByServer.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { IdentityForRequirements } from './../../../../service/BlockchainService'; import {Server} from "../../../../../server" import {WS2PReqMapper} from "../interface/WS2PReqMapper" diff --git a/app/modules/ws2p/lib/impl/WS2PResponse.ts b/app/modules/ws2p/lib/impl/WS2PResponse.ts index e26fc8ac30b6497fd35de59b1e52234ddf099954..e7e5b12482bde850e5327717cf057f563dc55f72 100644 --- a/app/modules/ws2p/lib/impl/WS2PResponse.ts +++ b/app/modules/ws2p/lib/impl/WS2PResponse.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + export interface WS2PResponse { } \ No newline at end of file diff --git a/app/modules/ws2p/lib/interface/WS2PReqMapper.ts b/app/modules/ws2p/lib/interface/WS2PReqMapper.ts index cdea2c5e8534ea1085e4702b0d614a906f0613c7..651fb22cb59cd04d70c09f2b549df0f5728a55ec 100644 --- a/app/modules/ws2p/lib/interface/WS2PReqMapper.ts +++ b/app/modules/ws2p/lib/interface/WS2PReqMapper.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BlockDTO} from "../../../../lib/dto/BlockDTO" export interface WS2PReqMapper { diff --git a/app/modules/ws2p/lib/interface/WS2PServerMessageHandler.ts b/app/modules/ws2p/lib/interface/WS2PServerMessageHandler.ts index 1a64ac0fc5edc995ded732603f41e34d81e35a48..24c1bbe1a41c7773b6c45366b0253b80d03c2880 100644 --- a/app/modules/ws2p/lib/interface/WS2PServerMessageHandler.ts +++ b/app/modules/ws2p/lib/interface/WS2PServerMessageHandler.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {WS2PMessageHandler} from "../impl/WS2PMessageHandler" import {WS2PResponse} from "../impl/WS2PResponse" import {Server} from "../../../../../server" diff --git a/app/modules/ws2p/lib/ws2p-upnp.ts b/app/modules/ws2p/lib/ws2p-upnp.ts index a6b6a7a5f58c58d6764d9ea7987f11d83b8fdc6d..3b2140de831767046f687f7f9a5284bc1dea192e 100644 --- a/app/modules/ws2p/lib/ws2p-upnp.ts +++ b/app/modules/ws2p/lib/ws2p-upnp.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {WS2PConstants} from "./constants" import {ConfDTO} from "../../../lib/dto/ConfDTO" diff --git a/app/service/BlockchainService.ts b/app/service/BlockchainService.ts index 37a76412ad969828d5e39267edd9ff5fa954e8f6..2d4f583dd724400db42dc0c2647f566b8ab0dbc8 100644 --- a/app/service/BlockchainService.ts +++ b/app/service/BlockchainService.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {IdentityForRequirements} from './BlockchainService'; import {Server} from "../../server" import {GlobalFifoPromise} from "./GlobalFifoPromise" diff --git a/app/service/FIFOService.ts b/app/service/FIFOService.ts index 77d41dd79b77be6c3f05b6d37b079dcac606c819..e17509dc2e28af1fa4060ef5571d20a1a6fdf4d5 100644 --- a/app/service/FIFOService.ts +++ b/app/service/FIFOService.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {GlobalFifoPromise} from "./GlobalFifoPromise"; import * as stream from 'stream'; diff --git a/app/service/GlobalFifoPromise.ts b/app/service/GlobalFifoPromise.ts index d547564e82776e49acbbd0f24a9e7684aa7fd54a..70b2199c2022bd696580bff8fa22d0bb4680130c 100644 --- a/app/service/GlobalFifoPromise.ts +++ b/app/service/GlobalFifoPromise.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../lib/common-libs/constants" import {NewLogger} from "../lib/logger" diff --git a/app/service/IdentityService.ts b/app/service/IdentityService.ts index e052aa29a0c04e3172adea6ae0eb044cae15d554..4237cdebf83236da80cfb053642142e91038b1ae 100644 --- a/app/service/IdentityService.ts +++ b/app/service/IdentityService.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {GlobalFifoPromise} from "./GlobalFifoPromise" import {FileDAL} from "../lib/dal/fileDAL" import {ConfDTO} from "../lib/dto/ConfDTO" diff --git a/app/service/MembershipService.ts b/app/service/MembershipService.ts index 1cbb2d73cf10bfd00e63619abc638f854bc92a63..a02eaa76866b79045cbe37e650e17940c1e47274 100644 --- a/app/service/MembershipService.ts +++ b/app/service/MembershipService.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {GlobalFifoPromise} from "./GlobalFifoPromise"; import {ConfDTO} from "../lib/dto/ConfDTO"; diff --git a/app/service/PeeringService.ts b/app/service/PeeringService.ts index 7b20d32eb54c282ed1d345c8a4751f64ab34ad3a..e72f6a172fb826d12f382eede5e9351b1a84f7a7 100644 --- a/app/service/PeeringService.ts +++ b/app/service/PeeringService.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ConfDTO} from "../lib/dto/ConfDTO" import {FileDAL} from "../lib/dal/fileDAL" import {DBPeer} from "../lib/dal/sqliteDAL/PeerDAL" diff --git a/app/service/TransactionsService.ts b/app/service/TransactionsService.ts index a36dd89f09ff47b528431de6f005bcbb78e4d776..c8608f6e7b47a63924f0ff69290fdf4a604271d0 100644 --- a/app/service/TransactionsService.ts +++ b/app/service/TransactionsService.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {ConfDTO} from "../lib/dto/ConfDTO"; import {FileDAL} from "../lib/dal/fileDAL"; diff --git a/index.ts b/index.ts index 15903c38a8696907c22b174f13f33c57a3271d6a..646e2bf6d44eda8f96e31c50e96818629fa7f3da 100644 --- a/index.ts +++ b/index.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {ExecuteCommand} from "./app/cli" import * as stream from "stream" import {Server} from "./server" diff --git a/license-header.txt b/license-header.txt new file mode 100644 index 0000000000000000000000000000000000000000..04b1244735adb17b9c2195680b9befe742b1f54c --- /dev/null +++ b/license-header.txt @@ -0,0 +1,13 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + diff --git a/release/scripts/create-release.js b/release/scripts/create-release.js old mode 100755 new mode 100644 index 454b1fb659e5070e58a3f29bc0afbd412d4ac857..badc4b1dfc80d086169e2a11c8ffbad75cc3c083 --- a/release/scripts/create-release.js +++ b/release/scripts/create-release.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/release/scripts/upload-release.js b/release/scripts/upload-release.js old mode 100755 new mode 100644 index 31371071251c92d5007ddd721927dd8a9e26231d..3d64eafabf4765124590193a31334cff7243e95b --- a/release/scripts/upload-release.js +++ b/release/scripts/upload-release.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/server.ts b/server.ts index fff2e8accbe0ef6874ec7218559fdd0592bf3f65..026ddf671f33b9ca98489bb4005e2257c2aad78b 100644 --- a/server.ts +++ b/server.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {IdentityService} from "./app/service/IdentityService" import {MembershipService} from "./app/service/MembershipService" import {PeeringService} from "./app/service/PeeringService" diff --git a/test/blockchain/basic-blockchain.ts b/test/blockchain/basic-blockchain.ts index 45b42adf57c6f995ecd929690cf801fe61a3d5d6..f052c4dace531f85734b0b33ec64ab6ddb0d488d 100644 --- a/test/blockchain/basic-blockchain.ts +++ b/test/blockchain/basic-blockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BasicBlockchain} from "../../app/lib/blockchain/BasicBlockchain" import {ArrayBlockchain} from "./lib/ArrayBlockchain" import {SQLBlockchain} from "../../app/lib/blockchain/SqlBlockchain" diff --git a/test/blockchain/indexed-blockchain.ts b/test/blockchain/indexed-blockchain.ts index 5eed0353d6fd79e51fe6dc31adb016045f285e94..8304e1c32e5c05d653980ac21d52d633b550777b 100644 --- a/test/blockchain/indexed-blockchain.ts +++ b/test/blockchain/indexed-blockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {ArrayBlockchain} from "./lib/ArrayBlockchain" import {IndexedBlockchain} from "../../app/lib/blockchain/IndexedBlockchain" diff --git a/test/blockchain/lib/ArrayBlockchain.ts b/test/blockchain/lib/ArrayBlockchain.ts index 2f5f1c27e20fae86a7d8eabd70dd47dcb7784701..25c0fc576e48d3ee7c7e8dde2d64e6bcf895defd 100644 --- a/test/blockchain/lib/ArrayBlockchain.ts +++ b/test/blockchain/lib/ArrayBlockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {BlockchainOperator} from "../../../app/lib/blockchain/interfaces/BlockchainOperator" export class ArrayBlockchain implements BlockchainOperator { diff --git a/test/blockchain/lib/MemoryIndex.ts b/test/blockchain/lib/MemoryIndex.ts index 77195982b3da3a7b033098e32bfc1d21bd7cfcca..cfd6471f43c67253554388223971f3c08d1b081f 100644 --- a/test/blockchain/lib/MemoryIndex.ts +++ b/test/blockchain/lib/MemoryIndex.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" import {IndexOperator} from "../../../app/lib/blockchain/interfaces/IndexOperator" diff --git a/test/blockchain/misc-sql-blockchain.ts b/test/blockchain/misc-sql-blockchain.ts index 3f80bf5b9311a62c0e894927d8aae8981501c036..2caa2d975f41d39acc731161e11dcec72cdd122d 100644 --- a/test/blockchain/misc-sql-blockchain.ts +++ b/test/blockchain/misc-sql-blockchain.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {MiscIndexedBlockchain} from "../../app/lib/blockchain/MiscIndexedBlockchain" import {ArrayBlockchain} from "./lib/ArrayBlockchain" diff --git a/test/dal/dal.js b/test/dal/dal.js index a4014a2441a4a66b37fbd5d35bdc8da7feac5c44..44940fa4ca241274bf624a940c2d3db02ba7687e 100644 --- a/test/dal/dal.js +++ b/test/dal/dal.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; var co = require('co'); var _ = require('underscore'); diff --git a/test/dal/source_dal.js b/test/dal/source_dal.js index a7ae8860040bbcb405c3f018c03c3789ed7a97e9..08c243bcdefa51c5507ed5e9631aafc69201e957 100644 --- a/test/dal/source_dal.js +++ b/test/dal/source_dal.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/dal/triming.js b/test/dal/triming.js index 501ec550e41e568107bbcd4ff9b803038a4e7684..a684a0c0e0b66106b2b7bc5a1a2ba26daf9b0385 100644 --- a/test/dal/triming.js +++ b/test/dal/triming.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/data/blocks.js b/test/data/blocks.js index 9500a38f7f5a1590a00cde7a914e941313ea54fc..17094232ad9daf7126b7751d3fd878ad24e7999f 100644 --- a/test/data/blocks.js +++ b/test/data/blocks.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + module.exports = { WRONG_SIGNATURE: diff --git a/test/eslint.js b/test/eslint.js index e66ef650308ae8c68b543a021fab0db1b5323dd2..c6714b15f3c9e1b1bdee884774d2201cc1b85386 100644 --- a/test/eslint.js +++ b/test/eslint.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + describe('Linting', () => { const lint = require('mocha-eslint'); diff --git a/test/fast/block_format.js b/test/fast/block_format.js index b9adfc16fe996458b71b6c569f4dc22c52d35302..345b6838bc311a9c89fd828f94bc51f40d426bdd 100644 --- a/test/fast/block_format.js +++ b/test/fast/block_format.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const should = require('should'); const parsers = require('../../app/lib/common-libs/parsers').parsers diff --git a/test/fast/block_local.js b/test/fast/block_local.js index f0a92025f8cfe13cc0c64bb7d84f0691895ea72c..ed4d289e47dc953ebd2489eb4121719358e65061 100644 --- a/test/fast/block_local.js +++ b/test/fast/block_local.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/fast/cfs.js b/test/fast/cfs.js index 319b806567584b25612d1b0a4a563fed6d097a7f..2067d7b27217e1edca77a9da04c5fb79d28d5302 100644 --- a/test/fast/cfs.js +++ b/test/fast/cfs.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; var assert = require('assert'); diff --git a/test/fast/common/crypto.js b/test/fast/common/crypto.js index bdd3f903b41d4eecf39e8c82041b5ffe5d97ffe1..4c2ee4325f6e595acc0bf1a5f4ce7199d51663ae 100644 --- a/test/fast/common/crypto.js +++ b/test/fast/common/crypto.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const should = require('should'); const co = require('co'); diff --git a/test/fast/common/randomKey.js b/test/fast/common/randomKey.js index 404993d20e6b183aa5beb675cd362ac347f12548..b2a59e1ed6bbdf1960c7f09499b57c51db0c7946 100644 --- a/test/fast/common/randomKey.js +++ b/test/fast/common/randomKey.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co') const should = require('should'); diff --git a/test/fast/database.js b/test/fast/database.js index c562700d2ae2854ef9dde823d84897240d1ee91e..fcf6c5e6de26b0fa3f8667d42cf652e1675dee8c 100644 --- a/test/fast/database.js +++ b/test/fast/database.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/fast/entities.js b/test/fast/entities.js index 3767738702e36f3a1ef9349e63801ca28ae6c03a..4f5656354432f451b788c8d27d5fc0eb4f04f428 100644 --- a/test/fast/entities.js +++ b/test/fast/entities.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; let should = require('should'); let BlockDTO = require('../../app/lib/dto/BlockDTO').BlockDTO diff --git a/test/fast/fork-resolution-3-3.ts b/test/fast/fork-resolution-3-3.ts index fc9a64a2b43d84e4fb92fcf62fbae81358920118..10e37d1fe9c14e68f2a5221894300e2825e01efd 100644 --- a/test/fast/fork-resolution-3-3.ts +++ b/test/fast/fork-resolution-3-3.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as assert from "assert" import {SwitchBlock, Switcher, SwitcherDao} from "../../app/lib/blockchain/Switcher" import {NewLogger} from "../../app/lib/logger" diff --git a/test/fast/merkle.js b/test/fast/merkle.js index 55e8a0918c2d36ed8ce519b330cf8cd9fc0c5bd0..b93e6823d69ef147d6914ff167216033cea57b87 100644 --- a/test/fast/merkle.js +++ b/test/fast/merkle.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; var should = require('should'); var assert = require('assert'); diff --git a/test/fast/modules/bma/ddos-test.js b/test/fast/modules/bma/ddos-test.js index 5bb0d64f59d88f379ebd301b97d05bab0bb343dc..7c1ab98a148a04c54005f6f3f7e916eaaa582e1c 100644 --- a/test/fast/modules/bma/ddos-test.js +++ b/test/fast/modules/bma/ddos-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; // const should = require('should'); // const co = require('co'); diff --git a/test/fast/modules/bma/limiter-test.js b/test/fast/modules/bma/limiter-test.js index 2ec5db9f4ae4587e9f637b088667a1b8125f113c..f63ae5c4a7253155a11a0970fe7483ec98ffd864 100644 --- a/test/fast/modules/bma/limiter-test.js +++ b/test/fast/modules/bma/limiter-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; // const should = require('should'); // const co = require('co'); diff --git a/test/fast/modules/bma/module-test.js b/test/fast/modules/bma/module-test.js index 135dfa971e49ed7487d34bbceafa18293d2bc230..08c5757734c6b9c4a4e24cf645a4c192585043ed 100644 --- a/test/fast/modules/bma/module-test.js +++ b/test/fast/modules/bma/module-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const assert = require('assert'); const should = require('should'); diff --git a/test/fast/modules/common/crypto.js b/test/fast/modules/common/crypto.js index 1bdd4f6a30f4f7d54cbfcfcd036788e67dfb69cc..3a275f00f4069c388899ea2832cff44ebf9240cc 100644 --- a/test/fast/modules/common/crypto.js +++ b/test/fast/modules/common/crypto.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const should = require('should'); const co = require('co'); diff --git a/test/fast/modules/common/grammar.ts b/test/fast/modules/common/grammar.ts index a72a0c9747c92d593cbb66fa6069dbdf1f0852d2..ebae873b89bce665f96040afa9061486b58d1868 100644 --- a/test/fast/modules/common/grammar.ts +++ b/test/fast/modules/common/grammar.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {unlock} from "../../../../app/lib/common-libs/txunlock" const assert = require('assert') diff --git a/test/fast/modules/common/peering.js b/test/fast/modules/common/peering.js index 858969238ef401305e4dddb130c523cee41d6a5b..954575e2460edad6fcc9d78826f1030270239719 100644 --- a/test/fast/modules/common/peering.js +++ b/test/fast/modules/common/peering.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const should = require('should'); const assert = require('assert'); diff --git a/test/fast/modules/common/randomKey.js b/test/fast/modules/common/randomKey.js index 6bc1f41355a19bf4002f3c7237ed1878f1a56893..0aabe14a27086d506b0253c9be9338cd94c4bce7 100644 --- a/test/fast/modules/common/randomKey.js +++ b/test/fast/modules/common/randomKey.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const should = require('should'); const co = require('co'); diff --git a/test/fast/modules/common/tx_format.js b/test/fast/modules/common/tx_format.js index d5c45a5a8711314cbe7b45d11f5e464aecb1edfa..5b0df732bcb24ee3babcb48941951a5b00f8f060 100644 --- a/test/fast/modules/common/tx_format.js +++ b/test/fast/modules/common/tx_format.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; var should = require('should'); var parsers = require('../../../../app/lib/common-libs/parsers').parsers diff --git a/test/fast/modules/crawler/block_pulling.ts b/test/fast/modules/crawler/block_pulling.ts index e7315850fc53c958e63eba8909d3396e051a22af..0abac92c7567089dd57e9b17bdd75c285c260a37 100644 --- a/test/fast/modules/crawler/block_pulling.ts +++ b/test/fast/modules/crawler/block_pulling.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {AbstractDAO} from "../../../../app/modules/crawler/lib/pulling" import {BlockDTO} from "../../../../app/lib/dto/BlockDTO" import {NewLogger} from "../../../../app/lib/logger" diff --git a/test/fast/modules/crawler/peers_garbaging.js b/test/fast/modules/crawler/peers_garbaging.js index a29e0846af2b1728be792ca877195bb534e586a9..4d44184db5b6171a2dff1dbb7ba8aaddb8cd9489 100644 --- a/test/fast/modules/crawler/peers_garbaging.js +++ b/test/fast/modules/crawler/peers_garbaging.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const should = require('should'); const co = require('co'); diff --git a/test/fast/modules/keypair/crypto-test.js b/test/fast/modules/keypair/crypto-test.js index f9a496564eb0de669fb85e2d0403f884553e7c0f..3ea1686dae7c8a4c7a55c90fbb393b60cfee1e23 100644 --- a/test/fast/modules/keypair/crypto-test.js +++ b/test/fast/modules/keypair/crypto-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const should = require('should'); const co = require('co'); diff --git a/test/fast/modules/keypair/module-test.js b/test/fast/modules/keypair/module-test.js index 55638546f12a85035e21a7660f50c01ca93afd4d..7ea191e6ecbad9cbccbce817a7f16dee85f30e55 100644 --- a/test/fast/modules/keypair/module-test.js +++ b/test/fast/modules/keypair/module-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const should = require('should'); const co = require('co'); diff --git a/test/fast/modules/ws2p/host.ts b/test/fast/modules/ws2p/host.ts index 56182cdd109aff5cbb06b41f59998a0abe7a8042..5559de7f982caefd397b19eaa2aa2c690c92aca7 100644 --- a/test/fast/modules/ws2p/host.ts +++ b/test/fast/modules/ws2p/host.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as assert from 'assert' import { WS2PCluster } from '../../../../app/modules/ws2p/lib/WS2PCluster'; diff --git a/test/fast/modules/ws2p/single_write.ts b/test/fast/modules/ws2p/single_write.ts index a2eaff6273bafba669baf6359a0250f2ce817607..31d8d09052bd50d9aaf62fb0c893facdff97184b 100644 --- a/test/fast/modules/ws2p/single_write.ts +++ b/test/fast/modules/ws2p/single_write.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as stream from "stream" import * as assert from "assert" diff --git a/test/fast/modules/ws2p/ws2p_regexp.ts b/test/fast/modules/ws2p/ws2p_regexp.ts index 1dff5363df765c0139d0f36e1e46e55d0bb502c7..b78eb1af1e017a713c05e7b891867c3a3478acfa 100644 --- a/test/fast/modules/ws2p/ws2p_regexp.ts +++ b/test/fast/modules/ws2p/ws2p_regexp.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as assert from 'assert' import { WS2PConstants } from '../../../../app/modules/ws2p/lib/constants'; diff --git a/test/fast/protocol-brg106-number.js b/test/fast/protocol-brg106-number.js index 30cce97833b2c08d18f12ef86c07599abc8b087c..334f18ab90fa645a24021737894c9e85389e2b48 100644 --- a/test/fast/protocol-brg106-number.js +++ b/test/fast/protocol-brg106-number.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/fast/protocol-brg107-udEffectiveTime.js b/test/fast/protocol-brg107-udEffectiveTime.js index 7e658bbd4f90f5053dfe2235251cd564ba45176b..80a724935d3b52d639ff9a1ef787aeb87e93213d 100644 --- a/test/fast/protocol-brg107-udEffectiveTime.js +++ b/test/fast/protocol-brg107-udEffectiveTime.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/fast/protocol-brg11-udTime.js b/test/fast/protocol-brg11-udTime.js index 5830cfafb88cebf24831148d0130b06b0751a3b0..9899b5b50fe7e0d2bc3cc771c33052ba33fdf76a 100644 --- a/test/fast/protocol-brg11-udTime.js +++ b/test/fast/protocol-brg11-udTime.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/fast/protocol-brg13-dividend.js b/test/fast/protocol-brg13-dividend.js index b691b83ce5f1f5450d1214b22ef0791784b594b7..66025d6ce6f67e54dc1871a49af7abda7ced5706 100644 --- a/test/fast/protocol-brg13-dividend.js +++ b/test/fast/protocol-brg13-dividend.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/fast/protocol-brg49-version.js b/test/fast/protocol-brg49-version.js index 5c601c1aeb10114c4f11399c3a1d4a14a519ac0b..151134e3a78f57056d268cbf18a102708a30f739 100644 --- a/test/fast/protocol-brg49-version.js +++ b/test/fast/protocol-brg49-version.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/fast/protocol-brg50-blocksize.js b/test/fast/protocol-brg50-blocksize.js index 4699a0ff17b3818d7f37db716b6d0e18e9c1241e..8d19f9e3472847526ca5feb9db26ba755d3eb595 100644 --- a/test/fast/protocol-brg50-blocksize.js +++ b/test/fast/protocol-brg50-blocksize.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/fast/protocol-brg51-number.js b/test/fast/protocol-brg51-number.js index 12d7760add6db1f3933329ac1bcd3e5121e6c57e..465238ea46a067a9674f33a9e045716cd394079b 100644 --- a/test/fast/protocol-brg51-number.js +++ b/test/fast/protocol-brg51-number.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); const should = require('should'); diff --git a/test/fast/protocol-local-rule-chained-tx-depth.ts b/test/fast/protocol-local-rule-chained-tx-depth.ts index a13f0fb3c45bc7d979aa3c98e7c914fe8657a640..398f9a999cb0e0080644653f5496115d3f2d2675 100644 --- a/test/fast/protocol-local-rule-chained-tx-depth.ts +++ b/test/fast/protocol-local-rule-chained-tx-depth.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {LOCAL_RULES_HELPERS} from "../../app/lib/rules/local_rules" const _ = require('underscore') diff --git a/test/fast/prover/pow-1-cluster.ts b/test/fast/prover/pow-1-cluster.ts index a2e76947e030785b11c2396118d011fb32f433ee..928e7243c5bea058905ebd797f71a1974de93a9c 100644 --- a/test/fast/prover/pow-1-cluster.ts +++ b/test/fast/prover/pow-1-cluster.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Master} from "../../../app/modules/prover/lib/powCluster" const co = require('co') diff --git a/test/fast/prover/pow-2-engine.js b/test/fast/prover/pow-2-engine.js index 743744ba550dd7db189020a2949321393c844e52..9f3e0aefe847fcbc5f536282fb70dc46a5d505cc 100644 --- a/test/fast/prover/pow-2-engine.js +++ b/test/fast/prover/pow-2-engine.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/fast/prover/pow-3-prover.js b/test/fast/prover/pow-3-prover.js index 2fe82c9fdcf0232c04a1330ae7587cd25d352063..9246f8efdef34d4bc1f69b90af88d45754a1ad41 100644 --- a/test/fast/prover/pow-3-prover.js +++ b/test/fast/prover/pow-3-prover.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co') diff --git a/test/fast/proxies.ts b/test/fast/proxies.ts index 73377bf219f4d62120022e781d1dc160a9088671..01bf18241b855adf72de35e39b32d88708988823 100644 --- a/test/fast/proxies.ts +++ b/test/fast/proxies.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import * as assert from 'assert' import { ProxiesConf } from '../../app/lib/proxy'; diff --git a/test/fast/v1.0-local-index.js b/test/fast/v1.0-local-index.js index ce2c2b835a367cbcc76c67b0495f81bb1fcc5616..04772abb104223417a4029af2def869b030eed81 100644 --- a/test/fast/v1.0-local-index.js +++ b/test/fast/v1.0-local-index.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/branches2.ts b/test/integration/branches2.ts index 6626d06133c62a7f7d8716830473d488762823ee..2000dacc69cb11b3b7ea9404af3d27137a1379fb 100644 --- a/test/integration/branches2.ts +++ b/test/integration/branches2.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {OtherConstants} from "../../app/lib/other_constants" import {NewLogger} from "../../app/lib/logger" import {BmaDependency} from "../../app/modules/bma/index" diff --git a/test/integration/branches_pending_data.js b/test/integration/branches_pending_data.js index ef60584d2194905a241d3df4424da21f566160e3..e4fe8f9c3d16065f1d83a04c2a3469dcf43ddcef 100644 --- a/test/integration/branches_pending_data.js +++ b/test/integration/branches_pending_data.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/branches_revert.js b/test/integration/branches_revert.js index b23325740eefdaf15095c6f860cd573fca639327..d606c049da428dbd3b9b6737d0e286fa72621176 100644 --- a/test/integration/branches_revert.js +++ b/test/integration/branches_revert.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/branches_revert2.js b/test/integration/branches_revert2.js index bc85ff5b69d24e2351a9d5710fded4939775ede5..93295937b62184b760c658afbaf20e5a555e76af 100644 --- a/test/integration/branches_revert2.js +++ b/test/integration/branches_revert2.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/branches_revert_balance.js b/test/integration/branches_revert_balance.js index 3a5fc391275fa1d76986911720c92da3ce05b5c3..b586b053ecb079cd2a5b71adec5227f766e5841e 100644 --- a/test/integration/branches_revert_balance.js +++ b/test/integration/branches_revert_balance.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" const co = require('co') diff --git a/test/integration/branches_revert_memberships.js b/test/integration/branches_revert_memberships.js index b1b115f2fed5ce4417833dc6ec62f67fad5d8089..b40919e7d0fd6555bd9121fa0fe1b80cbb0ded14 100644 --- a/test/integration/branches_revert_memberships.js +++ b/test/integration/branches_revert_memberships.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/branches_switch.ts b/test/integration/branches_switch.ts index ecce9de72ba20fb22fbaeb610ea56ca95f02f8a2..08a13ed914bb8fd97550f455e37e44b34ae96a02 100644 --- a/test/integration/branches_switch.ts +++ b/test/integration/branches_switch.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; import {CrawlerDependency} from "../../app/modules/crawler/index" import {BmaDependency} from "../../app/modules/bma/index" diff --git a/test/integration/certification_chainability.js b/test/integration/certification_chainability.js index 3eaf70f90208fe76bc2d38c93b3ff91fea725475..5ca1cf28343a2e0533827e57969cb1cdab9b9615 100644 --- a/test/integration/certification_chainability.js +++ b/test/integration/certification_chainability.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/certifier-is-member.js b/test/integration/certifier-is-member.js index ffc5ec0156feff6ba99af96d8d198753bdb9c3b1..6c3bfe4568334e19338050e20cf532ab6ff7c936 100644 --- a/test/integration/certifier-is-member.js +++ b/test/integration/certifier-is-member.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/cli.js b/test/integration/cli.js index f6e554514c92ad405e89431e3dc7f3168f656c9f..5700267beaaaf3c83b04abaf5dde435e044bc888 100644 --- a/test/integration/cli.js +++ b/test/integration/cli.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const spawn = require('child_process').spawn; diff --git a/test/integration/collapse.js b/test/integration/collapse.js index f343b513b045bab65529b0ffbddcce83b78c35cd..974790da99cf8170ec0016a0bed76e93721171f5 100644 --- a/test/integration/collapse.js +++ b/test/integration/collapse.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/continuous-proof.js b/test/integration/continuous-proof.js index 157477a80f3dca199030a6ba498ea6d0cf218e44..ffe8615b33bd37db02e9ffaf2564cfddd3d53c1c 100644 --- a/test/integration/continuous-proof.js +++ b/test/integration/continuous-proof.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/crosschain-test.js b/test/integration/crosschain-test.js index e0adfbc1e57dc6dc9767e63972a8e7e61802ee2d..22c436238f7400100e78be9b5a5a9b7c082031cd 100644 --- a/test/integration/crosschain-test.js +++ b/test/integration/crosschain-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/documents-currency.ts b/test/integration/documents-currency.ts index 50327d07d860ac73031d52f6fb15808175197ff0..eb135a09947a8a311dd3797cf0e567698859e6e8 100644 --- a/test/integration/documents-currency.ts +++ b/test/integration/documents-currency.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { NewTestingServer, TestingServer } from './tools/toolbox'; import { unlock } from '../../app/lib/common-libs/txunlock'; diff --git a/test/integration/forwarding.ts b/test/integration/forwarding.ts index 8adbba5eecbbb90794e343be1a6b6dab41e603a5..d0d928ddf82dc9eb3410c37b3f00844e6530ea39 100644 --- a/test/integration/forwarding.ts +++ b/test/integration/forwarding.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {NewLogger} from "../../app/lib/logger" import {BmaDependency} from "../../app/modules/bma/index" import {TestUser} from "./tools/TestUser" diff --git a/test/integration/http_api.js b/test/integration/http_api.js index 9454b78d613b86f0b88ea912648efb70e36ce5fe..22ee16aca9f47af5fa7d5bd7ad19ecbe9293a84a 100644 --- a/test/integration/http_api.js +++ b/test/integration/http_api.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/identity-absorption.js b/test/integration/identity-absorption.js index 2f85059b9ec5b096578b8f23ba1d307833d8e223..3335529e5d17b8334e588e120002094becdfd659 100644 --- a/test/integration/identity-absorption.js +++ b/test/integration/identity-absorption.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/identity-clean-test.js b/test/integration/identity-clean-test.js index 99e5c4686797fba6583af9872ff25a961622abcb..a042d79d8dbe8f2a7d87cdef5e936da0fa4f31ba 100644 --- a/test/integration/identity-clean-test.js +++ b/test/integration/identity-clean-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/identity-expiry.js b/test/integration/identity-expiry.js index 58ba310cb142cdaac7d8ec190151a25de0952e2b..597752905a9cbbe63e5c571f0d417991a3d5ed3e 100644 --- a/test/integration/identity-expiry.js +++ b/test/integration/identity-expiry.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/identity-implicit-revocation.js b/test/integration/identity-implicit-revocation.js index ee1475f9dc9970ef57e18afd27a56e292a3f4e3b..1037ebad4e5c5b8ef4eafc4229948b94b34a8956 100644 --- a/test/integration/identity-implicit-revocation.js +++ b/test/integration/identity-implicit-revocation.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/identity-kicking-by-certs.js b/test/integration/identity-kicking-by-certs.js index 2d52411324853015f58a761bf98574360f5b6c69..c9e2274c2cc0f46d5fca835579bda372350fed04 100644 --- a/test/integration/identity-kicking-by-certs.js +++ b/test/integration/identity-kicking-by-certs.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/identity-kicking.js b/test/integration/identity-kicking.js index ac90bc8f6ac8e433c65bd8c8716128f7fc0ecfa7..7d1b024b8ce8ffdc149197477f8c4d5b66a09051 100644 --- a/test/integration/identity-kicking.js +++ b/test/integration/identity-kicking.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/identity-pulling.js b/test/integration/identity-pulling.js index 427d792e2e73a8b5ae47f88c14d9a92d04980ed9..8d3058b125856cfadedd0e9eb15eb775f15355bb 100644 --- a/test/integration/identity-pulling.js +++ b/test/integration/identity-pulling.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/identity-same-pubkey.js b/test/integration/identity-same-pubkey.js index d42dc0067697d0977f809cdcd5f343015a33ec50..1e1949422b208c4bafd7e4a1cc604f1b96192798 100644 --- a/test/integration/identity-same-pubkey.js +++ b/test/integration/identity-same-pubkey.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/identity-test.js b/test/integration/identity-test.js index de996d07f844d9971a1acdb5a58961801f937ed9..ec434a0d0bccd9e385921f1feaeb918ac42519a4 100644 --- a/test/integration/identity-test.js +++ b/test/integration/identity-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/lookup.js b/test/integration/lookup.js index 381ebf67e55d5262a9ccaacec59fc328402940c9..3ce8d834f1093fdd4cdae8a57747cf52db26ef61 100644 --- a/test/integration/lookup.js +++ b/test/integration/lookup.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/membership_chainability.ts b/test/integration/membership_chainability.ts index af873b8bedbd4afc0a277e41ddf83eb10cc1605f..af5da41eff3d084a17e9d6a4cfbd92698d0990b4 100644 --- a/test/integration/membership_chainability.ts +++ b/test/integration/membership_chainability.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + const toolbox = require('./tools/toolbox') describe("Membership chainability", function() { diff --git a/test/integration/network-update.js b/test/integration/network-update.js index 7da00b7cf58913dda10b67898e0ccbbbe001a299..baae2b7a3ef1527d13cbd8df2d2254dc8959d774 100644 --- a/test/integration/network-update.js +++ b/test/integration/network-update.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/network.js b/test/integration/network.js index 88a4afa84aaaecb944945bb20420712285d17b31..9f75b690445779c9511a5629e529cf5a63dc2970 100644 --- a/test/integration/network.js +++ b/test/integration/network.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/newcomers-shuffling.js b/test/integration/newcomers-shuffling.js index 0de6bdc11e52590825adaf6ca3458a8806a3ca26..31fb6f1dfcda2d6393712c597e1ec7217f2bdfc4 100644 --- a/test/integration/newcomers-shuffling.js +++ b/test/integration/newcomers-shuffling.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/peer-outdated.js b/test/integration/peer-outdated.js index 1855c043183697cb8a64986b9368e26dce22ad8c..79a61acffb5b52c5b85c8528b2ec54791d543ead 100644 --- a/test/integration/peer-outdated.js +++ b/test/integration/peer-outdated.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/peerings.js b/test/integration/peerings.js index 5fc5d49bfa55b94f4614a3280c9c8aa1e95652b6..f9c42296e841edfd09aacd026c013116a6aed438 100644 --- a/test/integration/peerings.js +++ b/test/integration/peerings.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/peers-same-pubkey.js b/test/integration/peers-same-pubkey.js index 6375127aa429522f1f265815dcacccb9395fde6f..3e85615f607b8cf5e553d7802834d6a10bcca791 100644 --- a/test/integration/peers-same-pubkey.js +++ b/test/integration/peers-same-pubkey.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/proof-of-work.js b/test/integration/proof-of-work.js index f2540c6060ede8d045dc4bb3bbb9e9113a160e21..dd43486b2af277c2e10c37d989d08958810ab8e6 100644 --- a/test/integration/proof-of-work.js +++ b/test/integration/proof-of-work.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/register-fork-blocks.js b/test/integration/register-fork-blocks.js index c308cf78fb1f28118c5f45afc0fb2a0f8750bdd8..b31bbe2d75b2e8f39c60a44700e0af80d1002d9f 100644 --- a/test/integration/register-fork-blocks.js +++ b/test/integration/register-fork-blocks.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/revocation-test.js b/test/integration/revocation-test.js index a49dce4560ae3e037c1724c790b1e81526491aca..0dad545100d4a80187b62c296c5a17d21910b143 100644 --- a/test/integration/revocation-test.js +++ b/test/integration/revocation-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/revoked_pubkey_replay.ts b/test/integration/revoked_pubkey_replay.ts index 03f4bab6a3977a3c6530fa2e396fa8bf0ce39bb2..e0a32f2ede9aa57a05c157262f1762e894cb39a2 100644 --- a/test/integration/revoked_pubkey_replay.ts +++ b/test/integration/revoked_pubkey_replay.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {simpleNodeWith2Users, TestingServer} from "./tools/toolbox" const _ = require('underscore') diff --git a/test/integration/scenarios/hello-plugin.js b/test/integration/scenarios/hello-plugin.js index a73aefa0cc98d2e209fd475bb2d8e34cc4b79157..2c0dcf2571397d3b890151130ac1963ea6a68f7c 100644 --- a/test/integration/scenarios/hello-plugin.js +++ b/test/integration/scenarios/hello-plugin.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict" const co = require('co') diff --git a/test/integration/scenarios/malformed-documents.js b/test/integration/scenarios/malformed-documents.js index 2e724323ac5d40779b1663e99dcf58cb6f289bd5..8ec1d222447895df14c2cb46e31da14ebd63f5d2 100644 --- a/test/integration/scenarios/malformed-documents.js +++ b/test/integration/scenarios/malformed-documents.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const request = require('request'); diff --git a/test/integration/server-import-export.js b/test/integration/server-import-export.js index 0f3ab4344bfbdf3981dc90bc837ad2434b082c25..daab7a580d0a78aaa44cda10aec5c2283574a04a 100644 --- a/test/integration/server-import-export.js +++ b/test/integration/server-import-export.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); const should = require('should'); diff --git a/test/integration/server-sandbox.js b/test/integration/server-sandbox.js index e3d438be419c4680a3801b2c9a61938114af7d31..732087dca6336194a40da5ccbf2670753d999256 100644 --- a/test/integration/server-sandbox.js +++ b/test/integration/server-sandbox.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/server-shutdown.ts b/test/integration/server-shutdown.ts index 033ef307691e3a2ea9d19c879c69a967fc81fae4..6722825bc8aec3992b0bffa9dba1c395621cd8ea 100644 --- a/test/integration/server-shutdown.ts +++ b/test/integration/server-shutdown.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { ConfDTO } from '../../app/lib/dto/ConfDTO'; import { setTimeout } from 'timers'; import {NewTestingServer} from "./tools/toolbox" diff --git a/test/integration/single-document-treatment.js b/test/integration/single-document-treatment.js index 9661f4628f37b11b41dee6e6e4e815aed282746f..58aa5229afb2810676af006837910cda605708b1 100644 --- a/test/integration/single-document-treatment.js +++ b/test/integration/single-document-treatment.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const _ = require('underscore'); diff --git a/test/integration/sources_property.js b/test/integration/sources_property.js index d77f46b049081c21fa5d7f696f6231ddd8141e5f..89467dc86cb71f98c81b8b9b88288fad89bafddc 100644 --- a/test/integration/sources_property.js +++ b/test/integration/sources_property.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/start_generate_blocks.js b/test/integration/start_generate_blocks.js index a8d813cb9e8fecda634057b5edb7094563ac569f..6cef8f45240145f9e5158d3bcec9d406cf108ceb 100644 --- a/test/integration/start_generate_blocks.js +++ b/test/integration/start_generate_blocks.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/tests.js b/test/integration/tests.js index 8f910656746aa8c80c759dbcba11284b0664d7aa..3632bfefb5776f5ecb6c96de65427e7c3c80e5d7 100644 --- a/test/integration/tests.js +++ b/test/integration/tests.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/tools/TestUser.ts b/test/integration/tools/TestUser.ts index 8c6cf1303b0a0c5926bda5556edba3e80d903c3e..edf7b8764d5dd0cd1b7538557e6bf1f0bdc4b126 100644 --- a/test/integration/tools/TestUser.ts +++ b/test/integration/tools/TestUser.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {KeyGen} from "../../../app/lib/common-libs/crypto/keyring" import {IdentityDTO} from "../../../app/lib/dto/IdentityDTO"; import {TestingServer} from "./toolbox" diff --git a/test/integration/tools/commit.js b/test/integration/tools/commit.js index 8501f0759c90834b903ce01acf0336cbe5e199f0..bb5804a8ed22526cd12426261b7eb3cd94fe39a7 100644 --- a/test/integration/tools/commit.js +++ b/test/integration/tools/commit.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; var _ = require('underscore'); diff --git a/test/integration/tools/http.js b/test/integration/tools/http.js index d19aacdcb80e35318131dc5907173865ddf042fe..fcc25dada6ab8e319eefd483d52ef0e2e1885b34 100644 --- a/test/integration/tools/http.js +++ b/test/integration/tools/http.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/tools/node.js b/test/integration/tools/node.js index 2748b3dacf15b5f229469b84c8c10cecf64ebd5a..57f696cd56ca7cc981e65d6eaf90ace83005d14c 100644 --- a/test/integration/tools/node.js +++ b/test/integration/tools/node.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; var co = require('co'); var _ = require('underscore'); diff --git a/test/integration/tools/shutDownEngine.js b/test/integration/tools/shutDownEngine.js index d01d6308584574ce82ae7ed5a15c4f78f13d19ce..ade3f2350e7ec857dce49a590b49be61f8a0810f 100644 --- a/test/integration/tools/shutDownEngine.js +++ b/test/integration/tools/shutDownEngine.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + const co = require('co') module.exports = (server) => co(function*() { diff --git a/test/integration/tools/sync.js b/test/integration/tools/sync.js index 43c0deb2c04345c1a6a2ff5156de4382627c44c8..b453100665f011266382cd45bf2b33c1bd3192ed 100644 --- a/test/integration/tools/sync.js +++ b/test/integration/tools/sync.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/tools/toolbox.ts b/test/integration/tools/toolbox.ts index af71bd3ae15e46c3b4a0fc1168a2d61014fc80a3..d9261a036fc2195f5dce2a73b890efe56dfdca71 100644 --- a/test/integration/tools/toolbox.ts +++ b/test/integration/tools/toolbox.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {Server} from "../../../server" import {PermanentProver} from "../../../app/modules/prover/lib/permanentProver" import {Prover} from "../../../app/modules/prover/lib/prover" diff --git a/test/integration/tools/unit.js b/test/integration/tools/unit.js index 55b9db2975ab8f2f9691914cd7562d1e3237824e..f92646ce2d132c11bc3733f24346eace76e09f08 100644 --- a/test/integration/tools/unit.js +++ b/test/integration/tools/unit.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; var should = require('should'); diff --git a/test/integration/tools/until.js b/test/integration/tools/until.js index d1e4804e5bf494285098d7147e1d7c3e309cdfec..3d45be8f4540d6990279c009938c6b9f05084215 100644 --- a/test/integration/tools/until.js +++ b/test/integration/tools/until.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; var UNTIL_TIMEOUT = 115000; diff --git a/test/integration/transactions-chaining.ts b/test/integration/transactions-chaining.ts index 3d58e6a4617e8869d0117d6aad60dad9c63887ae..7b1142b2ba91f1a5fcd1c064fd234afabc90dc1a 100644 --- a/test/integration/transactions-chaining.ts +++ b/test/integration/transactions-chaining.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {CommonConstants} from "../../app/lib/common-libs/constants" import {TestUser} from "./tools/TestUser" import {TestingServer} from "./tools/toolbox" diff --git a/test/integration/transactions-cltv.js b/test/integration/transactions-cltv.js index a65fdf9b3f7ef6e9ce45edc5fe3de755c9ea794d..4722ef30b60416835d0ddd2e56451a0c6fdec288 100644 --- a/test/integration/transactions-cltv.js +++ b/test/integration/transactions-cltv.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/transactions-csv-cltv-sig.ts b/test/integration/transactions-csv-cltv-sig.ts index 4146d97d5bf2c891c6d54098761d7661190200ce..57e4ac69ad930b588302bd1a39b431bee5c175c2 100644 --- a/test/integration/transactions-csv-cltv-sig.ts +++ b/test/integration/transactions-csv-cltv-sig.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {simpleNodeWith2Users, TestingServer} from "./tools/toolbox" import {hashf} from "../../app/lib/common" import {Buid} from "../../app/lib/common-libs/buid" diff --git a/test/integration/transactions-csv.js b/test/integration/transactions-csv.js index a0fe299dbe12b633dc8dfe55efcd3bb2cc2b1373..31d5e912703daf1ed970d10d761b35e49c65edf8 100644 --- a/test/integration/transactions-csv.js +++ b/test/integration/transactions-csv.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/transactions-pruning.js b/test/integration/transactions-pruning.js index d5a6f5c323516ac537978dd6dc9b5c50315aaebe..617d5c5491bcd224248fa2f6feef049d4f4d741c 100644 --- a/test/integration/transactions-pruning.js +++ b/test/integration/transactions-pruning.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/transactions-test.js b/test/integration/transactions-test.js index 6b659eb903b4a1c8be07ff084c919c23cd77ab25..3860f0f8ecd9bc790b39000954582241ea09dab8 100644 --- a/test/integration/transactions-test.js +++ b/test/integration/transactions-test.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/v0.4-times.js b/test/integration/v0.4-times.js index 6e72d66fe7902d69273f4628c5664704596f583e..e11ee84fe326da66da098feeb3c8550266cdc8c4 100644 --- a/test/integration/v0.4-times.js +++ b/test/integration/v0.4-times.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/v0.5-identity-blockstamp.js b/test/integration/v0.5-identity-blockstamp.js index a7c3682de991e4404ae2d8e9ec015e5fdacb0970..9016e87ab79e8fecffecd13a44716d083c6cb858 100644 --- a/test/integration/v0.5-identity-blockstamp.js +++ b/test/integration/v0.5-identity-blockstamp.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/v0.5-transactions.js b/test/integration/v0.5-transactions.js index 70118b3db6936f98d59d425d6c514be4e9eed0a3..c7e546b0db62d57a2b1bb707dc6d7aec4882d4cf 100644 --- a/test/integration/v0.5-transactions.js +++ b/test/integration/v0.5-transactions.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/v0.6-difficulties.js b/test/integration/v0.6-difficulties.js index ec8e5a65da568bce8b256b5a35cf35afbdf137c1..983a1224685449c8a649caa7684e65eb930a90e2 100644 --- a/test/integration/v0.6-difficulties.js +++ b/test/integration/v0.6-difficulties.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/v1.0-double-dividend.js b/test/integration/v1.0-double-dividend.js index e467ebe4c37a32929371a434d1ea2379ba25662f..da14d906630411f931fa9b2b8d1d792f174e1475 100644 --- a/test/integration/v1.0-double-dividend.js +++ b/test/integration/v1.0-double-dividend.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/v1.0-g1-dividend-long-run.js b/test/integration/v1.0-g1-dividend-long-run.js index 0bdf7797d3ad6cb43e6ae9d4149142c26403ac07..512ae506dbbb083319c4222fbddd1ebdf477532c 100644 --- a/test/integration/v1.0-g1-dividend-long-run.js +++ b/test/integration/v1.0-g1-dividend-long-run.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/v1.0-g1-dividend.js b/test/integration/v1.0-g1-dividend.js index 89374fce88462bcaa8b24cbe9ff60cdded990c6d..55991a1c71edc41e9c05ccd26194a4dd605cecfd 100644 --- a/test/integration/v1.0-g1-dividend.js +++ b/test/integration/v1.0-g1-dividend.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/v1.0-modules-api.js b/test/integration/v1.0-modules-api.js index a0f0d81e48c4323c954a3a8237922995dd744570..9c6b3b76bbde6431aef9c29f4bb3129d680273b8 100644 --- a/test/integration/v1.0-modules-api.js +++ b/test/integration/v1.0-modules-api.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/v1.1-dividend.js b/test/integration/v1.1-dividend.js index 2ba9e404c4a9c300fc21085a9f8a7db11799fa91..475593909345ea6809697947e79c3a14b66ba977 100644 --- a/test/integration/v1.1-dividend.js +++ b/test/integration/v1.1-dividend.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/wotb.js b/test/integration/wotb.js index d9a7db18bd1acfbf9123d95e30bfd915763bb381..6c180b4a83ee20048172b8f584ff725b84a11bc0 100644 --- a/test/integration/wotb.js +++ b/test/integration/wotb.js @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + "use strict"; const co = require('co'); diff --git a/test/integration/ws2p_client_limitations.ts b/test/integration/ws2p_client_limitations.ts index 1da2eabea515c7f72158fe5dc0027407e03cd403..4b16d9f03890068aae9326d02a8683d25de71486 100644 --- a/test/integration/ws2p_client_limitations.ts +++ b/test/integration/ws2p_client_limitations.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { getNewTestingPort, simpleTestingConf, diff --git a/test/integration/ws2p_cluster.ts b/test/integration/ws2p_cluster.ts index 29b65119021c14ef5a94469a385eb59d684de901..13adbf4ed14c6aa38bfb387995fa2398db018738 100644 --- a/test/integration/ws2p_cluster.ts +++ b/test/integration/ws2p_cluster.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { getNewTestingPort, simpleTestingConf, diff --git a/test/integration/ws2p_connection.ts b/test/integration/ws2p_connection.ts index e444726b3494123b084e81a6b865c8b9d0547c6e..f252d3407b46bd49b45b77e0b8fe36af8ebe9cd4 100644 --- a/test/integration/ws2p_connection.ts +++ b/test/integration/ws2p_connection.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { WS2PConnection, WS2PLocalAuth, diff --git a/test/integration/ws2p_doc_sharing.ts b/test/integration/ws2p_doc_sharing.ts index be10fa17beb9f3b2b791593caf51d7b6df8e9d33..b001ef00194768846f24827fb5667de44222abe4 100644 --- a/test/integration/ws2p_doc_sharing.ts +++ b/test/integration/ws2p_doc_sharing.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { TestUser } from './tools/TestUser'; import {simpleTestingConf, simpleTestingServer, simpleUser, simpleWS2PNetwork, TestingServer} from "./tools/toolbox" import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" diff --git a/test/integration/ws2p_docpool.ts b/test/integration/ws2p_docpool.ts index fed1b20a9ec6da357de2f3a83c3f547035c23629..fabc209d205ec34a6b4781a0bee393cf427d1b65 100644 --- a/test/integration/ws2p_docpool.ts +++ b/test/integration/ws2p_docpool.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {simpleTestingConf, simpleTestingServer, simpleUser, simpleWS2PNetwork, TestingServer} from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" import {ProverDependency} from "../../app/modules/prover/index" diff --git a/test/integration/ws2p_exchange.ts b/test/integration/ws2p_exchange.ts index 731769fd044d126b48840d93fc9c28c15052dc5d..90b43facbabcec943d57b446b7c948828a9b66b1 100644 --- a/test/integration/ws2p_exchange.ts +++ b/test/integration/ws2p_exchange.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {WS2PConnection} from "../../app/modules/ws2p/lib/WS2PConnection" import {Key} from "../../app/lib/common-libs/crypto/keyring" import {newWS2PBidirectionnalConnection} from "./tools/toolbox" diff --git a/test/integration/ws2p_heads.ts b/test/integration/ws2p_heads.ts index 7d20af4b2e0ae9acd4e99620a6a753d524230351..a97f7ec425a679c5c17720ba5dc878b95ee31d88 100644 --- a/test/integration/ws2p_heads.ts +++ b/test/integration/ws2p_heads.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {getNewTestingPort, simpleTestingConf, simpleTestingServer, simpleUser, TestingServer} from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" diff --git a/test/integration/ws2p_network.ts b/test/integration/ws2p_network.ts index 9f5e12c355e5f8ac03d5de3fa14d6c73ee35d5bd..e241db09378c52f196d1b15b8b9d8a9d52bea48b 100644 --- a/test/integration/ws2p_network.ts +++ b/test/integration/ws2p_network.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {getNewTestingPort, simpleTestingConf, simpleTestingServer, simpleUser, TestingServer} from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" diff --git a/test/integration/ws2p_pulling.ts b/test/integration/ws2p_pulling.ts index 31a050311a045b94db1ec9d5e1634fd9065f8f0d..3f6064c0bdb77a6e843be3fd04ece994dcce4f5e 100644 --- a/test/integration/ws2p_pulling.ts +++ b/test/integration/ws2p_pulling.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import {simpleTestingConf, simpleTestingServer, simpleUser, simpleWS2PNetwork, TestingServer} from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" diff --git a/test/integration/ws2p_server_limitations.ts b/test/integration/ws2p_server_limitations.ts index fd4929955a38c1933b61c1787da6eb51e4b3b0c0..691345d6301374c78cc35419dbb28c6c10484082 100644 --- a/test/integration/ws2p_server_limitations.ts +++ b/test/integration/ws2p_server_limitations.ts @@ -1,3 +1,16 @@ +// Source file from duniter: Crypto-currency software to manage libre currency such as Äž1 +// Copyright (C) 2018 Cedric Moreau <cem.moreau@gmail.com> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + import { getNewTestingPort, simpleTestingConf,