diff --git a/CMakeLists.txt b/CMakeLists.txt index 03830d49da..c33f90c62d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ enable_testing() # copy CTestCustom.cmake to build dir to disable long running tests in 'make test' configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR}) -project(Bytecoin) +project(CryptoNote) include_directories(include src external "${CMAKE_BINARY_DIR}/version") if(APPLE) diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 65c5ca88a6..0000000000 --- a/LICENSE +++ /dev/null @@ -1,165 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. diff --git a/README b/README deleted file mode 100644 index 1ab44e315c..0000000000 --- a/README +++ /dev/null @@ -1,32 +0,0 @@ --= Building CryptoNote =- - -On *nix: - -Dependencies: GCC 4.7.3 or later, CMake 2.8.6 or later, and Boost 1.55. -You may download them from: -http://gcc.gnu.org/ -http://www.cmake.org/ -http://www.boost.org/ -Alternatively, it may be possible to install them using a package manager. - -To build, change to a directory where this file is located, and run `make'. The resulting executables can be found in build/release/src. - -Advanced options: -Parallel build: run `make -j' instead of `make'. -Debug build: run `make build-debug'. -Test suite: run `make test-release' to run tests in addition to building. Running `make test-debug' will do the same to the debug version. -Building with Clang: it may be possible to use Clang instead of GCC, but this may not work everywhere. To build, run `export CC=clang CXX=clang++' before running `make'. - -On Windows: -Dependencies: MSVC 2013 or later, CMake 2.8.6 or later, and Boost 1.55. You may download them from: -http://www.microsoft.com/ -http://www.cmake.org/ -http://www.boost.org/ - -To build, change to a directory where this file is located, and run this commands: -mkdir build -cd build -cmake -G "Visual Studio 12 Win64" .. - -And then do Build. -Good luck! \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000000..02819498ec --- /dev/null +++ b/README.md @@ -0,0 +1,241 @@ +This is the reference code for [CryptoNote](https://cryptonote.org) cryptocurrency protocol. + +* Launch your own CryptoNote currency: [CryptoNote Starter](https://cryptonotestarter.org/) +* CryptoNote reference implementation: [CryptoNoteCoin](https://cryptonote-coin.org) +* Discussion board and support: [CryptoNote Forum](https://forum.cryptonote.org) + +## CryptoNote forking how-to + +### Preparation + +1. Create an account on [GitHub.com](github.com) +2. Fork [CryptoNote repository](https://github.com/cryptonotefoundation/cryptonote) +3. Buy one or two Ubuntu-based dedicated servers (at least 2Gb of RAM) for seed nodes. + + + +### First step. Give a name to your coin + +**Good name must be unique.** Check uniqueness with [google](http://google.com) and [Map of Coins](mapofcoins.com) or any other similar service. + +Name must be specified twice: + +**1. in file src/CryptoNoteConfig.h** - `CRYPTONOTE_NAME` constant + +Example: +``` +const char CRYPTONOTE_NAME[] = "furiouscoin"; +``` + +**2. in src/CMakeList.txt file** - set_property(TARGET daemon PROPERTY OUTPUT_NAME "YOURCOINNAME**d**") + +Example: +``` +set_property(TARGET daemon PROPERTY OUTPUT_NAME "furiouscoind") +``` + +**Note:** You should also change a repository name. + + +### Second step. Emission logic + +**1. Total money supply** (src/CryptoNoteConfig.h) + +Total amount of coins to be emitted. Most of CryptoNote based coins use `(uint64_t)(-1)` (equals to 18446744073709551616). You can define number explicitly (for example `UINT64_C(858986905600000000)`). + +Example: +``` +const uint64_t MONEY_SUPPLY = (uint64_t)(-1); +``` + +**2. Emission curve** (src/CryptoNoteConfig.h) + +Be default CryptoNote provides emission formula with slight decrease of block reward with each block. This is different from Bitcoin where block reward halves every 4 years. + +`EMISSION_SPEED_FACTOR` constant defines emission curve slope. This parameter is required to calulate block reward. + +Example: +``` +const unsigned EMISSION_SPEED_FACTOR = 18; +``` + +**3. Difficulty target** (src/CryptoNoteConfig.h) + +Difficulty target is an ideal time period between blocks. In case an average time between blocks becomes less than difficulty target, the difficulty increases. Difficulty target is measured in seconds. + +Difficulty target directly influences several aspects of coin's behavior: + +- transaction confirmation speed: the longer the time between the blocks is, the slower transaction confirmation is +- emission speed: the longer the time between the blocks is the slower the emission process is +- orphan rate: chains with very fast blocks have greater orphan rate + +For most coins difficulty target is 60 or 120 seconds. + +Example: +``` +const uint64_t DIFFICULTY_TARGET = 120; +``` + +**4. Block reward formula** + +In case you are not satisfied with CryptoNote default implementation of block reward logic you can also change it. The implementation is in `src/CryptoNoteCore/Currency.cpp`: +``` +bool Currency::getBlockReward(size_t medianSize, size_t currentBlockSize, uint64_t alreadyGeneratedCoins, uint64_t fee, uint64_t& reward, int64_t& emissionChange) const +``` + +This function has two parts: + +- basic block reward calculation: `uint64_t baseReward = (m_moneySupply - alreadyGeneratedCoins) >> m_emissionSpeedFactor;` +- big block penalty calculation: this is the way CryptoNote protects the block chain from transaction flooding attacks and preserves opportunities for organic network growth at the same time. + +Only the first part of this function is directly related to the emission logic. You can change it the way you want. See MonetaVerde and DuckNote as the examples where this function is modified. + + +### Third step. Networking + +**1. Default ports for P2P and RPC networking** (src/CryptoNoteConfig.h) + +P2P port is used by daemons to talk to each other through P2P protocol. +RPC port is used by wallet and other programs to talk to daemon. + +It's better to choose ports that aren't used by other software or coins. See known TCP ports lists: + +* http://www.speedguide.net/ports.php +* http://www.networksorcery.com/enp/protocol/ip/ports00000.htm +* http://keir.net/portlist.html + +Example: +``` +const int P2P_DEFAULT_PORT = 17236; +const int RPC_DEFAULT_PORT = 18236; +``` + + +**2. Network identifier** (src/P2p/P2pNetworks.h) + +This identifier is used in network packages in order not to mix two different cryptocoin networks. Change all the bytes to random values for your network: +``` +const static boost::uuids::uuid CRYPTONOTE_NETWORK = { { 0xA1, 0x1A, 0xA1, 0x1A, 0xA1, 0x0A, 0xA1, 0x0A, 0xA0, 0x1A, 0xA0, 0x1A, 0xA0, 0x1A, 0xA1, 0x1A } }; +``` + + +**3. Seed nodes** (src/CryptoNoteConfig.h) + +Add IP addresses of your seed nodes. + +Example: +``` +const std::initializer_list SEED_NODES = { + "111.11.11.11:17236", + "222.22.22.22:17236", +}; +``` + + +### Fourth step. Transaction fee and related parameters + +**1. Minimum transaction fee** (src/CryptoNoteConfig.h) + +Zero minimum fee can lead to transaction flooding. Transactions cheaper than the minimum transaction fee wouldn't be accepted by daemons. 100000 value for `MINIMUM_FEE` is usually enough. + +Example: +``` +const uint64_t MINIMUM_FEE = 100000; +``` + + +**2. Penalty free block size** (src/CryptoNoteConfig.h) + +CryptoNote protects chain from tx flooding by reducing block reward for blocks larger than the median block size. However, this rule applies for blocks larger than `CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE` bytes. + +Example: +``` +const size_t CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE = 20000; +``` + + +### Fifth step. Address prefix + +You may choose a letter (in some cases several letters) all the coin's public addresses will start with. It is defined by `CRYPTONOTE_PUBLIC_ADDRESS_BASE58_PREFIX` constant. Since the rules for address prefixes are nontrivial you may use the [prefix generator tool](https://cryptonotestarter.org/tools.html). + +Example: +``` +const uint64_t CRYPTONOTE_PUBLIC_ADDRESS_BASE58_PREFIX = 0xe9; // addresses start with "f" +``` + + +### Sixth step. Genesis block + +**1. Build the binaries with blank genesis tx hex** (src/CryptoNoteConfig.h) + +You should leave `const char GENESIS_COINBASE_TX_HEX[]` blank and compile the binaries without it. + +Example: +``` +const char GENESIS_COINBASE_TX_HEX[] = ""; +``` + + +**2. Start the daemon to print out the genesis block** + +Run your daemon with `--print-genesis-tx` argument. It will print out the genesis block coinbase transaction hash. + +Example: +``` +furiouscoind --print-genesis-tx +``` + + +**3. Copy the printed transaction hash** (src/CryptoNoteConfig.h) + +Copy the tx hash that has been printed by the daemon to `GENESIS_COINBASE_TX_HEX` in `src/CryptoNoteConfig.h` + +Example: +``` +const char GENESIS_COINBASE_TX_HEX[] = "013c01ff0001ffff...785a33d9ebdba68b0"; +``` + + +**4. Recompile the binaries** + +Recompile everything again. Your coin code is ready now. Make an announcement for the potential users and enjoy! + + +## Building CryptoNote + +### On *nix + +Dependencies: GCC 4.7.3 or later, CMake 2.8.6 or later, and Boost 1.55. + +You may download them from: + +* http://gcc.gnu.org/ +* http://www.cmake.org/ +* http://www.boost.org/ +* Alternatively, it may be possible to install them using a package manager. + +To build, change to a directory where this file is located, and run `make`. The resulting executables can be found in `build/release/src`. + +**Advanced options:** + +* Parallel build: run `make -j` instead of `make`. +* Debug build: run `make build-debug`. +* Test suite: run `make test-release` to run tests in addition to building. Running `make test-debug` will do the same to the debug version. +* Building with Clang: it may be possible to use Clang instead of GCC, but this may not work everywhere. To build, run `export CC=clang CXX=clang++` before running `make`. + +### On Windows +Dependencies: MSVC 2013 or later, CMake 2.8.6 or later, and Boost 1.55. You may download them from: + +* http://www.microsoft.com/ +* http://www.cmake.org/ +* http://www.boost.org/ + +To build, change to a directory where this file is located, and run theas commands: +``` +mkdir build +cd build +cmake -G "Visual Studio 12 Win64" .. +``` + +And then do Build. +Good luck! \ No newline at end of file diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 688e8a1e74..bea3de1a54 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,75 +1,44 @@ -Release notes 1.0.9 +Release notes 1.1.1 -- New API for Bytecoin RPC Wallet -- Various improvements +- New API for CryptoNote RPC Wallet -Release notes 1.0.8 +Release notes 1.1.0 -- Fusion transactions for Bytecoin Wallet -- IWallet high-level API update -- JSON RPC improvements -- Synchronization improvements for OS X - -Release notes 1.0.7 - -- Fusion transactions support -- Various simplewallet improvements - -Release notes 1.0.6 - -- High-level API update -- Aggregate multi-addresses for Bytecoin RPC Wallet +- CryptoNote RPC Wallet +- Aggregate multi-addresses for CryptoNote RPC Wallet +- Fusion transactions +- Transactions pool synchronization - Wallet synchronization speed increase +- High-level API update -Release notes 1.0.5 - -- High-level API for blockchain explorer - Full network layer refactoring -- Transactions pool synchronization -- list_transactions method for RPC Wallet -- Various improvements - -Release notes 1.0.4 - -- Bytecoin RPC Wallet - New multithreading library - Improved console logging -- Further optimizations +- JSON RPC improvements -Release notes 1.0.3 +Release notes 1.0.2 -- Multisignature API +- Multisignature with API - Low level API - High level API improvements -- Instant transaction pool notifications -- Fully refactored simplewallet +- Updated block reward scheme +- Dynamic maximum block size limit -Release notes 1.0.2 +- Instant transaction pool notifications +- Transaction priority based on tx fee +- Transactions are returned from tx pools after 24 hours +- Fully refactored simplewallet - Transaction history for simplewallet - Reset command for simplewallet -- Various simplewallet improvements - -Release notes 1.0.1 - -- Fix transfers in simplewallet - -Release notes 1.0.0 +- Faster wallet refresh -- Multi-signatures -- Updated block reward scheme - Further optimization in daemon RAM consumption -- Faster wallet refresh -- Transaction priority based on tx fee -- Transactions are returned from tx pools after 24 hours -- Dynamic maximum block size limit -- Reduced default transaction fee - Various network health updates +- Config and CryptoNote forking how-to update -Release notes 0.8.11 +Release notes 1.0.1 -- Increased minimum transaction fee -- Transaction pool optimizations - High level API implementation - CryptoNight hash function optimization - Improvements for wallet JSON RPC API diff --git a/include/BlockchainExplorerData.h b/include/BlockchainExplorerData.h index 6ad6d80a82..0a3cdbea78 100644 --- a/include/BlockchainExplorerData.h +++ b/include/BlockchainExplorerData.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/CryptoNote.h b/include/CryptoNote.h index 2eecebdf45..ec10a78c9c 100644 --- a/include/CryptoNote.h +++ b/include/CryptoNote.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -69,16 +56,6 @@ struct Transaction : public TransactionPrefix { std::vector> signatures; }; -struct ParentBlock { - uint8_t majorVersion; - uint8_t minorVersion; - Crypto::Hash previousBlockHash; - uint16_t transactionCount; - std::vector baseTransactionBranch; - Transaction baseTransaction; - std::vector blockchainBranch; -}; - struct BlockHeader { uint8_t majorVersion; uint8_t minorVersion; @@ -88,7 +65,6 @@ struct BlockHeader { }; struct Block : public BlockHeader { - ParentBlock parentBlock; Transaction baseTransaction; std::vector transactionHashes; }; diff --git a/include/CryptoTypes.h b/include/CryptoTypes.h index e9b18fb6ef..519aea0526 100644 --- a/include/CryptoTypes.h +++ b/include/CryptoTypes.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/IBlockchainExplorer.h b/include/IBlockchainExplorer.h index b2c8126103..eb8349a97a 100644 --- a/include/IBlockchainExplorer.h +++ b/include/IBlockchainExplorer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/INode.h b/include/INode.h old mode 100755 new mode 100644 index a8d1d5e6d2..3fef2dc142 --- a/include/INode.h +++ b/include/INode.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/IObservable.h b/include/IObservable.h index 0adc55f11f..f1245f6975 100644 --- a/include/IObservable.h +++ b/include/IObservable.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/IStreamSerializable.h b/include/IStreamSerializable.h index f96f37ec12..cf9ffa231d 100644 --- a/include/IStreamSerializable.h +++ b/include/IStreamSerializable.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/ITransaction.h b/include/ITransaction.h old mode 100755 new mode 100644 index e65f422287..43cb891df5 --- a/include/ITransaction.h +++ b/include/ITransaction.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/ITransfersContainer.h b/include/ITransfersContainer.h index ae7d720afe..cee1de16da 100644 --- a/include/ITransfersContainer.h +++ b/include/ITransfersContainer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/ITransfersSynchronizer.h b/include/ITransfersSynchronizer.h index abc9ce98b4..11ada5190e 100644 --- a/include/ITransfersSynchronizer.h +++ b/include/ITransfersSynchronizer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/IWallet.h b/include/IWallet.h old mode 100755 new mode 100644 index c48b2f98a8..17b23727ed --- a/include/IWallet.h +++ b/include/IWallet.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/include/IWalletLegacy.h b/include/IWalletLegacy.h index a0686a5f93..19b0d5d650 100644 --- a/include/IWalletLegacy.h +++ b/include/IWalletLegacy.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/BlockchainExplorer/BlockchainExplorer.cpp b/src/BlockchainExplorer/BlockchainExplorer.cpp index f918d1ada2..389fa22b9c 100755 --- a/src/BlockchainExplorer/BlockchainExplorer.cpp +++ b/src/BlockchainExplorer/BlockchainExplorer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockchainExplorer.h" @@ -458,11 +445,8 @@ uint64_t BlockchainExplorer::getFullRewardMaxBlockSize(uint8_t majorVersion) { if (state.load() != INITIALIZED) { throw std::system_error(make_error_code(CryptoNote::error::BlockchainExplorerErrorCodes::NOT_INITIALIZED)); } - if (majorVersion > 1) { - return parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE; - } else { - return parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1; - } + + return parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE; } bool BlockchainExplorer::isSynchronized() { diff --git a/src/BlockchainExplorer/BlockchainExplorer.h b/src/BlockchainExplorer/BlockchainExplorer.h index df4881603b..882e425da7 100755 --- a/src/BlockchainExplorer/BlockchainExplorer.h +++ b/src/BlockchainExplorer/BlockchainExplorer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/BlockchainExplorer/BlockchainExplorerDataBuilder.cpp b/src/BlockchainExplorer/BlockchainExplorerDataBuilder.cpp index f80b81ec81..6b3e612a72 100755 --- a/src/BlockchainExplorer/BlockchainExplorerDataBuilder.cpp +++ b/src/BlockchainExplorer/BlockchainExplorerDataBuilder.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockchainExplorerDataBuilder.h" @@ -149,11 +136,10 @@ bool BlockchainExplorerDataBuilder::fillBlockDetails(const Block &block, BlockDe uint64_t maxReward = 0; uint64_t currentReward = 0; int64_t emissionChange = 0; - bool penalizeFee = block.majorVersion >= 2; - if (!core.getBlockReward(blockDetails.sizeMedian, 0, prevBlockGeneratedCoins, 0, penalizeFee, maxReward, emissionChange)) { + if (!core.getBlockReward(blockDetails.sizeMedian, 0, prevBlockGeneratedCoins, 0, maxReward, emissionChange)) { return false; } - if (!core.getBlockReward(blockDetails.sizeMedian, blockDetails.transactionsCumulativeSize, prevBlockGeneratedCoins, 0, penalizeFee, currentReward, emissionChange)) { + if (!core.getBlockReward(blockDetails.sizeMedian, blockDetails.transactionsCumulativeSize, prevBlockGeneratedCoins, 0, currentReward, emissionChange)) { return false; } diff --git a/src/BlockchainExplorer/BlockchainExplorerDataBuilder.h b/src/BlockchainExplorer/BlockchainExplorerDataBuilder.h index 33c3ab7100..c59cf3d6c2 100755 --- a/src/BlockchainExplorer/BlockchainExplorerDataBuilder.h +++ b/src/BlockchainExplorer/BlockchainExplorerDataBuilder.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/BlockchainExplorer/BlockchainExplorerErrors.cpp b/src/BlockchainExplorer/BlockchainExplorerErrors.cpp index e5adeff0e4..c31bad5464 100644 --- a/src/BlockchainExplorer/BlockchainExplorerErrors.cpp +++ b/src/BlockchainExplorer/BlockchainExplorerErrors.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockchainExplorerErrors.h" diff --git a/src/BlockchainExplorer/BlockchainExplorerErrors.h b/src/BlockchainExplorer/BlockchainExplorerErrors.h index 6e54af5383..8c2bd47f9f 100644 --- a/src/BlockchainExplorer/BlockchainExplorerErrors.h +++ b/src/BlockchainExplorer/BlockchainExplorerErrors.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt old mode 100644 new mode 100755 index f6ea4393b7..b02ec2896e --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -76,7 +76,8 @@ add_dependencies(PaymentGateService version) add_dependencies(P2P version) set_property(TARGET ConnectivityTool PROPERTY OUTPUT_NAME "connectivity_tool") -set_property(TARGET Daemon PROPERTY OUTPUT_NAME "bytecoind") set_property(TARGET SimpleWallet PROPERTY OUTPUT_NAME "simplewallet") set_property(TARGET PaymentGateService PROPERTY OUTPUT_NAME "walletd") set_property(TARGET Miner PROPERTY OUTPUT_NAME "miner") +#TODO Specify the name of daemon for your currency +set_property(TARGET Daemon PROPERTY OUTPUT_NAME "cryptonoted") diff --git a/src/Common/ArrayRef.h b/src/Common/ArrayRef.h index 9d5a391ef9..af5c53b7bd 100755 --- a/src/Common/ArrayRef.h +++ b/src/Common/ArrayRef.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/ArrayView.h b/src/Common/ArrayView.h index 444237670e..efa23ee53e 100755 --- a/src/Common/ArrayView.h +++ b/src/Common/ArrayView.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/Base58.cpp b/src/Common/Base58.cpp index 538d38f6e5..7cf17b4a9f 100644 --- a/src/Common/Base58.cpp +++ b/src/Common/Base58.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Base58.h" diff --git a/src/Common/Base58.h b/src/Common/Base58.h old mode 100755 new mode 100644 index f358e2450d..e509e90d72 --- a/src/Common/Base58.h +++ b/src/Common/Base58.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/BlockingQueue.cpp b/src/Common/BlockingQueue.cpp index af636d156d..9804fc897f 100644 --- a/src/Common/BlockingQueue.cpp +++ b/src/Common/BlockingQueue.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockingQueue.h" diff --git a/src/Common/BlockingQueue.h b/src/Common/BlockingQueue.h index 71dd541864..e8631add01 100644 --- a/src/Common/BlockingQueue.h +++ b/src/Common/BlockingQueue.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/CommandLine.cpp b/src/Common/CommandLine.cpp index af4b7144fb..84ce6d01f3 100644 --- a/src/Common/CommandLine.cpp +++ b/src/Common/CommandLine.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CommandLine.h" diff --git a/src/Common/CommandLine.h b/src/Common/CommandLine.h old mode 100755 new mode 100644 index d992c961ed..b46cad4e14 --- a/src/Common/CommandLine.h +++ b/src/Common/CommandLine.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/ConsoleHandler.cpp b/src/Common/ConsoleHandler.cpp index 1f22eeeb1d..e135024a22 100644 --- a/src/Common/ConsoleHandler.cpp +++ b/src/Common/ConsoleHandler.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ConsoleHandler.h" diff --git a/src/Common/ConsoleHandler.h b/src/Common/ConsoleHandler.h index 6ee48b9353..895f1fe9ae 100644 --- a/src/Common/ConsoleHandler.h +++ b/src/Common/ConsoleHandler.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/ConsoleTools.cpp b/src/Common/ConsoleTools.cpp index 1cefdd6350..42cd128c58 100644 --- a/src/Common/ConsoleTools.cpp +++ b/src/Common/ConsoleTools.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ConsoleTools.h" diff --git a/src/Common/ConsoleTools.h b/src/Common/ConsoleTools.h index 7a27587876..19c5952159 100644 --- a/src/Common/ConsoleTools.h +++ b/src/Common/ConsoleTools.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/IInputStream.cpp b/src/Common/IInputStream.cpp old mode 100755 new mode 100644 index 8396fdbd8e..6d95e48831 --- a/src/Common/IInputStream.cpp +++ b/src/Common/IInputStream.cpp @@ -1,18 +1,5 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "IInputStream.h" diff --git a/src/Common/IInputStream.h b/src/Common/IInputStream.h index ef8aea6222..ed95ffff89 100755 --- a/src/Common/IInputStream.h +++ b/src/Common/IInputStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/IOutputStream.cpp b/src/Common/IOutputStream.cpp old mode 100755 new mode 100644 index ea53536049..8bda2ee6a8 --- a/src/Common/IOutputStream.cpp +++ b/src/Common/IOutputStream.cpp @@ -1,18 +1,5 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "IOutputStream.h" diff --git a/src/Common/IOutputStream.h b/src/Common/IOutputStream.h index 5361c4aa78..773a77a2dd 100755 --- a/src/Common/IOutputStream.h +++ b/src/Common/IOutputStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/JsonValue.cpp b/src/Common/JsonValue.cpp index 132ed10063..fe2a831d20 100644 --- a/src/Common/JsonValue.cpp +++ b/src/Common/JsonValue.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "JsonValue.h" #include diff --git a/src/Common/JsonValue.h b/src/Common/JsonValue.h index 5efe007714..45bb2d2d67 100644 --- a/src/Common/JsonValue.h +++ b/src/Common/JsonValue.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/Math.cpp b/src/Common/Math.cpp index 495e0ef156..1e595c0a00 100644 --- a/src/Common/Math.cpp +++ b/src/Common/Math.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Math.h" diff --git a/src/Common/Math.h b/src/Common/Math.h index 92a84cd03c..474e505aa0 100644 --- a/src/Common/Math.h +++ b/src/Common/Math.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/MemoryInputStream.cpp b/src/Common/MemoryInputStream.cpp index 88efbef8cd..d86ec466d3 100644 --- a/src/Common/MemoryInputStream.cpp +++ b/src/Common/MemoryInputStream.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "MemoryInputStream.h" #include diff --git a/src/Common/MemoryInputStream.h b/src/Common/MemoryInputStream.h index 017dc65580..507f422ff7 100644 --- a/src/Common/MemoryInputStream.h +++ b/src/Common/MemoryInputStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/ObserverManager.h b/src/Common/ObserverManager.h old mode 100755 new mode 100644 index 45c495055c..b370572818 --- a/src/Common/ObserverManager.h +++ b/src/Common/ObserverManager.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/PathTools.cpp b/src/Common/PathTools.cpp index fbf7da816c..30c3fd2d75 100644 --- a/src/Common/PathTools.cpp +++ b/src/Common/PathTools.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "PathTools.h" #include diff --git a/src/Common/PathTools.h b/src/Common/PathTools.h index d8949151b9..4ffc11c7d5 100644 --- a/src/Common/PathTools.h +++ b/src/Common/PathTools.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/ScopeExit.cpp b/src/Common/ScopeExit.cpp index 8ea6d922db..c552938b21 100644 --- a/src/Common/ScopeExit.cpp +++ b/src/Common/ScopeExit.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ScopeExit.h" diff --git a/src/Common/ScopeExit.h b/src/Common/ScopeExit.h index 76bc66daca..143fe8700f 100644 --- a/src/Common/ScopeExit.h +++ b/src/Common/ScopeExit.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/ShuffleGenerator.h b/src/Common/ShuffleGenerator.h index 862625ff21..c5a848ce38 100644 --- a/src/Common/ShuffleGenerator.h +++ b/src/Common/ShuffleGenerator.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/SignalHandler.cpp b/src/Common/SignalHandler.cpp index c78bf3e34d..cc57ebc9de 100755 --- a/src/Common/SignalHandler.cpp +++ b/src/Common/SignalHandler.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "SignalHandler.h" diff --git a/src/Common/SignalHandler.h b/src/Common/SignalHandler.h index 1807a63370..c15f81cfcc 100755 --- a/src/Common/SignalHandler.h +++ b/src/Common/SignalHandler.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/StdInputStream.cpp b/src/Common/StdInputStream.cpp index 3e5dcc085f..4af8a32659 100644 --- a/src/Common/StdInputStream.cpp +++ b/src/Common/StdInputStream.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "StdInputStream.h" diff --git a/src/Common/StdInputStream.h b/src/Common/StdInputStream.h index 4efb5ea7e8..4e2f7dc8fe 100644 --- a/src/Common/StdInputStream.h +++ b/src/Common/StdInputStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/StdOutputStream.cpp b/src/Common/StdOutputStream.cpp index 2788c5a011..0c3637d8b6 100644 --- a/src/Common/StdOutputStream.cpp +++ b/src/Common/StdOutputStream.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "StdOutputStream.h" diff --git a/src/Common/StdOutputStream.h b/src/Common/StdOutputStream.h index 2c0dbc5114..ae5047cf50 100644 --- a/src/Common/StdOutputStream.h +++ b/src/Common/StdOutputStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/StreamTools.cpp b/src/Common/StreamTools.cpp index f1b96bd603..8db601e2a8 100755 --- a/src/Common/StreamTools.cpp +++ b/src/Common/StreamTools.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "StreamTools.h" #include diff --git a/src/Common/StreamTools.h b/src/Common/StreamTools.h index 44e25a709c..fa9a40211a 100755 --- a/src/Common/StreamTools.h +++ b/src/Common/StreamTools.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/StringBuffer.h b/src/Common/StringBuffer.h index ba9e1f4435..48f16f7519 100755 --- a/src/Common/StringBuffer.h +++ b/src/Common/StringBuffer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/StringInputStream.cpp b/src/Common/StringInputStream.cpp index 0aefe35356..5cf0bd91b9 100755 --- a/src/Common/StringInputStream.cpp +++ b/src/Common/StringInputStream.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "StringInputStream.h" #include diff --git a/src/Common/StringInputStream.h b/src/Common/StringInputStream.h index cb25c68588..dd16efb22f 100755 --- a/src/Common/StringInputStream.h +++ b/src/Common/StringInputStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/StringOutputStream.cpp b/src/Common/StringOutputStream.cpp index ce4ae9946e..27b9b18726 100755 --- a/src/Common/StringOutputStream.cpp +++ b/src/Common/StringOutputStream.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "StringOutputStream.h" diff --git a/src/Common/StringOutputStream.h b/src/Common/StringOutputStream.h index 528a13cfb9..2a685d5153 100755 --- a/src/Common/StringOutputStream.h +++ b/src/Common/StringOutputStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/StringTools.cpp b/src/Common/StringTools.cpp index 200d2cede9..385440cfd4 100755 --- a/src/Common/StringTools.cpp +++ b/src/Common/StringTools.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "StringTools.h" #include diff --git a/src/Common/StringTools.h b/src/Common/StringTools.h index a56203a455..8d2a88a67d 100755 --- a/src/Common/StringTools.h +++ b/src/Common/StringTools.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/StringView.cpp b/src/Common/StringView.cpp index 68e9d1b54d..a789149ece 100755 --- a/src/Common/StringView.cpp +++ b/src/Common/StringView.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "StringView.h" #include diff --git a/src/Common/StringView.h b/src/Common/StringView.h index 526dd71414..b4a191bcb3 100755 --- a/src/Common/StringView.h +++ b/src/Common/StringView.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/Util.cpp b/src/Common/Util.cpp index 9ef233430a..f6ef06c461 100644 --- a/src/Common/Util.cpp +++ b/src/Common/Util.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Util.h" #include diff --git a/src/Common/Util.h b/src/Common/Util.h old mode 100755 new mode 100644 index 047d96fdae..247ce90be0 --- a/src/Common/Util.h +++ b/src/Common/Util.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/Varint.h b/src/Common/Varint.h old mode 100755 new mode 100644 index 2d7e4b079d..86ff69b53a --- a/src/Common/Varint.h +++ b/src/Common/Varint.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/VectorOutputStream.cpp b/src/Common/VectorOutputStream.cpp index 283f5d3506..0ef41eb6b0 100644 --- a/src/Common/VectorOutputStream.cpp +++ b/src/Common/VectorOutputStream.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "VectorOutputStream.h" diff --git a/src/Common/VectorOutputStream.h b/src/Common/VectorOutputStream.h index 564f267e80..5bc2173b3d 100644 --- a/src/Common/VectorOutputStream.h +++ b/src/Common/VectorOutputStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/int-util.h b/src/Common/int-util.h index 3fdb5dc0c6..7f81dbbff4 100644 --- a/src/Common/int-util.h +++ b/src/Common/int-util.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/pod-class.h b/src/Common/pod-class.h index 63972d28af..e91f8e4f45 100644 --- a/src/Common/pod-class.h +++ b/src/Common/pod-class.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Common/static_assert.h b/src/Common/static_assert.h index e7b4ce0db7..584c4edfd1 100644 --- a/src/Common/static_assert.h +++ b/src/Common/static_assert.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/ConnectivityTool/ConnectivityTool.cpp b/src/ConnectivityTool/ConnectivityTool.cpp index 231ef33a7c..15738884fc 100755 --- a/src/ConnectivityTool/ConnectivityTool.cpp +++ b/src/ConnectivityTool/ConnectivityTool.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/CryptoNoteConfig.h b/src/CryptoNoteConfig.h index f2908bedb2..4506f667c9 100644 --- a/src/CryptoNoteConfig.h +++ b/src/CryptoNoteConfig.h @@ -1,23 +1,11 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include +#include namespace CryptoNote { namespace parameters { @@ -25,30 +13,39 @@ namespace parameters { const uint64_t CRYPTONOTE_MAX_BLOCK_NUMBER = 500000000; const size_t CRYPTONOTE_MAX_BLOCK_BLOB_SIZE = 500000000; const size_t CRYPTONOTE_MAX_TX_SIZE = 1000000000; -const uint64_t CRYPTONOTE_PUBLIC_ADDRESS_BASE58_PREFIX = 6; // addresses start with "2" -const size_t CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW = 10; +//TODO Currency-specific address prefix +const uint64_t CRYPTONOTE_PUBLIC_ADDRESS_BASE58_PREFIX = ; +//TODO Choose maturity period for your currency +const size_t CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW = 60; const uint64_t CRYPTONOTE_BLOCK_FUTURE_TIME_LIMIT = 60 * 60 * 2; const size_t BLOCKCHAIN_TIMESTAMP_CHECK_WINDOW = 60; -// MONEY_SUPPLY - total number coins to be generated -const uint64_t MONEY_SUPPLY = static_cast(-1); +//TODO Specify total number of available coins +//TODO ((uint64_t)(-1)) equals to 18446744073709551616 coins +//TODO or you can define number explicitly UINT64_C(858986905600000000) +const uint64_t MONEY_SUPPLY = ; const unsigned EMISSION_SPEED_FACTOR = 18; static_assert(EMISSION_SPEED_FACTOR <= 8 * sizeof(uint64_t), "Bad EMISSION_SPEED_FACTOR"); +//TODO Define number of blocks for block size median calculation const size_t CRYPTONOTE_REWARD_BLOCKS_WINDOW = 100; -const size_t CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE = 20000; //size of block (bytes) after which reward for block calculated using block size -const size_t CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1 = 10000; +const size_t CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE = 10000; //size of block (bytes) after which reward for block calculated using block size const size_t CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE = 600; +//TODO Define number of digits const size_t CRYPTONOTE_DISPLAY_DECIMAL_POINT = 8; -const uint64_t MINIMUM_FEE = UINT64_C(1000000); // pow(10, 6) -const uint64_t DEFAULT_DUST_THRESHOLD = UINT64_C(1000000); // pow(10, 6) +//TODO Define minimum fee for transactions +const uint64_t MINIMUM_FEE = ; +const uint64_t DEFAULT_DUST_THRESHOLD = MINIMUM_FEE; +//TODO Define preferred block's target time const uint64_t DIFFICULTY_TARGET = 120; // seconds const uint64_t EXPECTED_NUMBER_OF_BLOCKS_PER_DAY = 24 * 60 * 60 / DIFFICULTY_TARGET; +//TODO There are options to tune CryptoNote's difficulty retargeting function. +//TODO We recommend not to change it. const size_t DIFFICULTY_WINDOW = EXPECTED_NUMBER_OF_BLOCKS_PER_DAY; // blocks const size_t DIFFICULTY_CUT = 60; // timestamps to cut after sorting -const size_t DIFFICULTY_LAG = 15; // !!! +const size_t DIFFICULTY_LAG = 15; static_assert(2 * DIFFICULTY_CUT <= DIFFICULTY_WINDOW - 2, "Bad DIFFICULTY_WINDOW or DIFFICULTY_CUT"); const size_t MAX_BLOCK_SIZE_INITIAL = 20 * 1024; @@ -66,13 +63,6 @@ const size_t FUSION_TX_MAX_SIZE = CRYPTONOTE_BLOCK_ const size_t FUSION_TX_MIN_INPUT_COUNT = 12; const size_t FUSION_TX_MIN_IN_OUT_COUNT_RATIO = 4; -const uint64_t UPGRADE_HEIGHT = 546602; -const unsigned UPGRADE_VOTING_THRESHOLD = 90; // percent -const size_t UPGRADE_VOTING_WINDOW = EXPECTED_NUMBER_OF_BLOCKS_PER_DAY; // blocks -const size_t UPGRADE_WINDOW = EXPECTED_NUMBER_OF_BLOCKS_PER_DAY; // blocks -static_assert(0 < UPGRADE_VOTING_THRESHOLD && UPGRADE_VOTING_THRESHOLD <= 100, "Bad UPGRADE_VOTING_THRESHOLD"); -static_assert(UPGRADE_VOTING_WINDOW > 1, "Bad UPGRADE_VOTING_WINDOW"); - const char CRYPTONOTE_BLOCKS_FILENAME[] = "blocks.dat"; const char CRYPTONOTE_BLOCKINDEXES_FILENAME[] = "blockindexes.dat"; const char CRYPTONOTE_BLOCKSCACHE_FILENAME[] = "blockscache.dat"; @@ -82,20 +72,22 @@ const char CRYPTONOTE_BLOCKCHAIN_INDICES_FILENAME[] = "blockchainindice const char MINER_CONFIG_FILE_NAME[] = "miner_conf.json"; } // parameters -const char CRYPTONOTE_NAME[] = "bytecoin"; +//TODO Put here the name of your currency +const char CRYPTONOTE_NAME[] = ""; +const char GENESIS_COINBASE_TX_HEX[] = ""; const uint8_t CURRENT_TRANSACTION_VERSION = 1; const uint8_t BLOCK_MAJOR_VERSION_1 = 1; -const uint8_t BLOCK_MAJOR_VERSION_2 = 2; const uint8_t BLOCK_MINOR_VERSION_0 = 0; -const uint8_t BLOCK_MINOR_VERSION_1 = 1; const size_t BLOCKS_IDS_SYNCHRONIZING_DEFAULT_COUNT = 10000; //by default, blocks ids count in synchronizing const size_t BLOCKS_SYNCHRONIZING_DEFAULT_COUNT = 200; //by default, blocks count in blocks downloading const size_t COMMAND_RPC_GET_BLOCKS_FAST_MAX_COUNT = 1000; -const int P2P_DEFAULT_PORT = 8080; -const int RPC_DEFAULT_PORT = 8081; +//TODO This port will be used by the daemon to establish connections with p2p network +const int P2P_DEFAULT_PORT = ; +//TODO This port will be used by the daemon to interact with simlewallet +const int RPC_DEFAULT_PORT = ; const size_t P2P_LOCAL_WHITE_PEERLIST_LIMIT = 1000; const size_t P2P_LOCAL_GRAY_PEERLIST_LIMIT = 5000; @@ -110,19 +102,12 @@ const uint32_t P2P_DEFAULT_CONNECTION_TIMEOUT = 5000; // const uint32_t P2P_DEFAULT_PING_CONNECTION_TIMEOUT = 2000; // 2 seconds const uint64_t P2P_DEFAULT_INVOKE_TIMEOUT = 60 * 2 * 1000; // 2 minutes const size_t P2P_DEFAULT_HANDSHAKE_INVOKE_TIMEOUT = 5000; // 5 seconds -const char P2P_STAT_TRUSTED_PUB_KEY[] = "93467628927eaa0b13a4e52e61864a75aa475e67f6b5748eb3fc1d2fe468aed4"; - -const char* const SEED_NODES[] = { - "seed.bytecoin.org:8080", - "85.25.201.95:8080", - "85.25.196.145:8080", - "85.25.196.146:8080", - "85.25.196.144:8080", - "5.199.168.138:8080", - "62.75.236.152:8080", - "85.25.194.245:8080", - "95.211.224.160:8080", - "144.76.200.44:8080" +const char P2P_STAT_TRUSTED_PUB_KEY[] = "8f80f9a5a434a9f1510d13336228debfee9c918ce505efe225d8c94d045fa115"; + +//TODO Add here your network seed nodes +const std::initializer_list SEED_NODES = { + //"your_seed_ip1.com:8080", + //"your_seed_ip2.com:8080", }; struct CheckpointData { @@ -130,44 +115,14 @@ struct CheckpointData { const char* blockId; }; -const CheckpointData CHECKPOINTS[] = { - {79000, "cae33204e624faeb64938d80073bb7bbacc27017dc63f36c5c0f313cad455a02"}, - {140000, "993059fb6ab92db7d80d406c67a52d9c02d873ca34b6290a12b744c970208772"}, - {200000, "a5f74c7542077df6859f48b5b1f9c3741f29df38f91a47e14c94b5696e6c3073"}, - {230580, "32bd7cb6c68a599cf2861941f29002a5e203522b9af54f08dfced316f6459103"}, - {260000, "f68e70b360ca194f48084da7a7fd8e0251bbb4b5587f787ca65a6f5baf3f5947"}, - {300000, "8e80861713f68354760dc10ea6ea79f5f3ff28f39b3f0835a8637463b09d70ff"}, - {390285, "e00bdc9bf407aeace2f3109de11889ed25894bf194231d075eddaec838097eb7"}, - {417000, "2dc96f8fc4d4a4d76b3ed06722829a7ab09d310584b8ecedc9b578b2c458a69f"}, - {427193, "00feabb08f2d5759ed04fd6b799a7513187478696bba2db2af10d4347134e311"}, - {453537, "d17de6916c5aa6ffcae575309c80b0f8fdcd0a84b5fa8e41a841897d4b5a4e97"}, - {462250, "13468d210a5ec884cf839f0259f247ccf3efef0414ac45172033d32c739beb3e"}, - {468000, "251bcbd398b1f593193a7210934a3d87f692b2cb0c45206150f59683dd7e9ba1"}, - {480200, "363544ac9920c778b815c2fdbcbca70a0d79b21f662913a42da9b49e859f0e5b"}, - {484500, "5cdf2101a0a62a0ab2a1ca0c15a6212b21f6dbdc42a0b7c0bcf65ca40b7a14fb"}, - {506000, "3d54c1132f503d98d3f0d78bb46a4503c1a19447cb348361a2232e241cb45a3c"}, - {544000, "f69dc61b6a63217f32fa64d5d0f9bd920873f57dfd79ebe1d7d6fb1345b56fe0"}, - {553300, "f7a5076b887ce5f4bb95b2729c0edb6f077a463f04f1bffe7f5cb0b16bb8aa5f"}, - {580000, "93aea06936fa4dc0a84c9109c9d5f0e1b0815f96898171e42fd2973d262ed9ac"}, - {602000, "a05fd2fccbb5f567ece940ebb62a82fdb1517ff5696551ae704e5f0ef8edb979"}, - {623000, "7c92dd374efd0221065c7d98fce0568a1a1c130b5da28bb3f338cdc367b93d0b"}, - {645000, "1eeba944c0dd6b9a1228a425a74076fbdbeaf9b657ba7ef02547d99f971de70d"}, - {667000, "a020c8fcaa567845d04b520bb7ebe721e097a9bed2bdb8971081f933b5b42995"}, - {689000, "212ec2698c5ebd15d6242d59f36c2d186d11bb47c58054f476dd8e6b1c7f0008"}, - {713000, "a03f836c4a19f907cd6cac095eb6f56f5279ca2d1303fb7f826750dcb9025495"}, - {750300, "5117631dbeb5c14748a91127a515ecbf13f6849e14fda7ee03cd55da41f1710c"}, - {780000, "8dd55a9bae429e3685b90317281e633917023d3512eb7f37372209d1a5fc1070"}, - {785500, "de1a487d70964d25ed6f7de196866f357a293e867ee81313e7fd0352d0126bdd"}, - {789000, "acef490bbccce3b7b7ae8554a414f55413fbf4ca1472c6359b126a4439bd9f01"}, - {796000, "04e387a00d35db21d4d93d04040b31f22573972a7e61d72cc07d0ab69bcb9c44"}, - {800000, "d7fa4eea02e5ce60b949136569c0ea7ac71ea46e0065311054072ac415560b86"}, - {804000, "bcc8b3782499aae508c40d5587d1cc5d68281435ea9bfc6804a262047f7b934d"}, - {810500, "302b2349f221232820adc3dadafd8a61b035491e33af669c78a687949eb0a381"}, - {816000, "32b7fdd4e4d715db81f8f09f4ba5e5c78e8113f2804d61a57378baee479ce745"}, - {822000, "a3c9603c6813a0dc0efc40db288c356d1a7f02d1d2e47bee04346e73715f8984"}, - {841000, "2cffb6504ee38f708a6256a63585f9382b3b426e64b4504236c70678bd160dce"}, - {890000, "a7132932ea31236ce6b8775cd1380edf90b5e536ee4202c77b69a3d62445fcd2"}, - {894000, "ae2624ea1472ecc36de0d812f21a32da2d4afc7d5770830083cbaf652209d316"} +#ifdef __GNUC__ +__attribute__((unused)) +#endif + +// You may add here other checkpoints using the following format: +// {, ""}, +const std::initializer_list CHECKPOINTS = { + //{ 10000, "84b6345731e2702cdaadc6ce5e5238c4ca5ecf48e3447136b2ed829b8a95f3ad" }, }; } // CryptoNote diff --git a/src/CryptoNoteCore/Account.cpp b/src/CryptoNoteCore/Account.cpp index 9cf7e45837..c1c16623bd 100755 --- a/src/CryptoNoteCore/Account.cpp +++ b/src/CryptoNoteCore/Account.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Account.h" #include "CryptoNoteSerialization.h" diff --git a/src/CryptoNoteCore/Account.h b/src/CryptoNoteCore/Account.h old mode 100755 new mode 100644 index 2e879210c6..863fbf962f --- a/src/CryptoNoteCore/Account.h +++ b/src/CryptoNoteCore/Account.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/BlockIndex.cpp b/src/CryptoNoteCore/BlockIndex.cpp index bcd0f39225..d6cf5a1c23 100755 --- a/src/CryptoNoteCore/BlockIndex.cpp +++ b/src/CryptoNoteCore/BlockIndex.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockIndex.h" diff --git a/src/CryptoNoteCore/BlockIndex.h b/src/CryptoNoteCore/BlockIndex.h old mode 100755 new mode 100644 index 8f2cc942e7..046b818c13 --- a/src/CryptoNoteCore/BlockIndex.h +++ b/src/CryptoNoteCore/BlockIndex.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/CryptoNoteCore/Blockchain.cpp b/src/CryptoNoteCore/Blockchain.cpp index 7118705f19..3d42db488e 100644 --- a/src/CryptoNoteCore/Blockchain.cpp +++ b/src/CryptoNoteCore/Blockchain.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Blockchain.h" @@ -319,7 +306,6 @@ m_currency(currency), m_tx_pool(tx_pool), m_current_block_cumul_sz_limit(0), m_is_in_checkpoint_zone(false), -m_upgradeDetector(currency, m_blocks, BLOCK_MAJOR_VERSION_2, logger), m_checkpoints(logger) { m_outputs.set_deleted_key(0); @@ -457,11 +443,6 @@ bool Blockchain::init(const std::string& config_folder, bool load_existing) { } } - if (!m_upgradeDetector.init()) { - logger(ERROR, BRIGHT_RED) << "Failed to initialize upgrade detector"; - return false; - } - update_next_comulative_size_limit(); uint64_t timestamp_diff = time(NULL) - m_blocks.back().bl.timestamp; @@ -676,10 +657,6 @@ uint64_t Blockchain::getCoinsInCirculation() { } } -uint8_t Blockchain::getBlockMajorVersionForHeight(uint32_t height) const { - return height > m_upgradeDetector.upgradeHeight() ? m_upgradeDetector.targetVersion() : BLOCK_MAJOR_VERSION_1; -} - bool Blockchain::rollback_blockchain_switching(std::list &original_chain, size_t rollback_height) { std::lock_guard lk(m_blockchain_lock); // remove failed subchain @@ -872,8 +849,7 @@ bool Blockchain::validate_miner_transaction(const Block& b, uint32_t height, siz get_last_n_blocks_sizes(lastBlocksSizes, m_currency.rewardBlocksWindow()); size_t blocksSizeMedian = Common::medianValue(lastBlocksSizes); - bool penalizeFee = getBlockMajorVersionForHeight(height) > BLOCK_MAJOR_VERSION_1; - if (!m_currency.getBlockReward(blocksSizeMedian, cumulativeBlockSize, alreadyGeneratedCoins, fee, penalizeFee, reward, emissionChange)) { + if (!m_currency.getBlockReward(blocksSizeMedian, cumulativeBlockSize, alreadyGeneratedCoins, fee, reward, emissionChange)) { logger(INFO, BRIGHT_WHITE) << "block size " << cumulativeBlockSize << " is bigger than allowed for this blockchain"; return false; } @@ -956,16 +932,6 @@ bool Blockchain::handle_alternative_block(const Block& b, const Crypto::Hash& id return false; } - if (!checkBlockVersion(b, id)) { - bvc.m_verifivation_failed = true; - return false; - } - - if (!checkParentBlockSize(b, id)) { - bvc.m_verifivation_failed = true; - return false; - } - size_t cumulativeSize; if (!getBlockCumulativeSize(b, cumulativeSize)) { logger(TRACE) << "Block with id: " << id << " has at least one unknown transaction. Cumulative size is calculated imprecisely"; @@ -1579,39 +1545,6 @@ bool Blockchain::check_block_timestamp(std::vector timestamps, const B return true; } -bool Blockchain::checkBlockVersion(const Block& b, const Crypto::Hash& blockHash) { - uint32_t height = get_block_height(b); - const uint8_t expectedBlockVersion = getBlockMajorVersionForHeight(height); - if (b.majorVersion != expectedBlockVersion) { - logger(TRACE) << "Block " << blockHash << " has wrong major version: " << static_cast(b.majorVersion) << - ", at height " << height << " expected version is " << static_cast(expectedBlockVersion); - return false; - } - - return true; -} - -bool Blockchain::checkParentBlockSize(const Block& b, const Crypto::Hash& blockHash) { - if (BLOCK_MAJOR_VERSION_2 == b.majorVersion) { - auto serializer = makeParentBlockSerializer(b, false, false); - size_t parentBlockSize; - if (!getObjectBinarySize(serializer, parentBlockSize)) { - logger(ERROR, BRIGHT_RED) << - "Block " << blockHash << ": failed to determine parent block size"; - return false; - } - - if (parentBlockSize > 2 * 1024) { - logger(INFO, BRIGHT_WHITE) << - "Block " << blockHash << " contains too big parent block: " << parentBlockSize << - " bytes, expected no more than " << 2 * 1024 << " bytes"; - return false; - } - } - - return true; -} - bool Blockchain::checkCumulativeBlockSize(const Crypto::Hash& blockId, size_t cumulativeBlockSize, uint64_t height) { size_t maxBlockCumulativeSize = m_currency.maxBlockCumulativeSize(height); if (cumulativeBlockSize > maxBlockCumulativeSize) { @@ -1640,17 +1573,12 @@ bool Blockchain::getBlockCumulativeSize(const Block& block, size_t& cumulativeSi // Precondition: m_blockchain_lock is locked. bool Blockchain::update_next_comulative_size_limit() { - uint8_t nextBlockMajorVersion = getBlockMajorVersionForHeight(static_cast(m_blocks.size())); - size_t nextBlockGrantedFullRewardZone = nextBlockMajorVersion == BLOCK_MAJOR_VERSION_1 ? - parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1 : - m_currency.blockGrantedFullRewardZone(); - std::vector sz; get_last_n_blocks_sizes(sz, m_currency.rewardBlocksWindow()); uint64_t median = Common::medianValue(sz); - if (median <= nextBlockGrantedFullRewardZone) { - median = nextBlockGrantedFullRewardZone; + if (median <= m_currency.blockGrantedFullRewardZone()) { + median = m_currency.blockGrantedFullRewardZone(); } m_current_block_cumul_sz_limit = median * 2; @@ -1733,16 +1661,6 @@ bool Blockchain::pushBlock(const Block& blockData, const std::vector. +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -30,7 +17,6 @@ #include "CryptoNoteCore/IBlockchainStorageObserver.h" #include "CryptoNoteCore/ITransactionValidator.h" #include "CryptoNoteCore/SwappedVector.h" -#include "CryptoNoteCore/UpgradeDetector.h" #include "CryptoNoteCore/CryptoNoteFormatUtils.h" #include "CryptoNoteCore/TransactionPool.h" #include "CryptoNoteCore/BlockchainIndices.h" @@ -90,7 +76,6 @@ namespace CryptoNote { Crypto::Hash getTailId(uint32_t& height); difficulty_type getDifficultyForNextBlock(); uint64_t getCoinsInCirculation(); - uint8_t getBlockMajorVersionForHeight(uint32_t height) const; bool addNewBlock(const Block& bl_, block_verification_context& bvc); bool resetAndSetGenesisBlock(const Block& b); bool haveBlock(const Crypto::Hash& id); @@ -251,7 +236,6 @@ namespace CryptoNote { typedef SwappedVector Blocks; typedef std::unordered_map BlockMap; typedef std::unordered_map TransactionMap; - typedef BasicUpgradeDetector UpgradeDetector; friend class BlockCacheSerializer; friend class BlockchainIndicesSerializer; @@ -260,7 +244,6 @@ namespace CryptoNote { CryptoNote::BlockIndex m_blockIndex; TransactionMap m_transactionMap; MultisignatureOutputsContainer m_multisignatureOutputs; - UpgradeDetector m_upgradeDetector; PaymentIdIndex m_paymentIdIndex; TimestampBlocksIndex m_timestampIndex; @@ -287,8 +270,6 @@ namespace CryptoNote { bool check_block_timestamp(std::vector timestamps, const Block& b); uint64_t get_adjusted_time(); bool complete_timestamps_vector(uint64_t start_height, std::vector& timestamps); - bool checkBlockVersion(const Block& b, const Crypto::Hash& blockHash); - bool checkParentBlockSize(const Block& b, const Crypto::Hash& blockHash); bool checkCumulativeBlockSize(const Crypto::Hash& blockId, size_t cumulativeBlockSize, uint64_t height); std::vector doBuildSparseChain(const Crypto::Hash& startBlockId) const; bool getBlockCumulativeSize(const Block& block, size_t& cumulativeSize); diff --git a/src/CryptoNoteCore/BlockchainIndices.cpp b/src/CryptoNoteCore/BlockchainIndices.cpp index 584daa5017..0a67d3c2d2 100755 --- a/src/CryptoNoteCore/BlockchainIndices.cpp +++ b/src/CryptoNoteCore/BlockchainIndices.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockchainIndices.h" diff --git a/src/CryptoNoteCore/BlockchainIndices.h b/src/CryptoNoteCore/BlockchainIndices.h index 96d761896b..66d56760a3 100755 --- a/src/CryptoNoteCore/BlockchainIndices.h +++ b/src/CryptoNoteCore/BlockchainIndices.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/BlockchainMessages.cpp b/src/CryptoNoteCore/BlockchainMessages.cpp index 7b23cd38d1..9e0dc70eec 100644 --- a/src/CryptoNoteCore/BlockchainMessages.cpp +++ b/src/CryptoNoteCore/BlockchainMessages.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CryptoNoteCore/BlockchainMessages.h" diff --git a/src/CryptoNoteCore/BlockchainMessages.h b/src/CryptoNoteCore/BlockchainMessages.h index 544f9df4f9..aa555f230a 100644 --- a/src/CryptoNoteCore/BlockchainMessages.h +++ b/src/CryptoNoteCore/BlockchainMessages.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/Checkpoints.cpp b/src/CryptoNoteCore/Checkpoints.cpp index e58da8637e..8fb76ced68 100644 --- a/src/CryptoNoteCore/Checkpoints.cpp +++ b/src/CryptoNoteCore/Checkpoints.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Checkpoints.h" #include "Common/StringTools.h" diff --git a/src/CryptoNoteCore/Checkpoints.h b/src/CryptoNoteCore/Checkpoints.h old mode 100755 new mode 100644 index 0d1f3c4fda..7e8e62f798 --- a/src/CryptoNoteCore/Checkpoints.h +++ b/src/CryptoNoteCore/Checkpoints.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include diff --git a/src/CryptoNoteCore/Core.cpp b/src/CryptoNoteCore/Core.cpp index d6d5289115..65ef396126 100755 --- a/src/CryptoNoteCore/Core.cpp +++ b/src/CryptoNoteCore/Core.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Core.h" @@ -327,23 +314,8 @@ bool core::get_block_template(Block& b, const AccountPublicAddress& adr, difficu } b = boost::value_initialized(); - b.majorVersion = m_blockchain.getBlockMajorVersionForHeight(height); - - if (BLOCK_MAJOR_VERSION_1 == b.majorVersion) { - b.minorVersion = BLOCK_MINOR_VERSION_1; - } else if (BLOCK_MAJOR_VERSION_2 == b.majorVersion) { - b.minorVersion = BLOCK_MINOR_VERSION_0; - - b.parentBlock.majorVersion = BLOCK_MAJOR_VERSION_1; - b.parentBlock.majorVersion = BLOCK_MINOR_VERSION_0; - b.parentBlock.transactionCount = 1; - TransactionExtraMergeMiningTag mm_tag = boost::value_initialized(); - - if (!appendMergeMiningTagToExtra(b.parentBlock.baseTransaction.extra, mm_tag)) { - logger(ERROR, BRIGHT_RED) << "Failed to append merge mining tag to extra of the parent block miner transaction"; - return false; - } - } + b.majorVersion = BLOCK_MAJOR_VERSION_1; + b.minorVersion = BLOCK_MINOR_VERSION_0; b.previousBlockHash = get_tail_id(); b.timestamp = time(NULL); @@ -364,8 +336,7 @@ bool core::get_block_template(Block& b, const AccountPublicAddress& adr, difficu block size, so first miner transaction generated with fake amount of money, and with phase we know think we know expected block size */ //make blocks coin-base tx looks close to real coinbase tx to get truthful blob size - bool penalizeFee = b.majorVersion > BLOCK_MAJOR_VERSION_1; - bool r = m_currency.constructMinerTx(height, median_size, already_generated_coins, txs_size, fee, adr, b.baseTransaction, ex_nonce, 11, penalizeFee); + bool r = m_currency.constructMinerTx(height, median_size, already_generated_coins, txs_size, fee, adr, b.baseTransaction, ex_nonce, 11); if (!r) { logger(ERROR, BRIGHT_RED) << "Failed to construct miner tx, first chance"; return false; @@ -373,7 +344,7 @@ bool core::get_block_template(Block& b, const AccountPublicAddress& adr, difficu size_t cumulative_size = txs_size + getObjectBinarySize(b.baseTransaction); for (size_t try_count = 0; try_count != 10; ++try_count) { - r = m_currency.constructMinerTx(height, median_size, already_generated_coins, cumulative_size, fee, adr, b.baseTransaction, ex_nonce, 11, penalizeFee); + r = m_currency.constructMinerTx(height, median_size, already_generated_coins, cumulative_size, fee, adr, b.baseTransaction, ex_nonce, 11); if (!(r)) { logger(ERROR, BRIGHT_RED) << "Failed to construct miner tx, second chance"; return false; } size_t coinbase_blob_size = getObjectBinarySize(b.baseTransaction); @@ -833,8 +804,8 @@ bool core::getAlreadyGeneratedCoins(const Crypto::Hash& hash, uint64_t& generate } bool core::getBlockReward(size_t medianSize, size_t currentBlockSize, uint64_t alreadyGeneratedCoins, uint64_t fee, - bool penalizeFee, uint64_t& reward, int64_t& emissionChange) { - return m_currency.getBlockReward(medianSize, currentBlockSize, alreadyGeneratedCoins, fee, penalizeFee, reward, emissionChange); + uint64_t& reward, int64_t& emissionChange) { + return m_currency.getBlockReward(medianSize, currentBlockSize, alreadyGeneratedCoins, fee, reward, emissionChange); } bool core::scanOutputkeysForIndices(const KeyInput& txInToKey, std::list>& outputReferences) { diff --git a/src/CryptoNoteCore/Core.h b/src/CryptoNoteCore/Core.h index e2838e86c8..3e6e2fd5cc 100755 --- a/src/CryptoNoteCore/Core.h +++ b/src/CryptoNoteCore/Core.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -74,7 +61,7 @@ namespace CryptoNote { virtual bool getBlockSize(const Crypto::Hash& hash, size_t& size) override; virtual bool getAlreadyGeneratedCoins(const Crypto::Hash& hash, uint64_t& generatedCoins) override; virtual bool getBlockReward(size_t medianSize, size_t currentBlockSize, uint64_t alreadyGeneratedCoins, uint64_t fee, - bool penalizeFee, uint64_t& reward, int64_t& emissionChange) override; + uint64_t& reward, int64_t& emissionChange) override; virtual bool scanOutputkeysForIndices(const KeyInput& txInToKey, std::list>& outputReferences) override; virtual bool getBlockDifficulty(uint32_t height, difficulty_type& difficulty) override; virtual bool getBlockContainingTx(const Crypto::Hash& txId, Crypto::Hash& blockId, uint32_t& blockHeight) override; diff --git a/src/CryptoNoteCore/CoreConfig.cpp b/src/CryptoNoteCore/CoreConfig.cpp old mode 100755 new mode 100644 index 14c83d03cd..4b9e36e04d --- a/src/CryptoNoteCore/CoreConfig.cpp +++ b/src/CryptoNoteCore/CoreConfig.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CoreConfig.h" diff --git a/src/CryptoNoteCore/CoreConfig.h b/src/CryptoNoteCore/CoreConfig.h index 7ef7cbc6ac..d79f451687 100644 --- a/src/CryptoNoteCore/CoreConfig.h +++ b/src/CryptoNoteCore/CoreConfig.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/CryptoNoteBasic.cpp b/src/CryptoNoteCore/CryptoNoteBasic.cpp index 6a56862ca1..df683a492c 100755 --- a/src/CryptoNoteCore/CryptoNoteBasic.cpp +++ b/src/CryptoNoteCore/CryptoNoteBasic.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CryptoNoteBasic.h" #include "crypto/crypto.h" diff --git a/src/CryptoNoteCore/CryptoNoteBasic.h b/src/CryptoNoteCore/CryptoNoteBasic.h index 4d3558fbb9..c1f25d9464 100755 --- a/src/CryptoNoteCore/CryptoNoteBasic.h +++ b/src/CryptoNoteCore/CryptoNoteBasic.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -26,22 +13,4 @@ namespace CryptoNote { const Crypto::SecretKey NULL_SECRET_KEY = boost::value_initialized(); KeyPair generateKeyPair(); - - struct ParentBlockSerializer { - ParentBlockSerializer(ParentBlock& parentBlock, uint64_t& timestamp, uint32_t& nonce, bool hashingSerialization, bool headerOnly) : - m_parentBlock(parentBlock), m_timestamp(timestamp), m_nonce(nonce), m_hashingSerialization(hashingSerialization), m_headerOnly(headerOnly) { - } - - ParentBlock& m_parentBlock; - uint64_t& m_timestamp; - uint32_t& m_nonce; - bool m_hashingSerialization; - bool m_headerOnly; - }; - - inline ParentBlockSerializer makeParentBlockSerializer(const Block& b, bool hashingSerialization, bool headerOnly) { - Block& blockRef = const_cast(b); - return ParentBlockSerializer(blockRef.parentBlock, blockRef.timestamp, blockRef.nonce, hashingSerialization, headerOnly); - } - } diff --git a/src/CryptoNoteCore/CryptoNoteBasicImpl.cpp b/src/CryptoNoteCore/CryptoNoteBasicImpl.cpp index 8192b26dc0..25897dbb27 100644 --- a/src/CryptoNoteCore/CryptoNoteBasicImpl.cpp +++ b/src/CryptoNoteCore/CryptoNoteBasicImpl.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CryptoNoteBasicImpl.h" #include "CryptoNoteFormatUtils.h" diff --git a/src/CryptoNoteCore/CryptoNoteBasicImpl.h b/src/CryptoNoteCore/CryptoNoteBasicImpl.h old mode 100755 new mode 100644 index 3dce926246..f67ff6c364 --- a/src/CryptoNoteCore/CryptoNoteBasicImpl.h +++ b/src/CryptoNoteCore/CryptoNoteBasicImpl.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/CryptoNoteFormatUtils.cpp b/src/CryptoNoteCore/CryptoNoteFormatUtils.cpp index b60c6a96ea..d4526fa42c 100644 --- a/src/CryptoNoteCore/CryptoNoteFormatUtils.cpp +++ b/src/CryptoNoteCore/CryptoNoteFormatUtils.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CryptoNoteFormatUtils.h" @@ -453,26 +440,12 @@ bool get_block_hashing_blob(const Block& b, BinaryArray& ba) { return true; } -bool get_parent_block_hashing_blob(const Block& b, BinaryArray& blob) { - auto serializer = makeParentBlockSerializer(b, true, true); - return toBinaryArray(serializer, blob); -} - bool get_block_hash(const Block& b, Hash& res) { BinaryArray ba; if (!get_block_hashing_blob(b, ba)) { return false; } - if (BLOCK_MAJOR_VERSION_2 <= b.majorVersion) { - BinaryArray parent_blob; - auto serializer = makeParentBlockSerializer(b, true, false); - if (!toBinaryArray(serializer, parent_blob)) - return false; - - ba.insert(ba.end(), parent_blob.begin(), parent_blob.end()); - } - return getObjectHash(ba, res); } @@ -493,17 +466,10 @@ bool get_aux_block_header_hash(const Block& b, Hash& res) { bool get_block_longhash(cn_context &context, const Block& b, Hash& res) { BinaryArray bd; - if (b.majorVersion == BLOCK_MAJOR_VERSION_1) { - if (!get_block_hashing_blob(b, bd)) { - return false; - } - } else if (b.majorVersion == BLOCK_MAJOR_VERSION_2) { - if (!get_parent_block_hashing_blob(b, bd)) { - return false; - } - } else { + if (!get_block_hashing_blob(b, bd)) { return false; } + cn_slow_hash(context, bd.data(), bd.size(), res); return true; } diff --git a/src/CryptoNoteCore/CryptoNoteFormatUtils.h b/src/CryptoNoteCore/CryptoNoteFormatUtils.h index 7809a0d61f..b08fe9845b 100755 --- a/src/CryptoNoteCore/CryptoNoteFormatUtils.h +++ b/src/CryptoNoteCore/CryptoNoteFormatUtils.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -69,7 +56,6 @@ bool generate_key_image_helper(const AccountKeys& ack, const Crypto::PublicKey& std::string short_hash_str(const Crypto::Hash& h); bool get_block_hashing_blob(const Block& b, BinaryArray& blob); -bool get_parent_block_hashing_blob(const Block& b, BinaryArray& blob); bool get_aux_block_header_hash(const Block& b, Crypto::Hash& res); bool get_block_hash(const Block& b, Crypto::Hash& res); Crypto::Hash get_block_hash(const Block& b); diff --git a/src/CryptoNoteCore/CryptoNoteSerialization.cpp b/src/CryptoNoteCore/CryptoNoteSerialization.cpp index cc7e9a4302..8e19753cb2 100644 --- a/src/CryptoNoteCore/CryptoNoteSerialization.cpp +++ b/src/CryptoNoteCore/CryptoNoteSerialization.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CryptoNoteSerialization.h" @@ -304,98 +291,16 @@ void serialize(MultisignatureOutput& multisignature, ISerializer& serializer) { serializer(multisignature.requiredSignatureCount, "required_signatures"); } -void serialize(ParentBlockSerializer& pbs, ISerializer& serializer) { - serializer(pbs.m_parentBlock.majorVersion, "majorVersion"); - - if (BLOCK_MAJOR_VERSION_1 < pbs.m_parentBlock.majorVersion) { - throw std::runtime_error("Wrong parent block major version"); - } - - serializer(pbs.m_parentBlock.minorVersion, "minorVersion"); - serializer(pbs.m_timestamp, "timestamp"); - serializer(pbs.m_parentBlock.previousBlockHash, "prevId"); - serializer.binary(&pbs.m_nonce, sizeof(pbs.m_nonce), "nonce"); - - if (pbs.m_hashingSerialization) { - Crypto::Hash minerTxHash; - if (!getObjectHash(pbs.m_parentBlock.baseTransaction, minerTxHash)) { - throw std::runtime_error("Get transaction hash error"); - } - - Crypto::Hash merkleRoot; - Crypto::tree_hash_from_branch(pbs.m_parentBlock.baseTransactionBranch.data(), pbs.m_parentBlock.baseTransactionBranch.size(), minerTxHash, 0, merkleRoot); - - serializer(merkleRoot, "merkleRoot"); - } - - uint64_t txNum = static_cast(pbs.m_parentBlock.transactionCount); - serializer(txNum, "numberOfTransactions"); - pbs.m_parentBlock.transactionCount = static_cast(txNum); - if (pbs.m_parentBlock.transactionCount < 1) { - throw std::runtime_error("Wrong transactions number"); - } - - if (pbs.m_headerOnly) { - return; - } - - size_t branchSize = Crypto::tree_depth(pbs.m_parentBlock.transactionCount); - if (serializer.type() == ISerializer::OUTPUT) { - if (pbs.m_parentBlock.baseTransactionBranch.size() != branchSize) { - throw std::runtime_error("Wrong miner transaction branch size"); - } - } else { - pbs.m_parentBlock.baseTransactionBranch.resize(branchSize); - } - -// serializer(m_parentBlock.baseTransactionBranch, "baseTransactionBranch"); - //TODO: Make arrays with computable size! This code won't work with json serialization! - for (Crypto::Hash& hash: pbs.m_parentBlock.baseTransactionBranch) { - serializer(hash, ""); - } - - serializer(pbs.m_parentBlock.baseTransaction, "minerTx"); - - TransactionExtraMergeMiningTag mmTag; - if (!getMergeMiningTagFromExtra(pbs.m_parentBlock.baseTransaction.extra, mmTag)) { - throw std::runtime_error("Can't get extra merge mining tag"); - } - - if (mmTag.depth > 8 * sizeof(Crypto::Hash)) { - throw std::runtime_error("Wrong merge mining tag depth"); - } - - if (serializer.type() == ISerializer::OUTPUT) { - if (mmTag.depth != pbs.m_parentBlock.blockchainBranch.size()) { - throw std::runtime_error("Blockchain branch size must be equal to merge mining tag depth"); - } - } else { - pbs.m_parentBlock.blockchainBranch.resize(mmTag.depth); - } - -// serializer(m_parentBlock.blockchainBranch, "blockchainBranch"); - //TODO: Make arrays with computable size! This code won't work with json serialization! - for (Crypto::Hash& hash: pbs.m_parentBlock.blockchainBranch) { - serializer(hash, ""); - } -} - void serializeBlockHeader(BlockHeader& header, ISerializer& serializer) { serializer(header.majorVersion, "major_version"); - if (header.majorVersion > BLOCK_MAJOR_VERSION_2) { + if (header.majorVersion > BLOCK_MAJOR_VERSION_1) { throw std::runtime_error("Wrong major version"); } serializer(header.minorVersion, "minor_version"); - if (header.majorVersion == BLOCK_MAJOR_VERSION_1) { - serializer(header.timestamp, "timestamp"); - serializer(header.previousBlockHash, "prev_id"); - serializer.binary(&header.nonce, sizeof(header.nonce), "nonce"); - } else if (header.majorVersion == BLOCK_MAJOR_VERSION_2) { - serializer(header.previousBlockHash, "prev_id"); - } else { - throw std::runtime_error("Wrong major version"); - } + serializer(header.timestamp, "timestamp"); + serializer(header.previousBlockHash, "prev_id"); + serializer.binary(&header.nonce, sizeof(header.nonce), "nonce"); } void serialize(BlockHeader& header, ISerializer& serializer) { @@ -405,11 +310,6 @@ void serialize(BlockHeader& header, ISerializer& serializer) { void serialize(Block& block, ISerializer& serializer) { serializeBlockHeader(block, serializer); - if (block.majorVersion == BLOCK_MAJOR_VERSION_2) { - auto parentBlockSerializer = makeParentBlockSerializer(block, false, false); - serializer(parentBlockSerializer, "parent_block"); - } - serializer(block.baseTransaction, "miner_tx"); serializer(block.transactionHashes, "tx_hashes"); } @@ -425,29 +325,6 @@ void serialize(AccountKeys& keys, ISerializer& s) { s(keys.viewSecretKey, "m_view_secret_key"); } -void doSerialize(TransactionExtraMergeMiningTag& tag, ISerializer& serializer) { - uint64_t depth = static_cast(tag.depth); - serializer(depth, "depth"); - tag.depth = static_cast(depth); - serializer(tag.merkleRoot, "merkle_root"); -} - -void serialize(TransactionExtraMergeMiningTag& tag, ISerializer& serializer) { - if (serializer.type() == ISerializer::OUTPUT) { - std::string field; - StringOutputStream os(field); - BinaryOutputStreamSerializer output(os); - doSerialize(tag, output); - serializer(field, ""); - } else { - std::string field; - serializer(field, ""); - MemoryInputStream stream(field.data(), field.size()); - BinaryInputStreamSerializer input(stream); - doSerialize(tag, input); - } -} - void serialize(KeyPair& keyPair, ISerializer& serializer) { serializer(keyPair.secretKey, "secret_key"); serializer(keyPair.publicKey, "public_key"); diff --git a/src/CryptoNoteCore/CryptoNoteSerialization.h b/src/CryptoNoteCore/CryptoNoteSerialization.h index 49ee1ad30c..cbb7ba64fb 100755 --- a/src/CryptoNoteCore/CryptoNoteSerialization.h +++ b/src/CryptoNoteCore/CryptoNoteSerialization.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -38,7 +25,6 @@ bool serialize(EllipticCurvePoint& ecPoint, Common::StringView name, CryptoNote: namespace CryptoNote { struct AccountKeys; -struct TransactionExtraMergeMiningTag; void serialize(TransactionPrefix& txP, ISerializer& serializer); void serialize(Transaction& tx, ISerializer& serializer); @@ -56,8 +42,6 @@ void serialize(MultisignatureOutput& multisignature, ISerializer& serializer); void serialize(BlockHeader& header, ISerializer& serializer); void serialize(Block& block, ISerializer& serializer); -void serialize(ParentBlockSerializer& pbs, ISerializer& serializer); -void serialize(TransactionExtraMergeMiningTag& tag, ISerializer& serializer); void serialize(AccountPublicAddress& address, ISerializer& serializer); void serialize(AccountKeys& keys, ISerializer& s); diff --git a/src/CryptoNoteCore/CryptoNoteStatInfo.h b/src/CryptoNoteCore/CryptoNoteStatInfo.h old mode 100755 new mode 100644 index 5fd0ec7b0d..62bcd5e59c --- a/src/CryptoNoteCore/CryptoNoteStatInfo.h +++ b/src/CryptoNoteCore/CryptoNoteStatInfo.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/CryptoNoteTools.cpp b/src/CryptoNoteCore/CryptoNoteTools.cpp index 24065ab717..1f1a00f95e 100755 --- a/src/CryptoNoteCore/CryptoNoteTools.cpp +++ b/src/CryptoNoteCore/CryptoNoteTools.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CryptoNoteTools.h" #include "CryptoNoteFormatUtils.h" diff --git a/src/CryptoNoteCore/CryptoNoteTools.h b/src/CryptoNoteCore/CryptoNoteTools.h index 97660f28e5..296b18b204 100755 --- a/src/CryptoNoteCore/CryptoNoteTools.h +++ b/src/CryptoNoteCore/CryptoNoteTools.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/Currency.cpp b/src/CryptoNoteCore/Currency.cpp index 6993f6cbe1..bfdc7b9e09 100755 --- a/src/CryptoNoteCore/Currency.cpp +++ b/src/CryptoNoteCore/Currency.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Currency.h" #include @@ -28,7 +15,6 @@ #include "CryptoNoteFormatUtils.h" #include "CryptoNoteTools.h" #include "TransactionExtra.h" -#include "UpgradeDetector.h" #undef ERROR @@ -72,7 +58,6 @@ bool Currency::init() { } if (isTestnet()) { - m_upgradeHeight = 0; m_blocksFileName = "testnet_" + m_blocksFileName; m_blocksCacheFileName = "testnet_" + m_blocksCacheFileName; m_blockIndexesFileName = "testnet_" + m_blockIndexesFileName; @@ -86,14 +71,8 @@ bool Currency::init() { bool Currency::generateGenesisBlock() { m_genesisBlock = boost::value_initialized(); - //account_public_address ac = boost::value_initialized(); - //std::vector sz; - //constructMinerTx(0, 0, 0, 0, 0, ac, m_genesisBlock.baseTransaction); // zero fee in genesis - //BinaryArray txb = toBinaryArray(m_genesisBlock.baseTransaction); - //std::string hex_tx_represent = Common::toHex(txb); - - // Hard code coinbase tx in genesis block, because through generating tx use random, but genesis should be always the same - std::string genesisCoinbaseTxHex = "010a01ff0001ffffffffffff0f029b2e4c0281c0b02e7c53291a94d1d0cbff8883f8024f5142ee494ffbbd08807121013c086a48c15fb637a96991bc6d53caf77068b5ba6eeb3c82357228c49790584a"; + // Hard code coinbase tx in genesis block, because "tru" generating tx use random, but genesis should be always the same + std::string genesisCoinbaseTxHex = GENESIS_COINBASE_TX_HEX; BinaryArray minerTxBlob; bool r = @@ -118,23 +97,20 @@ bool Currency::generateGenesisBlock() { } bool Currency::getBlockReward(size_t medianSize, size_t currentBlockSize, uint64_t alreadyGeneratedCoins, - uint64_t fee, bool penalizeFee, uint64_t& reward, int64_t& emissionChange) const { + uint64_t fee, uint64_t& reward, int64_t& emissionChange) const { assert(alreadyGeneratedCoins <= m_moneySupply); assert(m_emissionSpeedFactor > 0 && m_emissionSpeedFactor <= 8 * sizeof(uint64_t)); uint64_t baseReward = (m_moneySupply - alreadyGeneratedCoins) >> m_emissionSpeedFactor; - size_t blockGrantedFullRewardZone = penalizeFee ? - m_blockGrantedFullRewardZone : - CryptoNote::parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1; - medianSize = std::max(medianSize, blockGrantedFullRewardZone); + medianSize = std::max(medianSize, m_blockGrantedFullRewardZone); if (currentBlockSize > UINT64_C(2) * medianSize) { logger(TRACE) << "Block cumulative size is too big: " << currentBlockSize << ", expected less than " << 2 * medianSize; return false; } uint64_t penalizedBaseReward = getPenalizedAmount(baseReward, medianSize, currentBlockSize); - uint64_t penalizedFee = penalizeFee ? getPenalizedAmount(fee, medianSize, currentBlockSize) : fee; + uint64_t penalizedFee = getPenalizedAmount(fee, medianSize, currentBlockSize); emissionChange = penalizedBaseReward - (fee - penalizedFee); reward = penalizedBaseReward + penalizedFee; @@ -152,8 +128,7 @@ size_t Currency::maxBlockCumulativeSize(uint64_t height) const { bool Currency::constructMinerTx(uint32_t height, size_t medianSize, uint64_t alreadyGeneratedCoins, size_t currentBlockSize, uint64_t fee, const AccountPublicAddress& minerAddress, Transaction& tx, - const BinaryArray& extraNonce/* = BinaryArray()*/, size_t maxOuts/* = 1*/, - bool penalizeFee/* = false*/) const { + const BinaryArray& extraNonce/* = BinaryArray()*/, size_t maxOuts/* = 1*/) const { tx.inputs.clear(); tx.outputs.clear(); tx.extra.clear(); @@ -171,7 +146,7 @@ bool Currency::constructMinerTx(uint32_t height, size_t medianSize, uint64_t alr uint64_t blockReward; int64_t emissionChange; - if (!getBlockReward(medianSize, currentBlockSize, alreadyGeneratedCoins, fee, penalizeFee, blockReward, emissionChange)) { + if (!getBlockReward(medianSize, currentBlockSize, alreadyGeneratedCoins, fee, blockReward, emissionChange)) { logger(INFO) << "Block is too big"; return false; } @@ -422,11 +397,8 @@ difficulty_type Currency::nextDifficulty(std::vector timestamps, return (low + timeSpan - 1) / timeSpan; } -bool Currency::checkProofOfWorkV1(Crypto::cn_context& context, const Block& block, difficulty_type currentDiffic, +bool Currency::checkProofOfWork(Crypto::cn_context& context, const Block& block, difficulty_type currentDiffic, Crypto::Hash& proofOfWork) const { - if (BLOCK_MAJOR_VERSION_1 != block.majorVersion) { - return false; - } if (!get_block_longhash(context, block, proofOfWork)) { return false; @@ -435,57 +407,6 @@ bool Currency::checkProofOfWorkV1(Crypto::cn_context& context, const Block& bloc return check_hash(proofOfWork, currentDiffic); } -bool Currency::checkProofOfWorkV2(Crypto::cn_context& context, const Block& block, difficulty_type currentDiffic, - Crypto::Hash& proofOfWork) const { - if (BLOCK_MAJOR_VERSION_2 != block.majorVersion) { - return false; - } - - if (!get_block_longhash(context, block, proofOfWork)) { - return false; - } - - if (!check_hash(proofOfWork, currentDiffic)) { - return false; - } - - TransactionExtraMergeMiningTag mmTag; - if (!getMergeMiningTagFromExtra(block.parentBlock.baseTransaction.extra, mmTag)) { - logger(ERROR) << "merge mining tag wasn't found in extra of the parent block miner transaction"; - return false; - } - - if (8 * sizeof(m_genesisBlockHash) < block.parentBlock.blockchainBranch.size()) { - return false; - } - - Crypto::Hash auxBlockHeaderHash; - if (!get_aux_block_header_hash(block, auxBlockHeaderHash)) { - return false; - } - - Crypto::Hash auxBlocksMerkleRoot; - Crypto::tree_hash_from_branch(block.parentBlock.blockchainBranch.data(), block.parentBlock.blockchainBranch.size(), - auxBlockHeaderHash, &m_genesisBlockHash, auxBlocksMerkleRoot); - - if (auxBlocksMerkleRoot != mmTag.merkleRoot) { - logger(ERROR, BRIGHT_YELLOW) << "Aux block hash wasn't found in merkle tree"; - return false; - } - - return true; -} - -bool Currency::checkProofOfWork(Crypto::cn_context& context, const Block& block, difficulty_type currentDiffic, Crypto::Hash& proofOfWork) const { - switch (block.majorVersion) { - case BLOCK_MAJOR_VERSION_1: return checkProofOfWorkV1(context, block, currentDiffic, proofOfWork); - case BLOCK_MAJOR_VERSION_2: return checkProofOfWorkV2(context, block, currentDiffic, proofOfWork); - } - - logger(ERROR, BRIGHT_RED) << "Unknown block major version: " << block.majorVersion << "." << block.minorVersion; - return false; -} - size_t Currency::getApproximateMaximumInputCount(size_t transactionSize, size_t outputCount, size_t mixinCount) const { const size_t KEY_IMAGE_SIZE = sizeof(Crypto::KeyImage); const size_t OUTPUT_KEY_SIZE = sizeof(decltype(KeyOutput::key)); @@ -551,11 +472,6 @@ CurrencyBuilder::CurrencyBuilder(Logging::ILogger& log) : m_currency(log) { fusionTxMinInputCount(parameters::FUSION_TX_MIN_INPUT_COUNT); fusionTxMinInOutCountRatio(parameters::FUSION_TX_MIN_IN_OUT_COUNT_RATIO); - upgradeHeight(parameters::UPGRADE_HEIGHT); - upgradeVotingThreshold(parameters::UPGRADE_VOTING_THRESHOLD); - upgradeVotingWindow(parameters::UPGRADE_VOTING_WINDOW); - upgradeWindow(parameters::UPGRADE_WINDOW); - blocksFileName(parameters::CRYPTONOTE_BLOCKS_FILENAME); blocksCacheFileName(parameters::CRYPTONOTE_BLOCKSCACHE_FILENAME); blockIndexesFileName(parameters::CRYPTONOTE_BLOCKINDEXES_FILENAME); @@ -565,6 +481,14 @@ CurrencyBuilder::CurrencyBuilder(Logging::ILogger& log) : m_currency(log) { testnet(false); } +Transaction CurrencyBuilder::generateGenesisTransaction() { + CryptoNote::Transaction tx; + CryptoNote::AccountPublicAddress ac = boost::value_initialized(); + m_currency.constructMinerTx(0, 0, 0, 0, 0, ac, tx); // zero fee in genesis + + return tx; +} + CurrencyBuilder& CurrencyBuilder::emissionSpeedFactor(unsigned int val) { if (val <= 0 || val > 8 * sizeof(uint64_t)) { throw std::invalid_argument("val at emissionSpeedFactor()"); @@ -592,22 +516,4 @@ CurrencyBuilder& CurrencyBuilder::difficultyWindow(size_t val) { return *this; } -CurrencyBuilder& CurrencyBuilder::upgradeVotingThreshold(unsigned int val) { - if (val <= 0 || val > 100) { - throw std::invalid_argument("val at upgradeVotingThreshold()"); - } - - m_currency.m_upgradeVotingThreshold = val; - return *this; -} - -CurrencyBuilder& CurrencyBuilder::upgradeWindow(size_t val) { - if (val <= 0) { - throw std::invalid_argument("val at upgradeWindow()"); - } - - m_currency.m_upgradeWindow = val; - return *this; -} - } diff --git a/src/CryptoNoteCore/Currency.h b/src/CryptoNoteCore/Currency.h index 72db972150..30b727efe9 100755 --- a/src/CryptoNoteCore/Currency.h +++ b/src/CryptoNoteCore/Currency.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -76,14 +63,6 @@ class Currency { size_t fusionTxMinInputCount() const { return m_fusionTxMinInputCount; } size_t fusionTxMinInOutCountRatio() const { return m_fusionTxMinInOutCountRatio; } - uint64_t upgradeHeight() const { return m_upgradeHeight; } - unsigned int upgradeVotingThreshold() const { return m_upgradeVotingThreshold; } - size_t upgradeVotingWindow() const { return m_upgradeVotingWindow; } - size_t upgradeWindow() const { return m_upgradeWindow; } - size_t minNumberVotingBlocks() const { return (m_upgradeVotingWindow * m_upgradeVotingThreshold + 99) / 100; } - uint64_t maxUpgradeDistance() const { return static_cast(m_upgradeWindow); } - uint64_t calculateUpgradeHeight(uint64_t voteCompleteHeight) const { return voteCompleteHeight + m_upgradeWindow; } - const std::string& blocksFileName() const { return m_blocksFileName; } const std::string& blocksCacheFileName() const { return m_blocksCacheFileName; } const std::string& blockIndexesFileName() const { return m_blockIndexesFileName; } @@ -96,12 +75,12 @@ class Currency { const Crypto::Hash& genesisBlockHash() const { return m_genesisBlockHash; } bool getBlockReward(size_t medianSize, size_t currentBlockSize, uint64_t alreadyGeneratedCoins, uint64_t fee, - bool penalizeFee, uint64_t& reward, int64_t& emissionChange) const; + uint64_t& reward, int64_t& emissionChange) const; size_t maxBlockCumulativeSize(uint64_t height) const; bool constructMinerTx(uint32_t height, size_t medianSize, uint64_t alreadyGeneratedCoins, size_t currentBlockSize, uint64_t fee, const AccountPublicAddress& minerAddress, Transaction& tx, - const BinaryArray& extraNonce = BinaryArray(), size_t maxOuts = 1, bool penalizeFee = false) const; + const BinaryArray& extraNonce = BinaryArray(), size_t maxOuts = 1) const; bool isFusionTransaction(const Transaction& transaction) const; bool isFusionTransaction(const Transaction& transaction, size_t size) const; @@ -118,9 +97,6 @@ class Currency { bool parseAmount(const std::string& str, uint64_t& amount) const; difficulty_type nextDifficulty(std::vector timestamps, std::vector cumulativeDifficulties) const; - - bool checkProofOfWorkV1(Crypto::cn_context& context, const Block& block, difficulty_type currentDiffic, Crypto::Hash& proofOfWork) const; - bool checkProofOfWorkV2(Crypto::cn_context& context, const Block& block, difficulty_type currentDiffic, Crypto::Hash& proofOfWork) const; bool checkProofOfWork(Crypto::cn_context& context, const Block& block, difficulty_type currentDiffic, Crypto::Hash& proofOfWork) const; size_t getApproximateMaximumInputCount(size_t transactionSize, size_t outputCount, size_t mixinCount) const; @@ -176,11 +152,6 @@ class Currency { size_t m_fusionTxMinInputCount; size_t m_fusionTxMinInOutCountRatio; - uint64_t m_upgradeHeight; - unsigned int m_upgradeVotingThreshold; - size_t m_upgradeVotingWindow; - size_t m_upgradeWindow; - std::string m_blocksFileName; std::string m_blocksCacheFileName; std::string m_blockIndexesFileName; @@ -210,6 +181,8 @@ class CurrencyBuilder : boost::noncopyable { return m_currency; } + Transaction generateGenesisTransaction(); + CurrencyBuilder& maxBlockNumber(uint64_t val) { m_currency.m_maxBlockHeight = val; return *this; } CurrencyBuilder& maxBlockBlobSize(size_t val) { m_currency.m_maxBlockBlobSize = val; return *this; } CurrencyBuilder& maxTxSize(size_t val) { m_currency.m_maxTxSize = val; return *this; } @@ -251,11 +224,6 @@ class CurrencyBuilder : boost::noncopyable { CurrencyBuilder& fusionTxMinInputCount(size_t val) { m_currency.m_fusionTxMinInputCount = val; return *this; } CurrencyBuilder& fusionTxMinInOutCountRatio(size_t val) { m_currency.m_fusionTxMinInOutCountRatio = val; return *this; } - CurrencyBuilder& upgradeHeight(uint64_t val) { m_currency.m_upgradeHeight = val; return *this; } - CurrencyBuilder& upgradeVotingThreshold(unsigned int val); - CurrencyBuilder& upgradeVotingWindow(size_t val) { m_currency.m_upgradeVotingWindow = val; return *this; } - CurrencyBuilder& upgradeWindow(size_t val); - CurrencyBuilder& blocksFileName(const std::string& val) { m_currency.m_blocksFileName = val; return *this; } CurrencyBuilder& blocksCacheFileName(const std::string& val) { m_currency.m_blocksCacheFileName = val; return *this; } CurrencyBuilder& blockIndexesFileName(const std::string& val) { m_currency.m_blockIndexesFileName = val; return *this; } diff --git a/src/CryptoNoteCore/Difficulty.cpp b/src/CryptoNoteCore/Difficulty.cpp old mode 100755 new mode 100644 index 8b37efd41d..ec5ef0b020 --- a/src/CryptoNoteCore/Difficulty.cpp +++ b/src/CryptoNoteCore/Difficulty.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/CryptoNoteCore/Difficulty.h b/src/CryptoNoteCore/Difficulty.h old mode 100755 new mode 100644 index f59336a96b..8418f70455 --- a/src/CryptoNoteCore/Difficulty.h +++ b/src/CryptoNoteCore/Difficulty.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/IBlock.cpp b/src/CryptoNoteCore/IBlock.cpp index a6336e6c1f..d5e8fab3cf 100644 --- a/src/CryptoNoteCore/IBlock.cpp +++ b/src/CryptoNoteCore/IBlock.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "IBlock.h" diff --git a/src/CryptoNoteCore/IBlock.h b/src/CryptoNoteCore/IBlock.h index e86cdcd915..eacf2209d4 100644 --- a/src/CryptoNoteCore/IBlock.h +++ b/src/CryptoNoteCore/IBlock.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/IBlockchainStorageObserver.h b/src/CryptoNoteCore/IBlockchainStorageObserver.h index 5707bb4cce..e3f9086ad1 100644 --- a/src/CryptoNoteCore/IBlockchainStorageObserver.h +++ b/src/CryptoNoteCore/IBlockchainStorageObserver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/ICore.h b/src/CryptoNoteCore/ICore.h index e779a167ab..d6a3db0cc2 100755 --- a/src/CryptoNoteCore/ICore.h +++ b/src/CryptoNoteCore/ICore.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -98,7 +85,7 @@ class ICore { virtual bool getBlockSize(const Crypto::Hash& hash, size_t& size) = 0; virtual bool getAlreadyGeneratedCoins(const Crypto::Hash& hash, uint64_t& generatedCoins) = 0; virtual bool getBlockReward(size_t medianSize, size_t currentBlockSize, uint64_t alreadyGeneratedCoins, uint64_t fee, - bool penalizeFee, uint64_t& reward, int64_t& emissionChange) = 0; + uint64_t& reward, int64_t& emissionChange) = 0; virtual bool scanOutputkeysForIndices(const KeyInput& txInToKey, std::list>& outputReferences) = 0; virtual bool getBlockDifficulty(uint32_t height, difficulty_type& difficulty) = 0; virtual bool getBlockContainingTx(const Crypto::Hash& txId, Crypto::Hash& blockId, uint32_t& blockHeight) = 0; diff --git a/src/CryptoNoteCore/ICoreObserver.h b/src/CryptoNoteCore/ICoreObserver.h index 1392943a68..3ec4c3bb7e 100644 --- a/src/CryptoNoteCore/ICoreObserver.h +++ b/src/CryptoNoteCore/ICoreObserver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/IMinerHandler.h b/src/CryptoNoteCore/IMinerHandler.h old mode 100755 new mode 100644 index 0d1eaa7838..fcadccc287 --- a/src/CryptoNoteCore/IMinerHandler.h +++ b/src/CryptoNoteCore/IMinerHandler.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/ITimeProvider.cpp b/src/CryptoNoteCore/ITimeProvider.cpp index fb8255ee65..ec4da8507d 100644 --- a/src/CryptoNoteCore/ITimeProvider.cpp +++ b/src/CryptoNoteCore/ITimeProvider.cpp @@ -1,18 +1,5 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ITimeProvider.h" diff --git a/src/CryptoNoteCore/ITimeProvider.h b/src/CryptoNoteCore/ITimeProvider.h index 8cf8a98a0b..0ef15972e5 100644 --- a/src/CryptoNoteCore/ITimeProvider.h +++ b/src/CryptoNoteCore/ITimeProvider.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/ITransactionValidator.h b/src/CryptoNoteCore/ITransactionValidator.h old mode 100755 new mode 100644 index b85ab48704..c32339d95f --- a/src/CryptoNoteCore/ITransactionValidator.h +++ b/src/CryptoNoteCore/ITransactionValidator.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/ITxPoolObserver.h b/src/CryptoNoteCore/ITxPoolObserver.h old mode 100755 new mode 100644 index 5f0cad9ee8..ec91924b9d --- a/src/CryptoNoteCore/ITxPoolObserver.h +++ b/src/CryptoNoteCore/ITxPoolObserver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/IntrusiveLinkedList.h b/src/CryptoNoteCore/IntrusiveLinkedList.h index 1f5320f9e1..7183593e38 100644 --- a/src/CryptoNoteCore/IntrusiveLinkedList.h +++ b/src/CryptoNoteCore/IntrusiveLinkedList.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/MessageQueue.h b/src/CryptoNoteCore/MessageQueue.h index 6be5f38f57..29bd7deee6 100644 --- a/src/CryptoNoteCore/MessageQueue.h +++ b/src/CryptoNoteCore/MessageQueue.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/Miner.cpp b/src/CryptoNoteCore/Miner.cpp index e083107593..772b70354a 100644 --- a/src/CryptoNoteCore/Miner.cpp +++ b/src/CryptoNoteCore/Miner.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Miner.h" @@ -71,20 +58,6 @@ namespace CryptoNote std::lock_guard lk(m_template_lock); m_template = bl; - - if (BLOCK_MAJOR_VERSION_2 == m_template.majorVersion) { - CryptoNote::TransactionExtraMergeMiningTag mm_tag; - mm_tag.depth = 0; - if (!CryptoNote::get_aux_block_header_hash(m_template, mm_tag.merkleRoot)) { - return false; - } - - m_template.parentBlock.baseTransaction.extra.clear(); - if (!CryptoNote::appendMergeMiningTagToExtra(m_template.parentBlock.baseTransaction.extra, mm_tag)) { - return false; - } - } - m_diffic = di; ++m_template_no; m_starter_nonce = Crypto::rand(); diff --git a/src/CryptoNoteCore/Miner.h b/src/CryptoNoteCore/Miner.h old mode 100755 new mode 100644 index c40ee42561..22448c2597 --- a/src/CryptoNoteCore/Miner.h +++ b/src/CryptoNoteCore/Miner.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/MinerConfig.cpp b/src/CryptoNoteCore/MinerConfig.cpp index 2ef6dfc9ef..765eff2346 100644 --- a/src/CryptoNoteCore/MinerConfig.cpp +++ b/src/CryptoNoteCore/MinerConfig.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "MinerConfig.h" diff --git a/src/CryptoNoteCore/MinerConfig.h b/src/CryptoNoteCore/MinerConfig.h old mode 100755 new mode 100644 index 698888adc2..f0ebdc2bb1 --- a/src/CryptoNoteCore/MinerConfig.h +++ b/src/CryptoNoteCore/MinerConfig.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/OnceInInterval.h b/src/CryptoNoteCore/OnceInInterval.h index 4663e22ef6..46e25fa946 100644 --- a/src/CryptoNoteCore/OnceInInterval.h +++ b/src/CryptoNoteCore/OnceInInterval.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/SwappedMap.cpp b/src/CryptoNoteCore/SwappedMap.cpp index 9f4e97f6a1..1b8ef02427 100755 --- a/src/CryptoNoteCore/SwappedMap.cpp +++ b/src/CryptoNoteCore/SwappedMap.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "SwappedMap.h" diff --git a/src/CryptoNoteCore/SwappedMap.h b/src/CryptoNoteCore/SwappedMap.h old mode 100755 new mode 100644 index aba27ec5c1..dd32945c9e --- a/src/CryptoNoteCore/SwappedMap.h +++ b/src/CryptoNoteCore/SwappedMap.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/SwappedVector.cpp b/src/CryptoNoteCore/SwappedVector.cpp index 2fb3778dcc..cb7f41c6fb 100755 --- a/src/CryptoNoteCore/SwappedVector.cpp +++ b/src/CryptoNoteCore/SwappedVector.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "SwappedVector.h" diff --git a/src/CryptoNoteCore/SwappedVector.h b/src/CryptoNoteCore/SwappedVector.h old mode 100755 new mode 100644 index 88df10f83e..22c529eee9 --- a/src/CryptoNoteCore/SwappedVector.h +++ b/src/CryptoNoteCore/SwappedVector.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/Transaction.cpp b/src/CryptoNoteCore/Transaction.cpp index 3af50e2d86..3bf880ce28 100755 --- a/src/CryptoNoteCore/Transaction.cpp +++ b/src/CryptoNoteCore/Transaction.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ITransaction.h" #include "TransactionApiExtra.h" diff --git a/src/CryptoNoteCore/TransactionApi.h b/src/CryptoNoteCore/TransactionApi.h index 2753a2a3c9..800dc43f59 100755 --- a/src/CryptoNoteCore/TransactionApi.h +++ b/src/CryptoNoteCore/TransactionApi.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/TransactionApiExtra.h b/src/CryptoNoteCore/TransactionApiExtra.h old mode 100755 new mode 100644 index 07af198901..70ff859ab2 --- a/src/CryptoNoteCore/TransactionApiExtra.h +++ b/src/CryptoNoteCore/TransactionApiExtra.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/TransactionExtra.cpp b/src/CryptoNoteCore/TransactionExtra.cpp index cef604280f..4f8362833a 100755 --- a/src/CryptoNoteCore/TransactionExtra.cpp +++ b/src/CryptoNoteCore/TransactionExtra.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransactionExtra.h" @@ -78,13 +65,6 @@ bool parseTransactionExtra(const std::vector &transactionExtra, std::ve transactionExtraFields.push_back(extraNonce); break; } - - case TX_EXTRA_MERGE_MINING_TAG: { - TransactionExtraMergeMiningTag mmTag; - ar(mmTag, "mm_tag"); - transactionExtraFields.push_back(mmTag); - break; - } } } } catch (std::exception &) { @@ -115,10 +95,6 @@ struct ExtraSerializerVisitor : public boost::static_visitor { bool operator()(const TransactionExtraNonce& t) { return addExtraNonceToTransactionExtra(extra, t.nonce); } - - bool operator()(const TransactionExtraMergeMiningTag& t) { - return appendMergeMiningTagToExtra(extra, t); - } }; bool writeTransactionExtra(std::vector& tx_extra, const std::vector& tx_extra_fields) { @@ -170,24 +146,6 @@ bool addExtraNonceToTransactionExtra(std::vector& tx_extra, const Binar return true; } -bool appendMergeMiningTagToExtra(std::vector& tx_extra, const TransactionExtraMergeMiningTag& mm_tag) { - BinaryArray blob; - if (!toBinaryArray(mm_tag, blob)) { - return false; - } - - tx_extra.push_back(TX_EXTRA_MERGE_MINING_TAG); - std::copy(reinterpret_cast(blob.data()), reinterpret_cast(blob.data() + blob.size()), std::back_inserter(tx_extra)); - return true; -} - -bool getMergeMiningTagFromExtra(const std::vector& tx_extra, TransactionExtraMergeMiningTag& mm_tag) { - std::vector tx_extra_fields; - parseTransactionExtra(tx_extra, tx_extra_fields); - - return findTransactionExtraFieldByType(tx_extra_fields, mm_tag); -} - void setPaymentIdToTransactionExtraNonce(std::vector& extra_nonce, const Hash& payment_id) { extra_nonce.clear(); extra_nonce.push_back(TX_EXTRA_NONCE_PAYMENT_ID); diff --git a/src/CryptoNoteCore/TransactionExtra.h b/src/CryptoNoteCore/TransactionExtra.h index 66cc14480f..ae3c1b2254 100755 --- a/src/CryptoNoteCore/TransactionExtra.h +++ b/src/CryptoNoteCore/TransactionExtra.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -28,7 +15,6 @@ #define TX_EXTRA_TAG_PADDING 0x00 #define TX_EXTRA_TAG_PUBKEY 0x01 #define TX_EXTRA_NONCE 0x02 -#define TX_EXTRA_MERGE_MINING_TAG 0x03 #define TX_EXTRA_NONCE_PAYMENT_ID 0x00 @@ -46,16 +32,11 @@ struct TransactionExtraNonce { std::vector nonce; }; -struct TransactionExtraMergeMiningTag { - size_t depth; - Crypto::Hash merkleRoot; -}; - // tx_extra_field format, except tx_extra_padding and tx_extra_pub_key: // varint tag; // varint size; // varint data[]; -typedef boost::variant TransactionExtraField; +typedef boost::variant TransactionExtraField; @@ -79,8 +60,6 @@ bool addTransactionPublicKeyToExtra(std::vector& tx_extra, const Crypto bool addExtraNonceToTransactionExtra(std::vector& tx_extra, const BinaryArray& extra_nonce); void setPaymentIdToTransactionExtraNonce(BinaryArray& extra_nonce, const Crypto::Hash& payment_id); bool getPaymentIdFromTransactionExtraNonce(const BinaryArray& extra_nonce, Crypto::Hash& payment_id); -bool appendMergeMiningTagToExtra(std::vector& tx_extra, const TransactionExtraMergeMiningTag& mm_tag); -bool getMergeMiningTagFromExtra(const std::vector& tx_extra, TransactionExtraMergeMiningTag& mm_tag); bool createTxExtraWithPaymentId(const std::string& paymentIdString, std::vector& extra); //returns false if payment id is not found or parse error diff --git a/src/CryptoNoteCore/TransactionPool.cpp b/src/CryptoNoteCore/TransactionPool.cpp index be89eb55d3..71fd81a784 100644 --- a/src/CryptoNoteCore/TransactionPool.cpp +++ b/src/CryptoNoteCore/TransactionPool.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransactionPool.h" @@ -358,7 +345,7 @@ namespace CryptoNote { total_size = 0; fee = 0; - size_t max_total_size = (125 * median_size) / 100 - m_currency.minerTxBlobReservedSize(); + size_t max_total_size = 2 * median_size - m_currency.minerTxBlobReservedSize(); max_total_size = std::min(max_total_size, maxCumulativeSize); BlockTemplate blockTemplate; diff --git a/src/CryptoNoteCore/TransactionPool.h b/src/CryptoNoteCore/TransactionPool.h old mode 100755 new mode 100644 index 013507367d..405066cf33 --- a/src/CryptoNoteCore/TransactionPool.h +++ b/src/CryptoNoteCore/TransactionPool.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteCore/TransactionPrefixImpl.cpp b/src/CryptoNoteCore/TransactionPrefixImpl.cpp index 532b768403..77849226fa 100755 --- a/src/CryptoNoteCore/TransactionPrefixImpl.cpp +++ b/src/CryptoNoteCore/TransactionPrefixImpl.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ITransaction.h" diff --git a/src/CryptoNoteCore/TransactionUtils.cpp b/src/CryptoNoteCore/TransactionUtils.cpp index 31b0061930..ed7ad4f2a3 100755 --- a/src/CryptoNoteCore/TransactionUtils.cpp +++ b/src/CryptoNoteCore/TransactionUtils.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransactionUtils.h" diff --git a/src/CryptoNoteCore/TransactionUtils.h b/src/CryptoNoteCore/TransactionUtils.h index 3555c607ba..6449648841 100755 --- a/src/CryptoNoteCore/TransactionUtils.h +++ b/src/CryptoNoteCore/TransactionUtils.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CryptoNoteCore/CryptoNoteBasic.h" #include "ITransaction.h" diff --git a/src/CryptoNoteCore/UpgradeDetector.cpp b/src/CryptoNoteCore/UpgradeDetector.cpp deleted file mode 100644 index 3776d02d0b..0000000000 --- a/src/CryptoNoteCore/UpgradeDetector.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . - -#include "UpgradeDetector.h" diff --git a/src/CryptoNoteCore/UpgradeDetector.h b/src/CryptoNoteCore/UpgradeDetector.h deleted file mode 100755 index e0d2c417aa..0000000000 --- a/src/CryptoNoteCore/UpgradeDetector.h +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . - -#pragma once - -#include -#include -#include - -#include "CryptoNoteCore/Currency.h" -#include "CryptoNoteConfig.h" -#include - -namespace CryptoNote { - class UpgradeDetectorBase { - public: - enum : uint64_t { - UNDEF_HEIGHT = static_cast(-1), - }; - }; - - static_assert(CryptoNote::UpgradeDetectorBase::UNDEF_HEIGHT == UINT64_C(0xFFFFFFFFFFFFFFFF), "UpgradeDetectorBase::UNDEF_HEIGHT has invalid value"); - - template - class BasicUpgradeDetector : public UpgradeDetectorBase { - public: - BasicUpgradeDetector(const Currency& currency, BC& blockchain, uint8_t targetVersion, Logging::ILogger& log) : - m_currency(currency), - m_blockchain(blockchain), - m_targetVersion(targetVersion), - m_votingCompleteHeight(UNDEF_HEIGHT), - logger(log, "upgrade") { } - - bool init() { - if (m_currency.upgradeHeight() == UNDEF_HEIGHT) { - if (m_blockchain.empty()) { - m_votingCompleteHeight = UNDEF_HEIGHT; - - } else if (m_targetVersion - 1 == m_blockchain.back().bl.majorVersion) { - m_votingCompleteHeight = findVotingCompleteHeight(m_blockchain.size() - 1); - - } else if (m_targetVersion <= m_blockchain.back().bl.majorVersion) { - auto it = std::lower_bound(m_blockchain.begin(), m_blockchain.end(), m_targetVersion, - [](const typename BC::value_type& b, uint8_t v) { return b.bl.majorVersion < v; }); - if (!(it != m_blockchain.end() && it->bl.majorVersion == m_targetVersion)) { logger(Logging::ERROR, Logging::BRIGHT_RED) << "Internal error: upgrade height isn't found"; return false; } - uint64_t upgradeHeight = it - m_blockchain.begin(); - m_votingCompleteHeight = findVotingCompleteHeight(upgradeHeight); - if (!(m_votingCompleteHeight != UNDEF_HEIGHT)) { logger(Logging::ERROR, Logging::BRIGHT_RED) << "Internal error: voting complete height isn't found, upgrade height = " << upgradeHeight; return false; } - - } else { - m_votingCompleteHeight = UNDEF_HEIGHT; - } - } else if (!m_blockchain.empty()) { - if (m_blockchain.size() <= m_currency.upgradeHeight() + 1) { - if (!(m_blockchain.back().bl.majorVersion == m_targetVersion - 1)) { logger(Logging::ERROR, Logging::BRIGHT_RED) << "Internal error: block at height " << (m_blockchain.size() - 1) << " has invalid version " << - static_cast(m_blockchain.back().bl.majorVersion) << ", expected " << static_cast(m_targetVersion); return false; } - } else { - int blockVersionAtUpgradeHeight = m_blockchain[m_currency.upgradeHeight()].bl.majorVersion; - if (!(blockVersionAtUpgradeHeight == m_targetVersion - 1)) { logger(Logging::ERROR, Logging::BRIGHT_RED) << "Internal error: block at height " << m_currency.upgradeHeight() << " has invalid version " << - blockVersionAtUpgradeHeight << ", expected " << static_cast(m_targetVersion - 1); return false; } - - int blockVersionAfterUpgradeHeight = m_blockchain[m_currency.upgradeHeight() + 1].bl.majorVersion; - if (!(blockVersionAfterUpgradeHeight == m_targetVersion)) { logger(Logging::ERROR, Logging::BRIGHT_RED) << "Internal error: block at height " << (m_currency.upgradeHeight() + 1) << " has invalid version " << - blockVersionAfterUpgradeHeight << ", expected " << static_cast(m_targetVersion); return false; } - } - } - - return true; - } - - uint8_t targetVersion() const { return m_targetVersion; } - uint64_t votingCompleteHeight() const { return m_votingCompleteHeight; } - - uint64_t upgradeHeight() const { - if (m_currency.upgradeHeight() == UNDEF_HEIGHT) { - return m_votingCompleteHeight == UNDEF_HEIGHT ? UNDEF_HEIGHT : m_currency.calculateUpgradeHeight(m_votingCompleteHeight); - } else { - return m_currency.upgradeHeight(); - } - } - - void blockPushed() { - assert(!m_blockchain.empty()); - - if (m_currency.upgradeHeight() != UNDEF_HEIGHT) { - if (m_blockchain.size() <= m_currency.upgradeHeight() + 1) { - assert(m_blockchain.back().bl.majorVersion == m_targetVersion - 1); - } else { - assert(m_blockchain.back().bl.majorVersion == m_targetVersion); - } - - } else if (m_votingCompleteHeight != UNDEF_HEIGHT) { - assert(m_blockchain.size() > m_votingCompleteHeight); - - if (m_blockchain.size() <= upgradeHeight()) { - assert(m_blockchain.back().bl.majorVersion == m_targetVersion - 1); - - if (m_blockchain.size() % (60 * 60 / m_currency.difficultyTarget()) == 0) { - logger(Logging::TRACE, Logging::BRIGHT_GREEN) << "###### UPGRADE is going to happen after height " << upgradeHeight() << "!"; - } - } else if (m_blockchain.size() == upgradeHeight() + 1) { - assert(m_blockchain.back().bl.majorVersion == m_targetVersion - 1); - - logger(Logging::TRACE, Logging::BRIGHT_GREEN) << "###### UPGRADE has happened! Starting from height " << (upgradeHeight() + 1) << - " blocks with major version below " << static_cast(m_targetVersion) << " will be rejected!"; - } else { - assert(m_blockchain.back().bl.majorVersion == m_targetVersion); - } - - } else { - uint64_t lastBlockHeight = m_blockchain.size() - 1; - if (isVotingComplete(lastBlockHeight)) { - m_votingCompleteHeight = lastBlockHeight; - logger(Logging::TRACE, Logging::BRIGHT_GREEN) << "###### UPGRADE voting complete at height " << m_votingCompleteHeight << - "! UPGRADE is going to happen after height " << upgradeHeight() << "!"; - } - } - } - - void blockPopped() { - if (m_votingCompleteHeight != UNDEF_HEIGHT) { - assert(m_currency.upgradeHeight() == UNDEF_HEIGHT); - - if (m_blockchain.size() == m_votingCompleteHeight) { - logger(Logging::TRACE, Logging::BRIGHT_YELLOW) << "###### UPGRADE after height " << upgradeHeight() << " has been cancelled!"; - m_votingCompleteHeight = UNDEF_HEIGHT; - } else { - assert(m_blockchain.size() > m_votingCompleteHeight); - } - } - } - - private: - uint64_t findVotingCompleteHeight(uint64_t probableUpgradeHeight) { - assert(m_currency.upgradeHeight() == UNDEF_HEIGHT); - - uint64_t probableVotingCompleteHeight = probableUpgradeHeight > m_currency.maxUpgradeDistance() ? - probableUpgradeHeight - m_currency.maxUpgradeDistance() : 0; - for (size_t i = probableVotingCompleteHeight; i <= probableUpgradeHeight; ++i) { - if (isVotingComplete(i)) { - return i; - } - } - - return UNDEF_HEIGHT; - } - - bool isVotingComplete(uint64_t height) { - assert(m_currency.upgradeHeight() == UNDEF_HEIGHT); - assert(m_currency.upgradeVotingWindow() > 1); - assert(m_currency.upgradeVotingThreshold() > 0 && m_currency.upgradeVotingThreshold() <= 100); - - if (height < static_cast(m_currency.upgradeVotingWindow()) - 1) { - return false; - } - - unsigned int voteCounter = 0; - for (size_t i = height + 1 - m_currency.upgradeVotingWindow(); i <= height; ++i) { - const auto& b = m_blockchain[i].bl; - voteCounter += (b.majorVersion == m_targetVersion - 1) && (b.minorVersion == BLOCK_MINOR_VERSION_1) ? 1 : 0; - } - - return m_currency.upgradeVotingThreshold() * m_currency.upgradeVotingWindow() <= 100 * voteCounter; - } - - private: - Logging::LoggerRef logger; - const Currency& m_currency; - BC& m_blockchain; - uint8_t m_targetVersion; - uint64_t m_votingCompleteHeight; - }; -} diff --git a/src/CryptoNoteCore/VerificationContext.h b/src/CryptoNoteCore/VerificationContext.h old mode 100755 new mode 100644 index 346bf05a00..218d41bc99 --- a/src/CryptoNoteCore/VerificationContext.h +++ b/src/CryptoNoteCore/VerificationContext.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once namespace CryptoNote diff --git a/src/CryptoNoteProtocol/CryptoNoteProtocolDefinitions.h b/src/CryptoNoteProtocol/CryptoNoteProtocolDefinitions.h old mode 100755 new mode 100644 index e5b070d602..d7693c890d --- a/src/CryptoNoteProtocol/CryptoNoteProtocolDefinitions.h +++ b/src/CryptoNoteProtocol/CryptoNoteProtocolDefinitions.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.cpp b/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.cpp index 969c5b95fb..7d54cefd3b 100644 --- a/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.cpp +++ b/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CryptoNoteProtocolHandler.h" diff --git a/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.h b/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.h index 0b2bb060e7..fa59b38629 100755 --- a/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.h +++ b/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteProtocol/CryptoNoteProtocolHandlerCommon.h b/src/CryptoNoteProtocol/CryptoNoteProtocolHandlerCommon.h old mode 100755 new mode 100644 index e6b1008915..9a7b1b5db3 --- a/src/CryptoNoteProtocol/CryptoNoteProtocolHandlerCommon.h +++ b/src/CryptoNoteProtocol/CryptoNoteProtocolHandlerCommon.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteProtocol/ICryptoNoteProtocolObserver.h b/src/CryptoNoteProtocol/ICryptoNoteProtocolObserver.h old mode 100755 new mode 100644 index 0d22c38049..983b63f770 --- a/src/CryptoNoteProtocol/ICryptoNoteProtocolObserver.h +++ b/src/CryptoNoteProtocol/ICryptoNoteProtocolObserver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/CryptoNoteProtocol/ICryptoNoteProtocolQuery.h b/src/CryptoNoteProtocol/ICryptoNoteProtocolQuery.h old mode 100755 new mode 100644 index eb353fb2a0..f34401fe47 --- a/src/CryptoNoteProtocol/ICryptoNoteProtocolQuery.h +++ b/src/CryptoNoteProtocol/ICryptoNoteProtocolQuery.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index 38d10766ee..771c1ceeb8 100755 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "version.h" @@ -27,6 +14,7 @@ #include "crypto/hash.h" #include "CryptoNoteCore/Core.h" #include "CryptoNoteCore/CoreConfig.h" +#include "CryptoNoteCore/CryptoNoteTools.h" #include "CryptoNoteCore/Currency.h" #include "CryptoNoteCore/MinerConfig.h" #include "CryptoNoteProtocol/CryptoNoteProtocolHandler.h" @@ -36,6 +24,7 @@ #include "Rpc/RpcServerConfig.h" #include "version.h" +#include "Logging/ConsoleLogger.h" #include #if defined(WIN32) @@ -57,10 +46,23 @@ namespace const command_line::arg_descriptor arg_console = {"no-console", "Disable daemon console commands"}; const command_line::arg_descriptor arg_testnet_on = {"testnet", "Used to deploy test nets. Checkpoints and hardcoded seeds are ignored, " "network id is changed. Use it with --data-dir flag. The wallet must be launched with --testnet flag.", false}; + const command_line::arg_descriptor arg_print_genesis_tx = { "print-genesis-tx", "Prints genesis' block tx hex to insert it to config and exits" }; } bool command_line_preprocessor(const boost::program_options::variables_map& vm, LoggerRef& logger); +void print_genesis_tx_hex() { + Logging::ConsoleLogger logger; + CryptoNote::Transaction tx = CryptoNote::CurrencyBuilder(logger).generateGenesisTransaction(); + CryptoNote::BinaryArray txb = CryptoNote::toBinaryArray(tx); + std::string tx_hex = Common::toHex(txb); + + std::cout << "Insert this line into your coin configuration file as is: " << std::endl; + std::cout << "const char GENESIS_COINBASE_TX_HEX[] = \"" << tx_hex << "\";" << std::endl; + + return; +} + JsonValue buildLoggerConfiguration(Level level, const std::string& logfile) { JsonValue loggerConfiguration(JsonValue::OBJECT); loggerConfiguration.insert("globalLevel", static_cast(level)); @@ -107,6 +109,7 @@ int main(int argc, char* argv[]) command_line::add_arg(desc_cmd_sett, arg_log_level); command_line::add_arg(desc_cmd_sett, arg_console); command_line::add_arg(desc_cmd_sett, arg_testnet_on); + command_line::add_arg(desc_cmd_sett, arg_print_genesis_tx); RpcServerConfig::initOptions(desc_cmd_sett); CoreConfig::initOptions(desc_cmd_sett); @@ -128,6 +131,11 @@ int main(int argc, char* argv[]) return false; } + if (command_line::get_arg(vm, arg_print_genesis_tx)) { + print_genesis_tx_hex(); + return false; + } + std::string data_dir = command_line::get_arg(vm, command_line::arg_data_dir); std::string config = command_line::get_arg(vm, arg_config_file); @@ -180,6 +188,14 @@ int main(int argc, char* argv[]) //create objects and link them CryptoNote::CurrencyBuilder currencyBuilder(logManager); currencyBuilder.testnet(testnet_mode); + + try { + currencyBuilder.currency(); + } catch (std::exception&) { + std::cout << "GENESIS_COINBASE_TX_HEX constant has an incorrect value. Please launch: " << CryptoNote::CRYPTONOTE_NAME << "d --" << arg_print_genesis_tx.name; + return 1; + } + CryptoNote::Currency currency = currencyBuilder.currency(); CryptoNote::core ccore(currency, nullptr, logManager); diff --git a/src/Daemon/DaemonCommandsHandler.cpp b/src/Daemon/DaemonCommandsHandler.cpp index c0d3573bde..2fd309938d 100755 --- a/src/Daemon/DaemonCommandsHandler.cpp +++ b/src/Daemon/DaemonCommandsHandler.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "DaemonCommandsHandler.h" diff --git a/src/Daemon/DaemonCommandsHandler.h b/src/Daemon/DaemonCommandsHandler.h index b65d505c05..1bc96f0722 100755 --- a/src/Daemon/DaemonCommandsHandler.h +++ b/src/Daemon/DaemonCommandsHandler.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/HTTP/HttpParser.cpp b/src/HTTP/HttpParser.cpp old mode 100755 new mode 100644 index 5dc940854c..af4183d1e0 --- a/src/HTTP/HttpParser.cpp +++ b/src/HTTP/HttpParser.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "HttpParser.h" diff --git a/src/HTTP/HttpParser.h b/src/HTTP/HttpParser.h old mode 100755 new mode 100644 index c6a265fe89..aeb625548d --- a/src/HTTP/HttpParser.h +++ b/src/HTTP/HttpParser.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef HTTPPARSER_H_ #define HTTPPARSER_H_ diff --git a/src/HTTP/HttpParserErrorCodes.cpp b/src/HTTP/HttpParserErrorCodes.cpp index f211ac2890..ef7eaf73ca 100755 --- a/src/HTTP/HttpParserErrorCodes.cpp +++ b/src/HTTP/HttpParserErrorCodes.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "HttpParserErrorCodes.h" diff --git a/src/HTTP/HttpParserErrorCodes.h b/src/HTTP/HttpParserErrorCodes.h index 149b6f2b6c..985643aac6 100755 --- a/src/HTTP/HttpParserErrorCodes.h +++ b/src/HTTP/HttpParserErrorCodes.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/HTTP/HttpRequest.cpp b/src/HTTP/HttpRequest.cpp old mode 100755 new mode 100644 index 73d3cfa226..755ade2e45 --- a/src/HTTP/HttpRequest.cpp +++ b/src/HTTP/HttpRequest.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "HttpRequest.h" diff --git a/src/HTTP/HttpRequest.h b/src/HTTP/HttpRequest.h old mode 100755 new mode 100644 index ebeff5fecb..b080824d99 --- a/src/HTTP/HttpRequest.h +++ b/src/HTTP/HttpRequest.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/HTTP/HttpResponse.cpp b/src/HTTP/HttpResponse.cpp old mode 100755 new mode 100644 index a11be6146d..bdc3b1a1ed --- a/src/HTTP/HttpResponse.cpp +++ b/src/HTTP/HttpResponse.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "HttpResponse.h" diff --git a/src/HTTP/HttpResponse.h b/src/HTTP/HttpResponse.h old mode 100755 new mode 100644 index 46403a0c71..b4595432d6 --- a/src/HTTP/HttpResponse.h +++ b/src/HTTP/HttpResponse.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/InProcessNode/InProcessNode.cpp b/src/InProcessNode/InProcessNode.cpp index 89f67faf93..3383e034c5 100644 --- a/src/InProcessNode/InProcessNode.cpp +++ b/src/InProcessNode/InProcessNode.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "InProcessNode.h" diff --git a/src/InProcessNode/InProcessNode.h b/src/InProcessNode/InProcessNode.h index 43b9da5aad..63911e914c 100644 --- a/src/InProcessNode/InProcessNode.h +++ b/src/InProcessNode/InProcessNode.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/InProcessNode/InProcessNodeErrors.cpp b/src/InProcessNode/InProcessNodeErrors.cpp index a58e79c3c2..02333178f7 100644 --- a/src/InProcessNode/InProcessNodeErrors.cpp +++ b/src/InProcessNode/InProcessNodeErrors.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "InProcessNodeErrors.h" diff --git a/src/InProcessNode/InProcessNodeErrors.h b/src/InProcessNode/InProcessNodeErrors.h index bdd0be5947..f6292a9509 100644 --- a/src/InProcessNode/InProcessNodeErrors.h +++ b/src/InProcessNode/InProcessNodeErrors.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/JsonRpcServer/JsonRpcServer.cpp b/src/JsonRpcServer/JsonRpcServer.cpp index 6939c80bf4..3fecce553c 100755 --- a/src/JsonRpcServer/JsonRpcServer.cpp +++ b/src/JsonRpcServer/JsonRpcServer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "JsonRpcServer.h" diff --git a/src/JsonRpcServer/JsonRpcServer.h b/src/JsonRpcServer/JsonRpcServer.h index 8dacc6df44..b787885fda 100755 --- a/src/JsonRpcServer/JsonRpcServer.h +++ b/src/JsonRpcServer/JsonRpcServer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Logging/CommonLogger.cpp b/src/Logging/CommonLogger.cpp index 005d2e66a7..0c2a8433cd 100755 --- a/src/Logging/CommonLogger.cpp +++ b/src/Logging/CommonLogger.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CommonLogger.h" diff --git a/src/Logging/CommonLogger.h b/src/Logging/CommonLogger.h index 0517314515..71654924f4 100755 --- a/src/Logging/CommonLogger.h +++ b/src/Logging/CommonLogger.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Logging/ConsoleLogger.cpp b/src/Logging/ConsoleLogger.cpp index 135d6de67f..36987d45dd 100755 --- a/src/Logging/ConsoleLogger.cpp +++ b/src/Logging/ConsoleLogger.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ConsoleLogger.h" #include diff --git a/src/Logging/ConsoleLogger.h b/src/Logging/ConsoleLogger.h index 13b355b0ab..5fce84fab2 100755 --- a/src/Logging/ConsoleLogger.h +++ b/src/Logging/ConsoleLogger.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Logging/FileLogger.cpp b/src/Logging/FileLogger.cpp index 75fc3039c2..cae7818c9d 100755 --- a/src/Logging/FileLogger.cpp +++ b/src/Logging/FileLogger.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "FileLogger.h" diff --git a/src/Logging/FileLogger.h b/src/Logging/FileLogger.h index fad9d96f89..2284f9a66d 100755 --- a/src/Logging/FileLogger.h +++ b/src/Logging/FileLogger.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Logging/ILogger.cpp b/src/Logging/ILogger.cpp index 7aa23f7412..a451300ac2 100755 --- a/src/Logging/ILogger.cpp +++ b/src/Logging/ILogger.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ILogger.h" diff --git a/src/Logging/ILogger.h b/src/Logging/ILogger.h index 4b7af0826f..72eaa75cf5 100755 --- a/src/Logging/ILogger.h +++ b/src/Logging/ILogger.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Logging/LoggerGroup.cpp b/src/Logging/LoggerGroup.cpp old mode 100755 new mode 100644 index 0eeb32df4c..a0eab7c26d --- a/src/Logging/LoggerGroup.cpp +++ b/src/Logging/LoggerGroup.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "LoggerGroup.h" #include diff --git a/src/Logging/LoggerGroup.h b/src/Logging/LoggerGroup.h index 8afe7fcc90..11a50d4e47 100755 --- a/src/Logging/LoggerGroup.h +++ b/src/Logging/LoggerGroup.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Logging/LoggerManager.cpp b/src/Logging/LoggerManager.cpp index ea159ab271..3e6979c3e3 100755 --- a/src/Logging/LoggerManager.cpp +++ b/src/Logging/LoggerManager.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "LoggerManager.h" #include diff --git a/src/Logging/LoggerManager.h b/src/Logging/LoggerManager.h index 1a874fab9b..b461cb996a 100755 --- a/src/Logging/LoggerManager.h +++ b/src/Logging/LoggerManager.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Logging/LoggerMessage.cpp b/src/Logging/LoggerMessage.cpp old mode 100755 new mode 100644 index be171cf4db..443339fea6 --- a/src/Logging/LoggerMessage.cpp +++ b/src/Logging/LoggerMessage.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "LoggerMessage.h" diff --git a/src/Logging/LoggerMessage.h b/src/Logging/LoggerMessage.h index a2d617b843..41ead09fa3 100755 --- a/src/Logging/LoggerMessage.h +++ b/src/Logging/LoggerMessage.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Logging/LoggerRef.cpp b/src/Logging/LoggerRef.cpp index 39768d5014..284b80bd7d 100755 --- a/src/Logging/LoggerRef.cpp +++ b/src/Logging/LoggerRef.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "LoggerRef.h" diff --git a/src/Logging/LoggerRef.h b/src/Logging/LoggerRef.h index 8afc1b2570..072b0d4d54 100755 --- a/src/Logging/LoggerRef.h +++ b/src/Logging/LoggerRef.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Logging/StreamLogger.cpp b/src/Logging/StreamLogger.cpp index 0ea0dfdf3b..cdfc5fc135 100755 --- a/src/Logging/StreamLogger.cpp +++ b/src/Logging/StreamLogger.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "StreamLogger.h" #include diff --git a/src/Logging/StreamLogger.h b/src/Logging/StreamLogger.h index 4cdc2cdd3e..54464c5f53 100755 --- a/src/Logging/StreamLogger.h +++ b/src/Logging/StreamLogger.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Miner/BlockchainMonitor.cpp b/src/Miner/BlockchainMonitor.cpp index d466ddf830..e2b7baf234 100644 --- a/src/Miner/BlockchainMonitor.cpp +++ b/src/Miner/BlockchainMonitor.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockchainMonitor.h" diff --git a/src/Miner/BlockchainMonitor.h b/src/Miner/BlockchainMonitor.h index c03fbc7030..59b1ebcb3a 100644 --- a/src/Miner/BlockchainMonitor.h +++ b/src/Miner/BlockchainMonitor.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Miner/Miner.cpp b/src/Miner/Miner.cpp index 5d048d8d4a..a31ea224c2 100644 --- a/src/Miner/Miner.cpp +++ b/src/Miner/Miner.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Miner.h" diff --git a/src/Miner/Miner.h b/src/Miner/Miner.h index 5f5db4256b..5f268be45d 100644 --- a/src/Miner/Miner.h +++ b/src/Miner/Miner.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Miner/MinerEvent.h b/src/Miner/MinerEvent.h index 8ab85c53d6..ba2f510cb2 100644 --- a/src/Miner/MinerEvent.h +++ b/src/Miner/MinerEvent.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Miner/MinerManager.cpp b/src/Miner/MinerManager.cpp index 613bb37c66..00afa936ed 100644 --- a/src/Miner/MinerManager.cpp +++ b/src/Miner/MinerManager.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "MinerManager.h" @@ -48,21 +35,6 @@ MinerEvent BlockchainUpdatedEvent() { return event; } -void adjustMergeMiningTag(Block& blockTemplate) { - if (blockTemplate.majorVersion == BLOCK_MAJOR_VERSION_2) { - CryptoNote::TransactionExtraMergeMiningTag mmTag; - mmTag.depth = 0; - if (!CryptoNote::get_aux_block_header_hash(blockTemplate, mmTag.merkleRoot)) { - throw std::runtime_error("Couldn't get block header hash"); - } - - blockTemplate.parentBlock.baseTransaction.extra.clear(); - if (!CryptoNote::appendMergeMiningTagToExtra(blockTemplate.parentBlock.baseTransaction.extra, mmTag)) { - throw std::runtime_error("Couldn't append merge mining tag"); - } - } -} - } MinerManager::MinerManager(System::Dispatcher& dispatcher, const CryptoNote::MiningConfig& config, Logging::ILogger& logger) : @@ -259,8 +231,6 @@ BlockMiningParameters MinerManager::requestMiningParameters(System::Dispatcher& void MinerManager::adjustBlockTemplate(CryptoNote::Block& blockTemplate) const { - adjustMergeMiningTag(blockTemplate); - if (m_config.firstBlockTimestamp == 0) { //no need to fix timestamp return; diff --git a/src/Miner/MinerManager.h b/src/Miner/MinerManager.h index c9cb30d041..5fc157a869 100644 --- a/src/Miner/MinerManager.h +++ b/src/Miner/MinerManager.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Miner/MiningConfig.cpp b/src/Miner/MiningConfig.cpp index b416f98ebf..3895efddf7 100644 --- a/src/Miner/MiningConfig.cpp +++ b/src/Miner/MiningConfig.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "MiningConfig.h" diff --git a/src/Miner/MiningConfig.h b/src/Miner/MiningConfig.h index 3f969f2a3d..41b3ff010f 100644 --- a/src/Miner/MiningConfig.h +++ b/src/Miner/MiningConfig.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Miner/main.cpp b/src/Miner/main.cpp index 73c462cf94..deea5a985f 100644 --- a/src/Miner/main.cpp +++ b/src/Miner/main.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Common/SignalHandler.h" diff --git a/src/NodeRpcProxy/NodeErrors.cpp b/src/NodeRpcProxy/NodeErrors.cpp index a83f387e33..bcac096fd8 100644 --- a/src/NodeRpcProxy/NodeErrors.cpp +++ b/src/NodeRpcProxy/NodeErrors.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "NodeErrors.h" diff --git a/src/NodeRpcProxy/NodeErrors.h b/src/NodeRpcProxy/NodeErrors.h index ac8b5719e2..294ec14224 100644 --- a/src/NodeRpcProxy/NodeErrors.h +++ b/src/NodeRpcProxy/NodeErrors.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/NodeRpcProxy/NodeRpcProxy.cpp b/src/NodeRpcProxy/NodeRpcProxy.cpp index c70e52406b..b1b4a549a0 100644 --- a/src/NodeRpcProxy/NodeRpcProxy.cpp +++ b/src/NodeRpcProxy/NodeRpcProxy.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "NodeRpcProxy.h" #include "NodeErrors.h" diff --git a/src/NodeRpcProxy/NodeRpcProxy.h b/src/NodeRpcProxy/NodeRpcProxy.h index aac6b44e8a..70274727fa 100644 --- a/src/NodeRpcProxy/NodeRpcProxy.h +++ b/src/NodeRpcProxy/NodeRpcProxy.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/ConnectionContext.h b/src/P2p/ConnectionContext.h index 83026c823f..435b08260b 100755 --- a/src/P2p/ConnectionContext.h +++ b/src/P2p/ConnectionContext.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/IP2pNodeInternal.cpp b/src/P2p/IP2pNodeInternal.cpp index 3a46427a7e..676eae8790 100644 --- a/src/P2p/IP2pNodeInternal.cpp +++ b/src/P2p/IP2pNodeInternal.cpp @@ -1,18 +1,5 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "IP2pNodeInternal.h" diff --git a/src/P2p/IP2pNodeInternal.h b/src/P2p/IP2pNodeInternal.h index b822a8d180..20166008d3 100644 --- a/src/P2p/IP2pNodeInternal.h +++ b/src/P2p/IP2pNodeInternal.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/LevinProtocol.cpp b/src/P2p/LevinProtocol.cpp index f12873cc06..fab0ebbe5c 100644 --- a/src/P2p/LevinProtocol.cpp +++ b/src/P2p/LevinProtocol.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "LevinProtocol.h" #include diff --git a/src/P2p/LevinProtocol.h b/src/P2p/LevinProtocol.h index 6334639ddd..2164193f07 100755 --- a/src/P2p/LevinProtocol.h +++ b/src/P2p/LevinProtocol.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/NetNode.cpp b/src/P2p/NetNode.cpp index d4fe79e438..ddee5452b1 100644 --- a/src/P2p/NetNode.cpp +++ b/src/P2p/NetNode.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "NetNode.h" @@ -205,7 +192,7 @@ namespace CryptoNote m_payload_handler(payload_handler), m_allow_local_ip(false), m_hide_my_port(false), - m_network_id(BYTECOIN_NETWORK), + m_network_id(CRYPTONOTE_NETWORK), logger(log, "node_server"), m_stopEvent(m_dispatcher), m_idleTimer(m_dispatcher), diff --git a/src/P2p/NetNode.h b/src/P2p/NetNode.h index cadfd240a5..3d37d034ad 100644 --- a/src/P2p/NetNode.h +++ b/src/P2p/NetNode.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/NetNodeCommon.h b/src/P2p/NetNodeCommon.h index 61324ada9d..2272bf9d64 100755 --- a/src/P2p/NetNodeCommon.h +++ b/src/P2p/NetNodeCommon.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/NetNodeConfig.cpp b/src/P2p/NetNodeConfig.cpp old mode 100755 new mode 100644 index 7b2711532e..a6ffa48c00 --- a/src/P2p/NetNodeConfig.cpp +++ b/src/P2p/NetNodeConfig.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "NetNodeConfig.h" diff --git a/src/P2p/NetNodeConfig.h b/src/P2p/NetNodeConfig.h old mode 100755 new mode 100644 index 3d9d9c1768..a65e23d871 --- a/src/P2p/NetNodeConfig.h +++ b/src/P2p/NetNodeConfig.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/P2pConnectionProxy.cpp b/src/P2p/P2pConnectionProxy.cpp index 9484d5a3e6..21552ecd8a 100644 --- a/src/P2p/P2pConnectionProxy.cpp +++ b/src/P2p/P2pConnectionProxy.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "P2pConnectionProxy.h" diff --git a/src/P2p/P2pConnectionProxy.h b/src/P2p/P2pConnectionProxy.h index b91f9fa4a4..419d6267ba 100644 --- a/src/P2p/P2pConnectionProxy.h +++ b/src/P2p/P2pConnectionProxy.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/P2pContext.cpp b/src/P2p/P2pContext.cpp index d7d36b61f1..9bb2bdc53d 100755 --- a/src/P2p/P2pContext.cpp +++ b/src/P2p/P2pContext.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "P2pContext.h" diff --git a/src/P2p/P2pContext.h b/src/P2p/P2pContext.h index b74c1a0ac4..96375bfc49 100755 --- a/src/P2p/P2pContext.h +++ b/src/P2p/P2pContext.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/P2pContextOwner.cpp b/src/P2p/P2pContextOwner.cpp index dabc8322cc..b89ff9891e 100644 --- a/src/P2p/P2pContextOwner.cpp +++ b/src/P2p/P2pContextOwner.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "P2pContextOwner.h" #include diff --git a/src/P2p/P2pContextOwner.h b/src/P2p/P2pContextOwner.h index abb1adc007..58f367f73b 100644 --- a/src/P2p/P2pContextOwner.h +++ b/src/P2p/P2pContextOwner.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/P2pInterfaces.cpp b/src/P2p/P2pInterfaces.cpp index c563e8518d..fe91f166da 100644 --- a/src/P2p/P2pInterfaces.cpp +++ b/src/P2p/P2pInterfaces.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "P2pInterfaces.h" diff --git a/src/P2p/P2pInterfaces.h b/src/P2p/P2pInterfaces.h index b42152ca5b..170c3e406d 100644 --- a/src/P2p/P2pInterfaces.h +++ b/src/P2p/P2pInterfaces.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/P2pNetworks.h b/src/P2p/P2pNetworks.h old mode 100755 new mode 100644 index a1790e8c49..90401a03eb --- a/src/P2p/P2pNetworks.h +++ b/src/P2p/P2pNetworks.h @@ -1,23 +1,10 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once namespace CryptoNote { - const static boost::uuids::uuid BYTECOIN_NETWORK = { { 0x11 ,0x10, 0x01, 0x11 , 0x11, 0x00 , 0x01, 0x01, 0x10, 0x11, 0x00, 0x12, 0x10, 0x11, 0x01, 0x10} }; //Bender's nightmare + const static boost::uuids::uuid CRYPTONOTE_NETWORK = { { 0x43, 0x52, 0x59, 0x50, 0x54, 0x4f, 0x4e, 0x4f, 0x54, 0x45, 0x00, 0x12, 0x10, 0x11, 0x01, 0x10 } }; } diff --git a/src/P2p/P2pNode.cpp b/src/P2p/P2pNode.cpp index 7ecafffd6c..b7a0d4e374 100755 --- a/src/P2p/P2pNode.cpp +++ b/src/P2p/P2pNode.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "P2pNode.h" diff --git a/src/P2p/P2pNode.h b/src/P2p/P2pNode.h index 27ae7c1a19..2813edc403 100755 --- a/src/P2p/P2pNode.h +++ b/src/P2p/P2pNode.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/P2pNodeConfig.cpp b/src/P2p/P2pNodeConfig.cpp index 51c715cc56..19bb109547 100644 --- a/src/P2p/P2pNodeConfig.cpp +++ b/src/P2p/P2pNodeConfig.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "P2pNodeConfig.h" #include "P2pNetworks.h" @@ -35,7 +22,7 @@ P2pNodeConfig::P2pNodeConfig() : handshakeTimeout(std::chrono::milliseconds(P2P_DEFAULT_HANDSHAKE_INVOKE_TIMEOUT)), connectInterval(P2P_DEFAULT_CONNECT_INTERVAL), connectTimeout(std::chrono::milliseconds(P2P_DEFAULT_CONNECTION_TIMEOUT)), - networkId(BYTECOIN_NETWORK), + networkId(CRYPTONOTE_NETWORK), expectedOutgoingConnectionsCount(P2P_DEFAULT_CONNECTIONS_COUNT), whiteListConnectionsPercent(P2P_DEFAULT_WHITELIST_CONNECTIONS_PERCENT), peerListConnectRange(P2P_DEFAULT_CONNECT_RANGE), diff --git a/src/P2p/P2pNodeConfig.h b/src/P2p/P2pNodeConfig.h index d8f5fa1cf6..1bbc74dacd 100644 --- a/src/P2p/P2pNodeConfig.h +++ b/src/P2p/P2pNodeConfig.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/P2pProtocolDefinitions.h b/src/P2p/P2pProtocolDefinitions.h index e83d6f7950..5bc807b2f3 100755 --- a/src/P2p/P2pProtocolDefinitions.h +++ b/src/P2p/P2pProtocolDefinitions.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/P2pProtocolTypes.h b/src/P2p/P2pProtocolTypes.h index b803410218..7a97602dd7 100755 --- a/src/P2p/P2pProtocolTypes.h +++ b/src/P2p/P2pProtocolTypes.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/P2p/PeerListManager.cpp b/src/P2p/PeerListManager.cpp index c1b5de091f..9403a9b7d8 100755 --- a/src/P2p/PeerListManager.cpp +++ b/src/P2p/PeerListManager.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "PeerListManager.h" diff --git a/src/P2p/PeerListManager.h b/src/P2p/PeerListManager.h index 2ea4f7aa1a..a77eb8cddc 100644 --- a/src/P2p/PeerListManager.h +++ b/src/P2p/PeerListManager.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGate/NodeFactory.cpp b/src/PaymentGate/NodeFactory.cpp index 40464eeeb1..1a3eb8f69d 100644 --- a/src/PaymentGate/NodeFactory.cpp +++ b/src/PaymentGate/NodeFactory.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "NodeFactory.h" diff --git a/src/PaymentGate/NodeFactory.h b/src/PaymentGate/NodeFactory.h index 09de8b4086..2563ce183e 100644 --- a/src/PaymentGate/NodeFactory.h +++ b/src/PaymentGate/NodeFactory.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGate/PaymentServiceJsonRpcMessages.cpp b/src/PaymentGate/PaymentServiceJsonRpcMessages.cpp index 62f40a6cc0..72f29ef957 100755 --- a/src/PaymentGate/PaymentServiceJsonRpcMessages.cpp +++ b/src/PaymentGate/PaymentServiceJsonRpcMessages.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "PaymentServiceJsonRpcMessages.h" #include "Serialization/SerializationOverloads.h" diff --git a/src/PaymentGate/PaymentServiceJsonRpcMessages.h b/src/PaymentGate/PaymentServiceJsonRpcMessages.h index 093960e47f..ce40272bb9 100644 --- a/src/PaymentGate/PaymentServiceJsonRpcMessages.h +++ b/src/PaymentGate/PaymentServiceJsonRpcMessages.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGate/PaymentServiceJsonRpcServer.cpp b/src/PaymentGate/PaymentServiceJsonRpcServer.cpp index fad98fbe28..b1daf6460b 100755 --- a/src/PaymentGate/PaymentServiceJsonRpcServer.cpp +++ b/src/PaymentGate/PaymentServiceJsonRpcServer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "PaymentServiceJsonRpcServer.h" diff --git a/src/PaymentGate/PaymentServiceJsonRpcServer.h b/src/PaymentGate/PaymentServiceJsonRpcServer.h index 4662122046..fc3f5dfbac 100644 --- a/src/PaymentGate/PaymentServiceJsonRpcServer.h +++ b/src/PaymentGate/PaymentServiceJsonRpcServer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGate/WalletFactory.cpp b/src/PaymentGate/WalletFactory.cpp old mode 100755 new mode 100644 index 288393e9cc..d8306ae41e --- a/src/PaymentGate/WalletFactory.cpp +++ b/src/PaymentGate/WalletFactory.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletFactory.h" diff --git a/src/PaymentGate/WalletFactory.h b/src/PaymentGate/WalletFactory.h index 1a37e30c86..8f40b78874 100644 --- a/src/PaymentGate/WalletFactory.h +++ b/src/PaymentGate/WalletFactory.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGate/WalletService.cpp b/src/PaymentGate/WalletService.cpp index ae1b32118e..3998190f81 100755 --- a/src/PaymentGate/WalletService.cpp +++ b/src/PaymentGate/WalletService.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletService.h" diff --git a/src/PaymentGate/WalletService.h b/src/PaymentGate/WalletService.h index 57e137ae6d..42602e07e9 100755 --- a/src/PaymentGate/WalletService.h +++ b/src/PaymentGate/WalletService.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGate/WalletServiceErrorCategory.cpp b/src/PaymentGate/WalletServiceErrorCategory.cpp index d4e471205e..80aef5d668 100644 --- a/src/PaymentGate/WalletServiceErrorCategory.cpp +++ b/src/PaymentGate/WalletServiceErrorCategory.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletServiceErrorCategory.h" diff --git a/src/PaymentGate/WalletServiceErrorCategory.h b/src/PaymentGate/WalletServiceErrorCategory.h index 8d7cb21262..5858239dcc 100644 --- a/src/PaymentGate/WalletServiceErrorCategory.h +++ b/src/PaymentGate/WalletServiceErrorCategory.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGateService/ConfigurationManager.cpp b/src/PaymentGateService/ConfigurationManager.cpp index ce545a445e..9ca20e2736 100755 --- a/src/PaymentGateService/ConfigurationManager.cpp +++ b/src/PaymentGateService/ConfigurationManager.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ConfigurationManager.h" diff --git a/src/PaymentGateService/ConfigurationManager.h b/src/PaymentGateService/ConfigurationManager.h index d33bf1366e..d397c78212 100755 --- a/src/PaymentGateService/ConfigurationManager.h +++ b/src/PaymentGateService/ConfigurationManager.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGateService/PaymentGateService.cpp b/src/PaymentGateService/PaymentGateService.cpp index 9cf149ec46..5e0ee59ea7 100755 --- a/src/PaymentGateService/PaymentGateService.cpp +++ b/src/PaymentGateService/PaymentGateService.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "PaymentGateService.h" diff --git a/src/PaymentGateService/PaymentGateService.h b/src/PaymentGateService/PaymentGateService.h index f594f7db91..c4daa177b7 100644 --- a/src/PaymentGateService/PaymentGateService.h +++ b/src/PaymentGateService/PaymentGateService.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGateService/PaymentServiceConfiguration.cpp b/src/PaymentGateService/PaymentServiceConfiguration.cpp index 3aa5514663..cd7557317f 100644 --- a/src/PaymentGateService/PaymentServiceConfiguration.cpp +++ b/src/PaymentGateService/PaymentServiceConfiguration.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "PaymentServiceConfiguration.h" diff --git a/src/PaymentGateService/PaymentServiceConfiguration.h b/src/PaymentGateService/PaymentServiceConfiguration.h index 3c647d4b69..c3ee794f36 100644 --- a/src/PaymentGateService/PaymentServiceConfiguration.h +++ b/src/PaymentGateService/PaymentServiceConfiguration.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGateService/RpcNodeConfiguration.cpp b/src/PaymentGateService/RpcNodeConfiguration.cpp index 2152e4072b..80764f4de6 100644 --- a/src/PaymentGateService/RpcNodeConfiguration.cpp +++ b/src/PaymentGateService/RpcNodeConfiguration.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "RpcNodeConfiguration.h" @@ -28,8 +15,8 @@ RpcNodeConfiguration::RpcNodeConfiguration() { void RpcNodeConfiguration::initOptions(boost::program_options::options_description& desc) { desc.add_options() - ("daemon-address", po::value()->default_value("localhost"), "bytecoind address") - ("daemon-port", po::value()->default_value(8081), "bytecoind port"); + ("daemon-address", po::value()->default_value("localhost"), "daemon address") + ("daemon-port", po::value()->default_value(8081), "daemon port"); } void RpcNodeConfiguration::init(const boost::program_options::variables_map& options) { diff --git a/src/PaymentGateService/RpcNodeConfiguration.h b/src/PaymentGateService/RpcNodeConfiguration.h index 82cc298f3e..71f24c0645 100644 --- a/src/PaymentGateService/RpcNodeConfiguration.h +++ b/src/PaymentGateService/RpcNodeConfiguration.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/PaymentGateService/main.cpp b/src/PaymentGateService/main.cpp index ecab8e2ee7..a71fe504cf 100644 --- a/src/PaymentGateService/main.cpp +++ b/src/PaymentGateService/main.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/Platform/Linux/System/Dispatcher.cpp b/src/Platform/Linux/System/Dispatcher.cpp old mode 100755 new mode 100644 index 4a1ae025ed..1da9365da4 --- a/src/Platform/Linux/System/Dispatcher.cpp +++ b/src/Platform/Linux/System/Dispatcher.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Dispatcher.h" #include diff --git a/src/Platform/Linux/System/Dispatcher.h b/src/Platform/Linux/System/Dispatcher.h old mode 100755 new mode 100644 index ce6f0a08ab..7604e9fa6f --- a/src/Platform/Linux/System/Dispatcher.h +++ b/src/Platform/Linux/System/Dispatcher.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Linux/System/ErrorMessage.cpp b/src/Platform/Linux/System/ErrorMessage.cpp index 75df8c146e..eb81609f59 100644 --- a/src/Platform/Linux/System/ErrorMessage.cpp +++ b/src/Platform/Linux/System/ErrorMessage.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ErrorMessage.h" #include diff --git a/src/Platform/Linux/System/ErrorMessage.h b/src/Platform/Linux/System/ErrorMessage.h index ffe88ed3dc..2d7cecb0a8 100644 --- a/src/Platform/Linux/System/ErrorMessage.h +++ b/src/Platform/Linux/System/ErrorMessage.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Linux/System/Future.h b/src/Platform/Linux/System/Future.h index 65809d9ed5..ebe4772284 100644 --- a/src/Platform/Linux/System/Future.h +++ b/src/Platform/Linux/System/Future.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Linux/System/Ipv4Resolver.cpp b/src/Platform/Linux/System/Ipv4Resolver.cpp index cbb8b37005..92aad69e9c 100755 --- a/src/Platform/Linux/System/Ipv4Resolver.cpp +++ b/src/Platform/Linux/System/Ipv4Resolver.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Ipv4Resolver.h" #include diff --git a/src/Platform/Linux/System/Ipv4Resolver.h b/src/Platform/Linux/System/Ipv4Resolver.h old mode 100755 new mode 100644 index 02dd979396..b662e6aa4d --- a/src/Platform/Linux/System/Ipv4Resolver.h +++ b/src/Platform/Linux/System/Ipv4Resolver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Linux/System/TcpConnection.cpp b/src/Platform/Linux/System/TcpConnection.cpp old mode 100755 new mode 100644 index 071653574d..7eff4b4a03 --- a/src/Platform/Linux/System/TcpConnection.cpp +++ b/src/Platform/Linux/System/TcpConnection.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpConnection.h" diff --git a/src/Platform/Linux/System/TcpConnection.h b/src/Platform/Linux/System/TcpConnection.h old mode 100755 new mode 100644 index a84b4757d6..3ef3621bc7 --- a/src/Platform/Linux/System/TcpConnection.h +++ b/src/Platform/Linux/System/TcpConnection.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Linux/System/TcpConnector.cpp b/src/Platform/Linux/System/TcpConnector.cpp old mode 100755 new mode 100644 index 8616241ab4..1696e0ec58 --- a/src/Platform/Linux/System/TcpConnector.cpp +++ b/src/Platform/Linux/System/TcpConnector.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpConnector.h" #include diff --git a/src/Platform/Linux/System/TcpConnector.h b/src/Platform/Linux/System/TcpConnector.h old mode 100755 new mode 100644 index 8dc7b110f7..a994748047 --- a/src/Platform/Linux/System/TcpConnector.h +++ b/src/Platform/Linux/System/TcpConnector.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Linux/System/TcpListener.cpp b/src/Platform/Linux/System/TcpListener.cpp old mode 100755 new mode 100644 index 53b4ca638a..4f6d7f501f --- a/src/Platform/Linux/System/TcpListener.cpp +++ b/src/Platform/Linux/System/TcpListener.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpListener.h" #include diff --git a/src/Platform/Linux/System/TcpListener.h b/src/Platform/Linux/System/TcpListener.h old mode 100755 new mode 100644 index 9478c4232d..9981ceab1b --- a/src/Platform/Linux/System/TcpListener.h +++ b/src/Platform/Linux/System/TcpListener.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Linux/System/Timer.cpp b/src/Platform/Linux/System/Timer.cpp old mode 100755 new mode 100644 index 03e1cfcf30..efa92b9391 --- a/src/Platform/Linux/System/Timer.cpp +++ b/src/Platform/Linux/System/Timer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Timer.h" #include diff --git a/src/Platform/Linux/System/Timer.h b/src/Platform/Linux/System/Timer.h old mode 100755 new mode 100644 index ef6255b69f..13e77d23bd --- a/src/Platform/Linux/System/Timer.h +++ b/src/Platform/Linux/System/Timer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/OSX/System/Context.c b/src/Platform/OSX/System/Context.c old mode 100755 new mode 100644 index 0baea93505..8838818c28 --- a/src/Platform/OSX/System/Context.c +++ b/src/Platform/OSX/System/Context.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include "context.h" diff --git a/src/Platform/OSX/System/Context.h b/src/Platform/OSX/System/Context.h index 64bf59c8b2..b94bdbae50 100755 --- a/src/Platform/OSX/System/Context.h +++ b/src/Platform/OSX/System/Context.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/OSX/System/Dispatcher.cpp b/src/Platform/OSX/System/Dispatcher.cpp old mode 100755 new mode 100644 index 52c3513ef2..fec11f3fac --- a/src/Platform/OSX/System/Dispatcher.cpp +++ b/src/Platform/OSX/System/Dispatcher.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Dispatcher.h" #include diff --git a/src/Platform/OSX/System/Dispatcher.h b/src/Platform/OSX/System/Dispatcher.h old mode 100755 new mode 100644 index 48bb5636a4..096ea542ca --- a/src/Platform/OSX/System/Dispatcher.h +++ b/src/Platform/OSX/System/Dispatcher.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/OSX/System/ErrorMessage.cpp b/src/Platform/OSX/System/ErrorMessage.cpp index 75df8c146e..eb81609f59 100644 --- a/src/Platform/OSX/System/ErrorMessage.cpp +++ b/src/Platform/OSX/System/ErrorMessage.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ErrorMessage.h" #include diff --git a/src/Platform/OSX/System/ErrorMessage.h b/src/Platform/OSX/System/ErrorMessage.h index ffe88ed3dc..2d7cecb0a8 100644 --- a/src/Platform/OSX/System/ErrorMessage.h +++ b/src/Platform/OSX/System/ErrorMessage.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/OSX/System/Future.h b/src/Platform/OSX/System/Future.h index 5e4649cd02..20a2349481 100644 --- a/src/Platform/OSX/System/Future.h +++ b/src/Platform/OSX/System/Future.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/OSX/System/Ipv4Resolver.cpp b/src/Platform/OSX/System/Ipv4Resolver.cpp index cbb8b37005..92aad69e9c 100755 --- a/src/Platform/OSX/System/Ipv4Resolver.cpp +++ b/src/Platform/OSX/System/Ipv4Resolver.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Ipv4Resolver.h" #include diff --git a/src/Platform/OSX/System/Ipv4Resolver.h b/src/Platform/OSX/System/Ipv4Resolver.h old mode 100755 new mode 100644 index 02dd979396..b662e6aa4d --- a/src/Platform/OSX/System/Ipv4Resolver.h +++ b/src/Platform/OSX/System/Ipv4Resolver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/OSX/System/TcpConnection.cpp b/src/Platform/OSX/System/TcpConnection.cpp old mode 100755 new mode 100644 index 5a91f6410a..bb8f2b0108 --- a/src/Platform/OSX/System/TcpConnection.cpp +++ b/src/Platform/OSX/System/TcpConnection.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpConnection.h" #include diff --git a/src/Platform/OSX/System/TcpConnection.h b/src/Platform/OSX/System/TcpConnection.h old mode 100755 new mode 100644 index 63da8280ec..bedd7ceda4 --- a/src/Platform/OSX/System/TcpConnection.h +++ b/src/Platform/OSX/System/TcpConnection.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/OSX/System/TcpConnector.cpp b/src/Platform/OSX/System/TcpConnector.cpp old mode 100755 new mode 100644 index 91d10d195e..ea4bab713d --- a/src/Platform/OSX/System/TcpConnector.cpp +++ b/src/Platform/OSX/System/TcpConnector.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpConnector.h" #include diff --git a/src/Platform/OSX/System/TcpConnector.h b/src/Platform/OSX/System/TcpConnector.h old mode 100755 new mode 100644 index 8dc7b110f7..a994748047 --- a/src/Platform/OSX/System/TcpConnector.h +++ b/src/Platform/OSX/System/TcpConnector.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/OSX/System/TcpListener.cpp b/src/Platform/OSX/System/TcpListener.cpp old mode 100755 new mode 100644 index 907c1e61aa..9f097645d7 --- a/src/Platform/OSX/System/TcpListener.cpp +++ b/src/Platform/OSX/System/TcpListener.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpListener.h" #include diff --git a/src/Platform/OSX/System/TcpListener.h b/src/Platform/OSX/System/TcpListener.h old mode 100755 new mode 100644 index e5baaf8cf7..f67e3d36c8 --- a/src/Platform/OSX/System/TcpListener.h +++ b/src/Platform/OSX/System/TcpListener.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/OSX/System/Timer.cpp b/src/Platform/OSX/System/Timer.cpp old mode 100755 new mode 100644 index 254d683f5e..916cf98097 --- a/src/Platform/OSX/System/Timer.cpp +++ b/src/Platform/OSX/System/Timer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Timer.h" #include diff --git a/src/Platform/OSX/System/Timer.h b/src/Platform/OSX/System/Timer.h old mode 100755 new mode 100644 index ecb9dd814f..f8bda6f188 --- a/src/Platform/OSX/System/Timer.h +++ b/src/Platform/OSX/System/Timer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Windows/System/Dispatcher.cpp b/src/Platform/Windows/System/Dispatcher.cpp old mode 100755 new mode 100644 index 22d67e578a..1243460808 --- a/src/Platform/Windows/System/Dispatcher.cpp +++ b/src/Platform/Windows/System/Dispatcher.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Dispatcher.h" #include diff --git a/src/Platform/Windows/System/Dispatcher.h b/src/Platform/Windows/System/Dispatcher.h old mode 100755 new mode 100644 index 0d96f3e08e..37b7400508 --- a/src/Platform/Windows/System/Dispatcher.h +++ b/src/Platform/Windows/System/Dispatcher.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Windows/System/ErrorMessage.cpp b/src/Platform/Windows/System/ErrorMessage.cpp index 8773b29e8a..8d98ccdb71 100755 --- a/src/Platform/Windows/System/ErrorMessage.cpp +++ b/src/Platform/Windows/System/ErrorMessage.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ErrorMessage.h" diff --git a/src/Platform/Windows/System/ErrorMessage.h b/src/Platform/Windows/System/ErrorMessage.h index e48a708c27..cb5b32d8e5 100644 --- a/src/Platform/Windows/System/ErrorMessage.h +++ b/src/Platform/Windows/System/ErrorMessage.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Windows/System/Future.h b/src/Platform/Windows/System/Future.h index 3abe92c7bf..6edb652c62 100644 --- a/src/Platform/Windows/System/Future.h +++ b/src/Platform/Windows/System/Future.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Windows/System/Ipv4Resolver.cpp b/src/Platform/Windows/System/Ipv4Resolver.cpp index 2bd7b5ab50..2a0e2bbfe5 100755 --- a/src/Platform/Windows/System/Ipv4Resolver.cpp +++ b/src/Platform/Windows/System/Ipv4Resolver.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Ipv4Resolver.h" #include diff --git a/src/Platform/Windows/System/Ipv4Resolver.h b/src/Platform/Windows/System/Ipv4Resolver.h index 8f4a3fa6f4..84ba94a037 100755 --- a/src/Platform/Windows/System/Ipv4Resolver.h +++ b/src/Platform/Windows/System/Ipv4Resolver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Windows/System/TcpConnection.cpp b/src/Platform/Windows/System/TcpConnection.cpp old mode 100755 new mode 100644 index a038a9243a..3526856e06 --- a/src/Platform/Windows/System/TcpConnection.cpp +++ b/src/Platform/Windows/System/TcpConnection.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpConnection.h" #include diff --git a/src/Platform/Windows/System/TcpConnection.h b/src/Platform/Windows/System/TcpConnection.h old mode 100755 new mode 100644 index a6b0d4bdb3..0a0c1c285d --- a/src/Platform/Windows/System/TcpConnection.h +++ b/src/Platform/Windows/System/TcpConnection.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Windows/System/TcpConnector.cpp b/src/Platform/Windows/System/TcpConnector.cpp old mode 100755 new mode 100644 index 2d85f9c869..a4187609e6 --- a/src/Platform/Windows/System/TcpConnector.cpp +++ b/src/Platform/Windows/System/TcpConnector.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpConnector.h" #include diff --git a/src/Platform/Windows/System/TcpConnector.h b/src/Platform/Windows/System/TcpConnector.h old mode 100755 new mode 100644 index 18762ac57a..ec6220d5d2 --- a/src/Platform/Windows/System/TcpConnector.h +++ b/src/Platform/Windows/System/TcpConnector.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Windows/System/TcpListener.cpp b/src/Platform/Windows/System/TcpListener.cpp old mode 100755 new mode 100644 index 8528f8d250..997bad2565 --- a/src/Platform/Windows/System/TcpListener.cpp +++ b/src/Platform/Windows/System/TcpListener.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpListener.h" #include diff --git a/src/Platform/Windows/System/TcpListener.h b/src/Platform/Windows/System/TcpListener.h old mode 100755 new mode 100644 index 18886de327..dc51676126 --- a/src/Platform/Windows/System/TcpListener.h +++ b/src/Platform/Windows/System/TcpListener.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/Windows/System/Timer.cpp b/src/Platform/Windows/System/Timer.cpp old mode 100755 new mode 100644 index 62bc7a5cee..be2aaa901b --- a/src/Platform/Windows/System/Timer.cpp +++ b/src/Platform/Windows/System/Timer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Timer.h" #include diff --git a/src/Platform/Windows/System/Timer.h b/src/Platform/Windows/System/Timer.h old mode 100755 new mode 100644 index 66cf184186..a9131b7254 --- a/src/Platform/Windows/System/Timer.h +++ b/src/Platform/Windows/System/Timer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/mingw/alloca.h b/src/Platform/mingw/alloca.h index da935abf3d..5c48d295d3 100644 --- a/src/Platform/mingw/alloca.h +++ b/src/Platform/mingw/alloca.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/msc/alloca.h b/src/Platform/msc/alloca.h index c182487427..46871cf89d 100644 --- a/src/Platform/msc/alloca.h +++ b/src/Platform/msc/alloca.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/msc/stdbool.h b/src/Platform/msc/stdbool.h index e8bc6aed77..e6bd3ae474 100644 --- a/src/Platform/msc/stdbool.h +++ b/src/Platform/msc/stdbool.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Platform/msc/sys/param.h b/src/Platform/msc/sys/param.h index dc1fc4d776..e7c0c48a73 100644 --- a/src/Platform/msc/sys/param.h +++ b/src/Platform/msc/sys/param.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Rpc/CoreRpcServerCommandsDefinitions.h b/src/Rpc/CoreRpcServerCommandsDefinitions.h index efa437a30a..0c978cef1d 100755 --- a/src/Rpc/CoreRpcServerCommandsDefinitions.h +++ b/src/Rpc/CoreRpcServerCommandsDefinitions.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Rpc/CoreRpcServerErrorCodes.h b/src/Rpc/CoreRpcServerErrorCodes.h old mode 100755 new mode 100644 index 0b7a3ce4ae..472a566c9f --- a/src/Rpc/CoreRpcServerErrorCodes.h +++ b/src/Rpc/CoreRpcServerErrorCodes.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Rpc/HttpClient.cpp b/src/Rpc/HttpClient.cpp index ef943530fb..a37629c4de 100644 --- a/src/Rpc/HttpClient.cpp +++ b/src/Rpc/HttpClient.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "HttpClient.h" diff --git a/src/Rpc/HttpClient.h b/src/Rpc/HttpClient.h index 1fac305466..166f1b113f 100755 --- a/src/Rpc/HttpClient.h +++ b/src/Rpc/HttpClient.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Rpc/HttpServer.cpp b/src/Rpc/HttpServer.cpp index a0b230434f..14b2304a8d 100755 --- a/src/Rpc/HttpServer.cpp +++ b/src/Rpc/HttpServer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "HttpServer.h" #include diff --git a/src/Rpc/HttpServer.h b/src/Rpc/HttpServer.h index ca5535b639..c29959a058 100755 --- a/src/Rpc/HttpServer.h +++ b/src/Rpc/HttpServer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Rpc/JsonRpc.cpp b/src/Rpc/JsonRpc.cpp index 57a214e652..00b53e2203 100755 --- a/src/Rpc/JsonRpc.cpp +++ b/src/Rpc/JsonRpc.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "JsonRpc.h" #include "Rpc/HttpClient.h" diff --git a/src/Rpc/JsonRpc.h b/src/Rpc/JsonRpc.h index 00cbbe75cc..cd9268ac2b 100755 --- a/src/Rpc/JsonRpc.h +++ b/src/Rpc/JsonRpc.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Rpc/RpcServer.cpp b/src/Rpc/RpcServer.cpp index 4480c72f39..b3c656c4db 100755 --- a/src/Rpc/RpcServer.cpp +++ b/src/Rpc/RpcServer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "RpcServer.h" diff --git a/src/Rpc/RpcServer.h b/src/Rpc/RpcServer.h index d2f42bfb80..f68ff6c4a9 100755 --- a/src/Rpc/RpcServer.h +++ b/src/Rpc/RpcServer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "HttpServer.h" diff --git a/src/Rpc/RpcServerConfig.cpp b/src/Rpc/RpcServerConfig.cpp index b7276aaa11..7d3eff4655 100755 --- a/src/Rpc/RpcServerConfig.cpp +++ b/src/Rpc/RpcServerConfig.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "RpcServerConfig.h" #include "Common/CommandLine.h" diff --git a/src/Rpc/RpcServerConfig.h b/src/Rpc/RpcServerConfig.h index 2f6fc6f752..dc2aa5d4eb 100644 --- a/src/Rpc/RpcServerConfig.h +++ b/src/Rpc/RpcServerConfig.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/BinaryInputStreamSerializer.cpp b/src/Serialization/BinaryInputStreamSerializer.cpp index 10b70cc38a..9a50461156 100644 --- a/src/Serialization/BinaryInputStreamSerializer.cpp +++ b/src/Serialization/BinaryInputStreamSerializer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BinaryInputStreamSerializer.h" diff --git a/src/Serialization/BinaryInputStreamSerializer.h b/src/Serialization/BinaryInputStreamSerializer.h index 2bef3e9bd0..0db221c86a 100644 --- a/src/Serialization/BinaryInputStreamSerializer.h +++ b/src/Serialization/BinaryInputStreamSerializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/BinaryOutputStreamSerializer.cpp b/src/Serialization/BinaryOutputStreamSerializer.cpp index 6cdb1e0c87..71bbec0175 100644 --- a/src/Serialization/BinaryOutputStreamSerializer.cpp +++ b/src/Serialization/BinaryOutputStreamSerializer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BinaryOutputStreamSerializer.h" diff --git a/src/Serialization/BinaryOutputStreamSerializer.h b/src/Serialization/BinaryOutputStreamSerializer.h index d93dc40732..4ac936dd3a 100644 --- a/src/Serialization/BinaryOutputStreamSerializer.h +++ b/src/Serialization/BinaryOutputStreamSerializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/BinarySerializationTools.h b/src/Serialization/BinarySerializationTools.h index e3273ccb1b..d34a585f1b 100644 --- a/src/Serialization/BinarySerializationTools.h +++ b/src/Serialization/BinarySerializationTools.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include "BinaryInputStreamSerializer.h" diff --git a/src/Serialization/ISerializer.h b/src/Serialization/ISerializer.h index d199e48914..c2db7310d0 100644 --- a/src/Serialization/ISerializer.h +++ b/src/Serialization/ISerializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/IStream.h b/src/Serialization/IStream.h index 1cfe194944..2e6b106c9d 100644 --- a/src/Serialization/IStream.h +++ b/src/Serialization/IStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/JsonInputStreamSerializer.cpp b/src/Serialization/JsonInputStreamSerializer.cpp index ed6192e074..82225bbb0c 100644 --- a/src/Serialization/JsonInputStreamSerializer.cpp +++ b/src/Serialization/JsonInputStreamSerializer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Serialization/JsonInputStreamSerializer.h" diff --git a/src/Serialization/JsonInputStreamSerializer.h b/src/Serialization/JsonInputStreamSerializer.h index fdaf04fc85..4ddcc38248 100644 --- a/src/Serialization/JsonInputStreamSerializer.h +++ b/src/Serialization/JsonInputStreamSerializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/JsonInputValueSerializer.cpp b/src/Serialization/JsonInputValueSerializer.cpp index e8f2891399..f6f69adfff 100644 --- a/src/Serialization/JsonInputValueSerializer.cpp +++ b/src/Serialization/JsonInputValueSerializer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "JsonInputValueSerializer.h" diff --git a/src/Serialization/JsonInputValueSerializer.h b/src/Serialization/JsonInputValueSerializer.h index f3fc82aed7..86438f07df 100644 --- a/src/Serialization/JsonInputValueSerializer.h +++ b/src/Serialization/JsonInputValueSerializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/JsonOutputStreamSerializer.cpp b/src/Serialization/JsonOutputStreamSerializer.cpp index ed33e46cbb..d060860880 100644 --- a/src/Serialization/JsonOutputStreamSerializer.cpp +++ b/src/Serialization/JsonOutputStreamSerializer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "JsonOutputStreamSerializer.h" #include diff --git a/src/Serialization/JsonOutputStreamSerializer.h b/src/Serialization/JsonOutputStreamSerializer.h index 6eae195e56..6a6eb5ac8c 100644 --- a/src/Serialization/JsonOutputStreamSerializer.h +++ b/src/Serialization/JsonOutputStreamSerializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/KVBinaryCommon.h b/src/Serialization/KVBinaryCommon.h index fe4ea0fc48..96c0d77e49 100644 --- a/src/Serialization/KVBinaryCommon.h +++ b/src/Serialization/KVBinaryCommon.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/KVBinaryInputStreamSerializer.cpp b/src/Serialization/KVBinaryInputStreamSerializer.cpp index fb8f7689fb..403e98588e 100644 --- a/src/Serialization/KVBinaryInputStreamSerializer.cpp +++ b/src/Serialization/KVBinaryInputStreamSerializer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "KVBinaryInputStreamSerializer.h" diff --git a/src/Serialization/KVBinaryInputStreamSerializer.h b/src/Serialization/KVBinaryInputStreamSerializer.h index 05d6dcc471..09fe2fe09f 100644 --- a/src/Serialization/KVBinaryInputStreamSerializer.h +++ b/src/Serialization/KVBinaryInputStreamSerializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/KVBinaryOutputStreamSerializer.cpp b/src/Serialization/KVBinaryOutputStreamSerializer.cpp index a33c34b1e1..8de59b86fa 100644 --- a/src/Serialization/KVBinaryOutputStreamSerializer.cpp +++ b/src/Serialization/KVBinaryOutputStreamSerializer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "KVBinaryOutputStreamSerializer.h" #include "KVBinaryCommon.h" diff --git a/src/Serialization/KVBinaryOutputStreamSerializer.h b/src/Serialization/KVBinaryOutputStreamSerializer.h index 8c859a834f..c92431d14a 100644 --- a/src/Serialization/KVBinaryOutputStreamSerializer.h +++ b/src/Serialization/KVBinaryOutputStreamSerializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/MemoryStream.cpp b/src/Serialization/MemoryStream.cpp index da10cd689d..c83d9130ca 100644 --- a/src/Serialization/MemoryStream.cpp +++ b/src/Serialization/MemoryStream.cpp @@ -1,18 +1,5 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "MemoryStream.h" diff --git a/src/Serialization/MemoryStream.h b/src/Serialization/MemoryStream.h index d4f9b7fe45..486aa289eb 100644 --- a/src/Serialization/MemoryStream.h +++ b/src/Serialization/MemoryStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/SerializationOverloads.cpp b/src/Serialization/SerializationOverloads.cpp index 55a2383009..d341b89cc3 100644 --- a/src/Serialization/SerializationOverloads.cpp +++ b/src/Serialization/SerializationOverloads.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Serialization/SerializationOverloads.h" diff --git a/src/Serialization/SerializationOverloads.h b/src/Serialization/SerializationOverloads.h index d535c17a7c..a2e827c0ae 100644 --- a/src/Serialization/SerializationOverloads.h +++ b/src/Serialization/SerializationOverloads.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Serialization/SerializationTools.h b/src/Serialization/SerializationTools.h index 827ad69aa5..d352e3f2d6 100644 --- a/src/Serialization/SerializationTools.h +++ b/src/Serialization/SerializationTools.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/SimpleWallet/PasswordContainer.cpp b/src/SimpleWallet/PasswordContainer.cpp index 1643bf7c04..a3c65c8f20 100644 --- a/src/SimpleWallet/PasswordContainer.cpp +++ b/src/SimpleWallet/PasswordContainer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "PasswordContainer.h" diff --git a/src/SimpleWallet/PasswordContainer.h b/src/SimpleWallet/PasswordContainer.h old mode 100755 new mode 100644 index 0eeee40d43..c82ffd423d --- a/src/SimpleWallet/PasswordContainer.h +++ b/src/SimpleWallet/PasswordContainer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/SimpleWallet/SimpleWallet.cpp b/src/SimpleWallet/SimpleWallet.cpp index 593c9ce561..fe6c491c92 100644 --- a/src/SimpleWallet/SimpleWallet.cpp +++ b/src/SimpleWallet/SimpleWallet.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "SimpleWallet.h" diff --git a/src/SimpleWallet/SimpleWallet.h b/src/SimpleWallet/SimpleWallet.h old mode 100755 new mode 100644 index cc9db868f3..1006d85c81 --- a/src/SimpleWallet/SimpleWallet.h +++ b/src/SimpleWallet/SimpleWallet.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/Context.h b/src/System/Context.h index 65c8d4108d..ef35767c19 100755 --- a/src/System/Context.h +++ b/src/System/Context.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/ContextGroup.cpp b/src/System/ContextGroup.cpp index a0fd5b7fad..6cdf7da87c 100755 --- a/src/System/ContextGroup.cpp +++ b/src/System/ContextGroup.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ContextGroup.h" #include diff --git a/src/System/ContextGroup.h b/src/System/ContextGroup.h index 40ad6e423c..3961042b00 100755 --- a/src/System/ContextGroup.h +++ b/src/System/ContextGroup.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/ContextGroupTimeout.cpp b/src/System/ContextGroupTimeout.cpp index ac2fe472b8..e574e1eca4 100755 --- a/src/System/ContextGroupTimeout.cpp +++ b/src/System/ContextGroupTimeout.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ContextGroupTimeout.h" #include diff --git a/src/System/ContextGroupTimeout.h b/src/System/ContextGroupTimeout.h index e36645b479..9eec89686e 100755 --- a/src/System/ContextGroupTimeout.h +++ b/src/System/ContextGroupTimeout.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include diff --git a/src/System/Event.cpp b/src/System/Event.cpp index 6d24b09545..ff74f0a366 100755 --- a/src/System/Event.cpp +++ b/src/System/Event.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Event.h" #include diff --git a/src/System/Event.h b/src/System/Event.h old mode 100755 new mode 100644 index 23cebfd2a1..06dbba4f46 --- a/src/System/Event.h +++ b/src/System/Event.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/EventLock.cpp b/src/System/EventLock.cpp index 22c66764ba..172fe902fb 100755 --- a/src/System/EventLock.cpp +++ b/src/System/EventLock.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "EventLock.h" #include diff --git a/src/System/EventLock.h b/src/System/EventLock.h index e2dedf6b88..bee0019952 100755 --- a/src/System/EventLock.h +++ b/src/System/EventLock.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/InterruptedException.cpp b/src/System/InterruptedException.cpp old mode 100755 new mode 100644 index 186904ca3f..25bbe1f577 --- a/src/System/InterruptedException.cpp +++ b/src/System/InterruptedException.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "InterruptedException.h" diff --git a/src/System/InterruptedException.h b/src/System/InterruptedException.h old mode 100755 new mode 100644 index 0b8f4a9e4d..03c7ec558f --- a/src/System/InterruptedException.h +++ b/src/System/InterruptedException.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/Ipv4Address.cpp b/src/System/Ipv4Address.cpp index bad6e95a68..5d023d03b2 100755 --- a/src/System/Ipv4Address.cpp +++ b/src/System/Ipv4Address.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Ipv4Address.h" #include diff --git a/src/System/Ipv4Address.h b/src/System/Ipv4Address.h index 43d9f0e0ad..30f495118f 100755 --- a/src/System/Ipv4Address.h +++ b/src/System/Ipv4Address.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/OperationTimeout.h b/src/System/OperationTimeout.h index cb7cedaf30..6d2a1125d0 100755 --- a/src/System/OperationTimeout.h +++ b/src/System/OperationTimeout.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/RemoteContext.h b/src/System/RemoteContext.h index 39711b28ea..c39691433e 100644 --- a/src/System/RemoteContext.h +++ b/src/System/RemoteContext.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/RemoteEventLock.cpp b/src/System/RemoteEventLock.cpp index 3082ea00a3..4249673af7 100755 --- a/src/System/RemoteEventLock.cpp +++ b/src/System/RemoteEventLock.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "RemoteEventLock.h" #include diff --git a/src/System/RemoteEventLock.h b/src/System/RemoteEventLock.h index a3b6a3eb4d..08dd2553fd 100755 --- a/src/System/RemoteEventLock.h +++ b/src/System/RemoteEventLock.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/System/TcpStream.cpp b/src/System/TcpStream.cpp old mode 100755 new mode 100644 index ed97ecb698..c9e11c3d49 --- a/src/System/TcpStream.cpp +++ b/src/System/TcpStream.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpStream.h" #include diff --git a/src/System/TcpStream.h b/src/System/TcpStream.h old mode 100755 new mode 100644 index 1196a399c2..d369cace79 --- a/src/System/TcpStream.h +++ b/src/System/TcpStream.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/BlockchainSynchronizer.cpp b/src/Transfers/BlockchainSynchronizer.cpp old mode 100755 new mode 100644 index b94215474a..1a88f33ecf --- a/src/Transfers/BlockchainSynchronizer.cpp +++ b/src/Transfers/BlockchainSynchronizer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockchainSynchronizer.h" diff --git a/src/Transfers/BlockchainSynchronizer.h b/src/Transfers/BlockchainSynchronizer.h old mode 100755 new mode 100644 index 68ed5a4478..d67269420e --- a/src/Transfers/BlockchainSynchronizer.h +++ b/src/Transfers/BlockchainSynchronizer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/CommonTypes.h b/src/Transfers/CommonTypes.h old mode 100755 new mode 100644 index 9f0ac95d2f..f574c2eb71 --- a/src/Transfers/CommonTypes.h +++ b/src/Transfers/CommonTypes.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/IBlockchainSynchronizer.h b/src/Transfers/IBlockchainSynchronizer.h old mode 100755 new mode 100644 index 823d8202ce..e3dbfd2ee7 --- a/src/Transfers/IBlockchainSynchronizer.h +++ b/src/Transfers/IBlockchainSynchronizer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/IObservableImpl.h b/src/Transfers/IObservableImpl.h old mode 100755 new mode 100644 index a3085c392c..745036ecee --- a/src/Transfers/IObservableImpl.h +++ b/src/Transfers/IObservableImpl.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/SynchronizationState.cpp b/src/Transfers/SynchronizationState.cpp old mode 100755 new mode 100644 index b0d3174425..a1196afd1f --- a/src/Transfers/SynchronizationState.cpp +++ b/src/Transfers/SynchronizationState.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "SynchronizationState.h" diff --git a/src/Transfers/SynchronizationState.h b/src/Transfers/SynchronizationState.h old mode 100755 new mode 100644 index 16e8478505..12aeec059f --- a/src/Transfers/SynchronizationState.h +++ b/src/Transfers/SynchronizationState.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/TransfersConsumer.cpp b/src/Transfers/TransfersConsumer.cpp old mode 100755 new mode 100644 index 0613f2ca6d..48fb0add20 --- a/src/Transfers/TransfersConsumer.cpp +++ b/src/Transfers/TransfersConsumer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransfersConsumer.h" diff --git a/src/Transfers/TransfersConsumer.h b/src/Transfers/TransfersConsumer.h index e68896728f..9e837e1774 100755 --- a/src/Transfers/TransfersConsumer.h +++ b/src/Transfers/TransfersConsumer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/TransfersContainer.cpp b/src/Transfers/TransfersContainer.cpp old mode 100755 new mode 100644 index 72fb2a7cf2..4ebf9f23dd --- a/src/Transfers/TransfersContainer.cpp +++ b/src/Transfers/TransfersContainer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransfersContainer.h" #include "IWalletLegacy.h" diff --git a/src/Transfers/TransfersContainer.h b/src/Transfers/TransfersContainer.h old mode 100755 new mode 100644 index de104450af..096af1ad80 --- a/src/Transfers/TransfersContainer.h +++ b/src/Transfers/TransfersContainer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/TransfersSubscription.cpp b/src/Transfers/TransfersSubscription.cpp old mode 100755 new mode 100644 index 2e2d0cc3bf..1243d4690d --- a/src/Transfers/TransfersSubscription.cpp +++ b/src/Transfers/TransfersSubscription.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransfersSubscription.h" #include "IWalletLegacy.h" diff --git a/src/Transfers/TransfersSubscription.h b/src/Transfers/TransfersSubscription.h old mode 100755 new mode 100644 index 85a6466c1e..ce29dc0dcc --- a/src/Transfers/TransfersSubscription.h +++ b/src/Transfers/TransfersSubscription.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/TransfersSynchronizer.cpp b/src/Transfers/TransfersSynchronizer.cpp old mode 100755 new mode 100644 index 5d2adb1298..6579dcb9cd --- a/src/Transfers/TransfersSynchronizer.cpp +++ b/src/Transfers/TransfersSynchronizer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransfersSynchronizer.h" #include "TransfersConsumer.h" diff --git a/src/Transfers/TransfersSynchronizer.h b/src/Transfers/TransfersSynchronizer.h index 3835856795..fe34cf7682 100644 --- a/src/Transfers/TransfersSynchronizer.h +++ b/src/Transfers/TransfersSynchronizer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Transfers/TypeHelpers.h b/src/Transfers/TypeHelpers.h index 556354b826..ab9c8e78a8 100644 --- a/src/Transfers/TypeHelpers.h +++ b/src/Transfers/TypeHelpers.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/IFusionManager.h b/src/Wallet/IFusionManager.h index 276b8bfc63..56967ec37f 100644 --- a/src/Wallet/IFusionManager.h +++ b/src/Wallet/IFusionManager.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/LegacyKeysImporter.cpp b/src/Wallet/LegacyKeysImporter.cpp index cee143c5ef..12ca093d01 100755 --- a/src/Wallet/LegacyKeysImporter.cpp +++ b/src/Wallet/LegacyKeysImporter.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "LegacyKeysImporter.h" diff --git a/src/Wallet/LegacyKeysImporter.h b/src/Wallet/LegacyKeysImporter.h old mode 100755 new mode 100644 index 510359104e..e32f8022cd --- a/src/Wallet/LegacyKeysImporter.h +++ b/src/Wallet/LegacyKeysImporter.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/WalletAsyncContextCounter.cpp b/src/Wallet/WalletAsyncContextCounter.cpp index 2ddbf05435..e9aba1868d 100644 --- a/src/Wallet/WalletAsyncContextCounter.cpp +++ b/src/Wallet/WalletAsyncContextCounter.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletAsyncContextCounter.h" diff --git a/src/Wallet/WalletAsyncContextCounter.h b/src/Wallet/WalletAsyncContextCounter.h index 1b3f1bd9f1..d1de047c3a 100644 --- a/src/Wallet/WalletAsyncContextCounter.h +++ b/src/Wallet/WalletAsyncContextCounter.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/WalletErrors.cpp b/src/Wallet/WalletErrors.cpp index 38bb09adf9..5e28da4427 100644 --- a/src/Wallet/WalletErrors.cpp +++ b/src/Wallet/WalletErrors.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletErrors.h" diff --git a/src/Wallet/WalletErrors.h b/src/Wallet/WalletErrors.h index 2a02b9aaab..f52677f1ca 100644 --- a/src/Wallet/WalletErrors.h +++ b/src/Wallet/WalletErrors.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/WalletGreen.cpp b/src/Wallet/WalletGreen.cpp index 939a199ac9..4e10b3e8a7 100755 --- a/src/Wallet/WalletGreen.cpp +++ b/src/Wallet/WalletGreen.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletGreen.h" @@ -252,7 +239,7 @@ WalletGreen::WalletGreen(System::Dispatcher& dispatcher, const Currency& currenc m_pendingBalance(0), m_transactionSoftLockTime(transactionSoftLockTime) { - m_upperTransactionSizeLimit = m_currency.blockGrantedFullRewardZone() * 125 / 100 - m_currency.minerTxBlobReservedSize(); + m_upperTransactionSizeLimit = m_currency.blockGrantedFullRewardZone() * 2 - m_currency.minerTxBlobReservedSize(); m_readyEvent.set(); } diff --git a/src/Wallet/WalletGreen.h b/src/Wallet/WalletGreen.h index 5424170f6d..39a773cfc0 100755 --- a/src/Wallet/WalletGreen.h +++ b/src/Wallet/WalletGreen.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/WalletIndices.h b/src/Wallet/WalletIndices.h index f9f6f152fa..761f5677fa 100644 --- a/src/Wallet/WalletIndices.h +++ b/src/Wallet/WalletIndices.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/WalletRpcServer.cpp b/src/Wallet/WalletRpcServer.cpp index 4d76d463f6..38bd995f93 100644 --- a/src/Wallet/WalletRpcServer.cpp +++ b/src/Wallet/WalletRpcServer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletRpcServer.h" diff --git a/src/Wallet/WalletRpcServer.h b/src/Wallet/WalletRpcServer.h index c76b3a0c51..e0705022fd 100755 --- a/src/Wallet/WalletRpcServer.h +++ b/src/Wallet/WalletRpcServer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/WalletRpcServerCommandsDefinitions.h b/src/Wallet/WalletRpcServerCommandsDefinitions.h index 2e0fc322c3..adc438b486 100755 --- a/src/Wallet/WalletRpcServerCommandsDefinitions.h +++ b/src/Wallet/WalletRpcServerCommandsDefinitions.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "CryptoNoteProtocol/CryptoNoteProtocolDefinitions.h" diff --git a/src/Wallet/WalletRpcServerErrorCodes.h b/src/Wallet/WalletRpcServerErrorCodes.h old mode 100755 new mode 100644 index 8edf4b8d97..7f386a4e9a --- a/src/Wallet/WalletRpcServerErrorCodes.h +++ b/src/Wallet/WalletRpcServerErrorCodes.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/WalletSerialization.cpp b/src/Wallet/WalletSerialization.cpp old mode 100755 new mode 100644 index 4087da41cf..14abe8217b --- a/src/Wallet/WalletSerialization.cpp +++ b/src/Wallet/WalletSerialization.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletSerialization.h" diff --git a/src/Wallet/WalletSerialization.h b/src/Wallet/WalletSerialization.h old mode 100755 new mode 100644 index 84c18aded8..10d1c960be --- a/src/Wallet/WalletSerialization.h +++ b/src/Wallet/WalletSerialization.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/Wallet/WalletUtils.cpp b/src/Wallet/WalletUtils.cpp index a1ec7affc8..dc987693fc 100644 --- a/src/Wallet/WalletUtils.cpp +++ b/src/Wallet/WalletUtils.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletUtils.h" diff --git a/src/Wallet/WalletUtils.h b/src/Wallet/WalletUtils.h index 21bdf04ad2..6b583353b4 100644 --- a/src/Wallet/WalletUtils.h +++ b/src/Wallet/WalletUtils.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/KeysStorage.cpp b/src/WalletLegacy/KeysStorage.cpp old mode 100755 new mode 100644 index ce5ca7e2c3..e9a9ae4bd6 --- a/src/WalletLegacy/KeysStorage.cpp +++ b/src/WalletLegacy/KeysStorage.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "KeysStorage.h" diff --git a/src/WalletLegacy/KeysStorage.h b/src/WalletLegacy/KeysStorage.h index dd712e3249..5394f87d14 100644 --- a/src/WalletLegacy/KeysStorage.h +++ b/src/WalletLegacy/KeysStorage.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletHelper.cpp b/src/WalletLegacy/WalletHelper.cpp index 3d6bb36437..39446cef94 100755 --- a/src/WalletLegacy/WalletHelper.cpp +++ b/src/WalletLegacy/WalletHelper.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletHelper.h" #include "Common/PathTools.h" diff --git a/src/WalletLegacy/WalletHelper.h b/src/WalletLegacy/WalletHelper.h index adcc16db58..69b50fd98a 100755 --- a/src/WalletLegacy/WalletHelper.h +++ b/src/WalletLegacy/WalletHelper.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletLegacy.cpp b/src/WalletLegacy/WalletLegacy.cpp old mode 100755 new mode 100644 index e231c89b6b..fa4e7bbde6 --- a/src/WalletLegacy/WalletLegacy.cpp +++ b/src/WalletLegacy/WalletLegacy.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletLegacy.h" diff --git a/src/WalletLegacy/WalletLegacy.h b/src/WalletLegacy/WalletLegacy.h old mode 100755 new mode 100644 index 169e30db3d..b3fce0a7e6 --- a/src/WalletLegacy/WalletLegacy.h +++ b/src/WalletLegacy/WalletLegacy.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletLegacyEvent.h b/src/WalletLegacy/WalletLegacyEvent.h index 4760ccf765..c266e650e3 100755 --- a/src/WalletLegacy/WalletLegacyEvent.h +++ b/src/WalletLegacy/WalletLegacyEvent.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletLegacySerialization.cpp b/src/WalletLegacy/WalletLegacySerialization.cpp old mode 100755 new mode 100644 index e6b6d076c9..6dfe4f547a --- a/src/WalletLegacy/WalletLegacySerialization.cpp +++ b/src/WalletLegacy/WalletLegacySerialization.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletLegacySerialization.h" #include "WalletLegacy/WalletUnconfirmedTransactions.h" diff --git a/src/WalletLegacy/WalletLegacySerialization.h b/src/WalletLegacy/WalletLegacySerialization.h old mode 100755 new mode 100644 index 751f45969a..f39a42d074 --- a/src/WalletLegacy/WalletLegacySerialization.h +++ b/src/WalletLegacy/WalletLegacySerialization.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletLegacySerializer.cpp b/src/WalletLegacy/WalletLegacySerializer.cpp index 0b1d94ccf7..4e85094b42 100755 --- a/src/WalletLegacy/WalletLegacySerializer.cpp +++ b/src/WalletLegacy/WalletLegacySerializer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletLegacySerializer.h" diff --git a/src/WalletLegacy/WalletLegacySerializer.h b/src/WalletLegacy/WalletLegacySerializer.h old mode 100755 new mode 100644 index 98e7f9bca7..05fbee1d45 --- a/src/WalletLegacy/WalletLegacySerializer.h +++ b/src/WalletLegacy/WalletLegacySerializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletRequest.h b/src/WalletLegacy/WalletRequest.h index 8185ce81de..6a691233af 100644 --- a/src/WalletLegacy/WalletRequest.h +++ b/src/WalletLegacy/WalletRequest.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletSendTransactionContext.h b/src/WalletLegacy/WalletSendTransactionContext.h old mode 100755 new mode 100644 index 0066c14b3e..18d5cc8cd6 --- a/src/WalletLegacy/WalletSendTransactionContext.h +++ b/src/WalletLegacy/WalletSendTransactionContext.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletTransactionSender.cpp b/src/WalletLegacy/WalletTransactionSender.cpp index 72d0c10c57..e88e7a0b72 100644 --- a/src/WalletLegacy/WalletTransactionSender.cpp +++ b/src/WalletLegacy/WalletTransactionSender.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypto/crypto.h" //for rand() #include "CryptoNoteCore/Account.h" @@ -83,7 +70,7 @@ WalletTransactionSender::WalletTransactionSender(const Currency& currency, Walle m_isStoping(false), m_keys(keys), m_transferDetails(transfersContainer), - m_upperTransactionSizeLimit(m_currency.blockGrantedFullRewardZone() * 125 / 100 - m_currency.minerTxBlobReservedSize()) {} + m_upperTransactionSizeLimit(m_currency.blockGrantedFullRewardZone() * 2 - m_currency.minerTxBlobReservedSize()) {} void WalletTransactionSender::stop() { m_isStoping = true; diff --git a/src/WalletLegacy/WalletTransactionSender.h b/src/WalletLegacy/WalletTransactionSender.h old mode 100755 new mode 100644 index 97fdae4f99..7bd368751a --- a/src/WalletLegacy/WalletTransactionSender.h +++ b/src/WalletLegacy/WalletTransactionSender.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletUnconfirmedTransactions.cpp b/src/WalletLegacy/WalletUnconfirmedTransactions.cpp old mode 100755 new mode 100644 index 18be8aa662..a56a750176 --- a/src/WalletLegacy/WalletUnconfirmedTransactions.cpp +++ b/src/WalletLegacy/WalletUnconfirmedTransactions.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletUnconfirmedTransactions.h" #include "WalletLegacy/WalletLegacySerialization.h" diff --git a/src/WalletLegacy/WalletUnconfirmedTransactions.h b/src/WalletLegacy/WalletUnconfirmedTransactions.h old mode 100755 new mode 100644 index bbe21d681f..2a446a647c --- a/src/WalletLegacy/WalletUnconfirmedTransactions.h +++ b/src/WalletLegacy/WalletUnconfirmedTransactions.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletUserTransactionsCache.cpp b/src/WalletLegacy/WalletUserTransactionsCache.cpp old mode 100755 new mode 100644 index 9420098812..024692349c --- a/src/WalletLegacy/WalletUserTransactionsCache.cpp +++ b/src/WalletLegacy/WalletUserTransactionsCache.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "IWalletLegacy.h" #include "Wallet/WalletErrors.h" diff --git a/src/WalletLegacy/WalletUserTransactionsCache.h b/src/WalletLegacy/WalletUserTransactionsCache.h old mode 100755 new mode 100644 index 89b4add6d0..d237d3a1c6 --- a/src/WalletLegacy/WalletUserTransactionsCache.h +++ b/src/WalletLegacy/WalletUserTransactionsCache.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/WalletLegacy/WalletUtils.h b/src/WalletLegacy/WalletUtils.h old mode 100755 new mode 100644 index abdb04c972..dc03e43bb3 --- a/src/WalletLegacy/WalletUtils.h +++ b/src/WalletLegacy/WalletUtils.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/crypto/crypto-ops-data.c b/src/crypto/crypto-ops-data.c index e6253f4de5..ed8e5fe09f 100644 --- a/src/crypto/crypto-ops-data.c +++ b/src/crypto/crypto-ops-data.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include diff --git a/src/crypto/crypto-ops.c b/src/crypto/crypto-ops.c index 4ef2c76297..8de36dbffd 100644 --- a/src/crypto/crypto-ops.c +++ b/src/crypto/crypto-ops.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/crypto/crypto.cpp b/src/crypto/crypto.cpp old mode 100755 new mode 100644 index 7b2103c81f..45ecd95442 --- a/src/crypto/crypto.cpp +++ b/src/crypto/crypto.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h old mode 100755 new mode 100644 index 6426a85638..ae3b2e3fb2 --- a/src/crypto/crypto.h +++ b/src/crypto/crypto.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/crypto/generic-ops.h b/src/crypto/generic-ops.h index 91d3529726..2a03e7148a 100644 --- a/src/crypto/generic-ops.h +++ b/src/crypto/generic-ops.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/crypto/hash-extra-blake.c b/src/crypto/hash-extra-blake.c index d14c9eff51..951e81c9a9 100644 --- a/src/crypto/hash-extra-blake.c +++ b/src/crypto/hash-extra-blake.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/crypto/hash-extra-groestl.c b/src/crypto/hash-extra-groestl.c index 50c69ffeea..a0c522a4e7 100644 --- a/src/crypto/hash-extra-groestl.c +++ b/src/crypto/hash-extra-groestl.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/crypto/hash-extra-jh.c b/src/crypto/hash-extra-jh.c index 05018a3d6f..d039d4aa17 100644 --- a/src/crypto/hash-extra-jh.c +++ b/src/crypto/hash-extra-jh.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/crypto/hash-extra-skein.c b/src/crypto/hash-extra-skein.c index 232f9df338..2e58916de4 100644 --- a/src/crypto/hash-extra-skein.c +++ b/src/crypto/hash-extra-skein.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/crypto/hash-ops.h b/src/crypto/hash-ops.h old mode 100755 new mode 100644 index 1a2ec16ec5..015f05e28f --- a/src/crypto/hash-ops.h +++ b/src/crypto/hash-ops.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/crypto/hash.c b/src/crypto/hash.c index f652255a51..f1e3e65f21 100644 --- a/src/crypto/hash.c +++ b/src/crypto/hash.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/crypto/hash.h b/src/crypto/hash.h index 08410a2cf8..a64115c741 100644 --- a/src/crypto/hash.h +++ b/src/crypto/hash.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/crypto/initializer.h b/src/crypto/initializer.h index 7c40256232..a5c38dff03 100644 --- a/src/crypto/initializer.h +++ b/src/crypto/initializer.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/crypto/random.c b/src/crypto/random.c index fc7497e31d..03d1f6d85b 100644 --- a/src/crypto/random.c +++ b/src/crypto/random.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/crypto/random.h b/src/crypto/random.h index a07819023d..57fd72cc85 100644 --- a/src/crypto/random.h +++ b/src/crypto/random.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c old mode 100755 new mode 100644 index 31ce6766ee..6c76d5b560 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/crypto/slow-hash.cpp b/src/crypto/slow-hash.cpp index 58fc44ccea..75713828ed 100644 --- a/src/crypto/slow-hash.cpp +++ b/src/crypto/slow-hash.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include diff --git a/src/crypto/slow-hash.inl b/src/crypto/slow-hash.inl index e0d15e73e4..7bbe50c1c8 100644 --- a/src/crypto/slow-hash.inl +++ b/src/crypto/slow-hash.inl @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. static void #if defined(AESNI) diff --git a/src/crypto/tree-hash.c b/src/crypto/tree-hash.c index fd4fc5d27e..50139963a6 100644 --- a/src/crypto/tree-hash.c +++ b/src/crypto/tree-hash.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/src/version.h.in b/src/version.h.in index 62c51d6f0a..cf7c25d002 100644 --- a/src/version.h.in +++ b/src/version.h.in @@ -1,4 +1,4 @@ #define BUILD_COMMIT_ID "@VERSION@" -#define PROJECT_VERSION "1.0.9.1" -#define PROJECT_VERSION_BUILD_NO "662" +#define PROJECT_VERSION "1.1.1" +#define PROJECT_VERSION_BUILD_NO "1" #define PROJECT_VERSION_LONG PROJECT_VERSION "." PROJECT_VERSION_BUILD_NO "(" BUILD_COMMIT_ID ")" diff --git a/tests/CoreTests/AccountBoostSerialization.h b/tests/CoreTests/AccountBoostSerialization.h old mode 100755 new mode 100644 index 6020468e97..18659e0712 --- a/tests/CoreTests/AccountBoostSerialization.h +++ b/tests/CoreTests/AccountBoostSerialization.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/CoreTests/BlockReward.cpp b/tests/CoreTests/BlockReward.cpp index ae4e8d00af..743a77694c 100644 --- a/tests/CoreTests/BlockReward.cpp +++ b/tests/CoreTests/BlockReward.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockReward.h" #include "CryptoNoteCore/CryptoNoteTools.h" @@ -125,7 +112,7 @@ bool gen_block_reward::generate(std::vector& events) const MAKE_NEXT_BLOCK_TX_LIST(events, blk_7, blk_6, miner_account, txs_0); DO_CALLBACK(events, "mark_checked_block"); - // Test: block reward == transactions fee + // Test: block reward == 0 { Transaction tx_1 = construct_tx_with_fee(m_logger, events, blk_5, miner_account, bob_account, MK_COINS(1), 11 * m_currency.minimumFee()); Transaction tx_2 = construct_tx_with_fee(m_logger, events, blk_5, miner_account, bob_account, MK_COINS(1), 13 * m_currency.minimumFee()); @@ -210,7 +197,7 @@ bool gen_block_reward::check_block_rewards(CryptoNote::core& /*c*/, size_t /*ev_ CHECK_EQ(blk_rewards[6] + (5 + 7) * m_currency.minimumFee(), get_tx_out_amount(blk_n2.baseTransaction)); Block blk_n3 = boost::get(events[m_checked_blocks_indices[7]]); - CHECK_EQ((11 + 13) * m_currency.minimumFee(), get_tx_out_amount(blk_n3.baseTransaction)); + CHECK_EQ(0, get_tx_out_amount(blk_n3.baseTransaction)); return true; } diff --git a/tests/CoreTests/BlockReward.h b/tests/CoreTests/BlockReward.h old mode 100755 new mode 100644 index b5bbf628ca..7c3cae84dd --- a/tests/CoreTests/BlockReward.h +++ b/tests/CoreTests/BlockReward.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "Chaingen.h" diff --git a/tests/CoreTests/BlockValidation.cpp b/tests/CoreTests/BlockValidation.cpp index dce366e8b1..a18bb1a5e0 100644 --- a/tests/CoreTests/BlockValidation.cpp +++ b/tests/CoreTests/BlockValidation.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BlockValidation.h" #include "TestGenerator.h" @@ -60,60 +47,6 @@ namespace { return true; } - bool getParentBlockSize(const CryptoNote::Block& block, size_t& size) { - auto serializer = CryptoNote::makeParentBlockSerializer(block, false, false); - if (!CryptoNote::getObjectBinarySize(serializer, size)) { - LOG_ERROR("Failed to get size of parent block"); - return false; - } - return true; - } - - bool adjustParentBlockSize(CryptoNote::Block& block, size_t targetSize) { - size_t parentBlockSize; - if (!getParentBlockSize(block, parentBlockSize)) { - return false; - } - - if (parentBlockSize > targetSize) { - LOG_ERROR("Parent block size is " << parentBlockSize << " bytes that is already greater than target size " << targetSize << " bytes"); - return false; - } - - block.parentBlock.baseTransaction.extra.resize(block.parentBlock.baseTransaction.extra.size() + (targetSize - parentBlockSize)); - - if (!getParentBlockSize(block, parentBlockSize)) { - return false; - } - - if (parentBlockSize > targetSize) { - if (block.parentBlock.baseTransaction.extra.size() < parentBlockSize - targetSize) { - LOG_ERROR("Failed to adjust parent block size to " << targetSize); - return false; - } - - block.parentBlock.baseTransaction.extra.resize(block.parentBlock.baseTransaction.extra.size() - (parentBlockSize - targetSize)); - - if (!getParentBlockSize(block, parentBlockSize)) { - return false; - } - - if (parentBlockSize + 1 == targetSize) { - block.timestamp = std::max(block.timestamp, UINT64_C(1)) << 7; - if (!getParentBlockSize(block, parentBlockSize)) { - return false; - } - } - } - - if (parentBlockSize != targetSize) { - LOG_ERROR("Failed to adjust parent block size to " << targetSize); - return false; - } - - return true; - } - void clearTransaction(CryptoNote::Transaction& tx) { tx.version = 0; tx.unlockTime = 0; @@ -128,14 +61,14 @@ namespace { bool TestBlockMajorVersionAccepted::generate(std::vector& events) const { TestGenerator bg(m_currency, events); - bg.generateBlocks(1, m_blockMajorVersion); + bg.generateBlocks(1, BLOCK_MAJOR_VERSION_1); DO_CALLBACK(events, "check_block_accepted"); return true; } bool TestBlockMajorVersionRejected::generate(std::vector& events) const { TestGenerator bg(m_currency, events); - bg.generateBlocks(1, m_blockGeneratedVersion); + bg.generateBlocks(1, BLOCK_MAJOR_VERSION_1 + 1); DO_CALLBACK(events, "check_block_purged"); return true; } @@ -145,7 +78,7 @@ bool TestBlockBigMinorVersion::generate(std::vector& events) c CryptoNote::Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_minor_ver, m_blockMajorVersion, BLOCK_MINOR_VERSION_0 + 1); + test_generator::bf_major_ver | test_generator::bf_minor_ver, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0 + 1); events.push_back(blk_1); @@ -158,13 +91,11 @@ bool gen_block_ts_not_checked::generate(std::vector& events) c { BLOCK_VALIDATION_INIT_GENERATE(); - generator.defaultMajorVersion = m_blockMajorVersion; - REWIND_BLOCKS_N(events, blk_0r, blk_0, miner_account, m_currency.timestampCheckWindow() - 2); Block blk_1; generator.constructBlockManually(blk_1, blk_0r, miner_account, - test_generator::bf_major_ver | test_generator::bf_timestamp, m_blockMajorVersion, 0, blk_0.timestamp - 60 * 60); + test_generator::bf_major_ver | test_generator::bf_timestamp, BLOCK_MAJOR_VERSION_1, 0, blk_0.timestamp - 60 * 60); events.push_back(blk_1); DO_CALLBACK(events, "check_block_accepted"); @@ -176,14 +107,12 @@ bool gen_block_ts_in_past::generate(std::vector& events) const { BLOCK_VALIDATION_INIT_GENERATE(); - generator.defaultMajorVersion = m_blockMajorVersion; - REWIND_BLOCKS_N(events, blk_0r, blk_0, miner_account, m_currency.timestampCheckWindow() - 1); uint64_t ts_below_median = boost::get(events[m_currency.timestampCheckWindow() / 2 - 1]).timestamp; Block blk_1; generator.constructBlockManually(blk_1, blk_0r, miner_account, - test_generator::bf_major_ver | test_generator::bf_timestamp, m_blockMajorVersion, 0, ts_below_median); + test_generator::bf_major_ver | test_generator::bf_timestamp, BLOCK_MAJOR_VERSION_1, 0, ts_below_median); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -197,7 +126,7 @@ bool gen_block_ts_in_future_rejected::generate(std::vector& ev Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, test_generator::bf_major_ver | test_generator::bf_timestamp, - m_blockMajorVersion, 0, time(NULL) + 60 * 60 + m_currency.blockFutureTimeLimit()); + BLOCK_MAJOR_VERSION_1, 0, time(NULL) + 60 * 60 + m_currency.blockFutureTimeLimit()); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -211,7 +140,7 @@ bool gen_block_ts_in_future_accepted::generate(std::vector& ev Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, test_generator::bf_major_ver | test_generator::bf_timestamp, - m_blockMajorVersion, 0, time(NULL) - 60 + m_currency.blockFutureTimeLimit()); + BLOCK_MAJOR_VERSION_1, 0, time(NULL) - 60 + m_currency.blockFutureTimeLimit()); events.push_back(blk_1); DO_CALLBACK(events, "check_block_accepted"); @@ -228,7 +157,7 @@ bool gen_block_invalid_prev_id::generate(std::vector& events) Crypto::Hash prev_id = get_block_hash(blk_0); reinterpret_cast(prev_id) ^= 1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_prev_id, m_blockMajorVersion, 0, 0, prev_id); + test_generator::bf_major_ver | test_generator::bf_prev_id, BLOCK_MAJOR_VERSION_1, 0, 0, prev_id); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -251,7 +180,7 @@ bool gen_block_invalid_nonce::generate(std::vector& events) co std::vector timestamps; std::vector commulative_difficulties; if (!lift_up_difficulty(m_currency, events, timestamps, commulative_difficulties, generator, 2, blk_0, miner_account, - m_blockMajorVersion)) { + BLOCK_MAJOR_VERSION_1)) { return false; } @@ -266,7 +195,7 @@ bool gen_block_invalid_nonce::generate(std::vector& events) co ++timestamp; clearTransaction(blk_3.baseTransaction); if (!generator.constructBlockManually(blk_3, blk_last, miner_account, - test_generator::bf_major_ver | test_generator::bf_diffic | test_generator::bf_timestamp, m_blockMajorVersion, 0, timestamp, Crypto::Hash(), diffic)) + test_generator::bf_major_ver | test_generator::bf_diffic | test_generator::bf_timestamp, BLOCK_MAJOR_VERSION_1, 0, timestamp, Crypto::Hash(), diffic)) return false; } while (0 == blk_3.nonce); @@ -285,7 +214,7 @@ bool gen_block_no_miner_tx::generate(std::vector& events) cons Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -302,7 +231,7 @@ bool gen_block_unlock_time_is_low::generate(std::vector& event Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -319,7 +248,7 @@ bool gen_block_unlock_time_is_high::generate(std::vector& even Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -336,7 +265,7 @@ bool gen_block_unlock_time_is_timestamp_in_past::generate(std::vector& events) co Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -387,7 +316,7 @@ bool gen_block_height_is_high::generate(std::vector& events) c Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -407,7 +336,7 @@ bool gen_block_miner_tx_has_2_tx_gen_in::generate(std::vector& Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -419,8 +348,6 @@ bool gen_block_miner_tx_has_2_in::generate(std::vector& events { BLOCK_VALIDATION_INIT_GENERATE(); - generator.defaultMajorVersion = m_blockMajorVersion; - REWIND_BLOCKS(events, blk_0r, blk_0, miner_account); GENERATE_ACCOUNT(alice); @@ -449,7 +376,7 @@ bool gen_block_miner_tx_has_2_in::generate(std::vector& events Block blk_1; generator.constructBlockManually(blk_1, blk_0r, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -461,8 +388,6 @@ bool gen_block_miner_tx_with_txin_to_key::generate(std::vector { BLOCK_VALIDATION_INIT_GENERATE(); - generator.defaultMajorVersion = m_blockMajorVersion; - // This block has only one output Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, test_generator::bf_none); @@ -494,7 +419,7 @@ bool gen_block_miner_tx_with_txin_to_key::generate(std::vector Block blk_2; generator.constructBlockManually(blk_2, blk_1r, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_2); DO_CALLBACK(events, "check_block_purged"); @@ -511,7 +436,7 @@ bool gen_block_miner_tx_out_is_small::generate(std::vector& ev Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -528,7 +453,7 @@ bool gen_block_miner_tx_out_is_big::generate(std::vector& even Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -545,7 +470,7 @@ bool gen_block_miner_tx_has_no_out::generate(std::vector& even Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_purged"); @@ -575,7 +500,7 @@ bool gen_block_miner_tx_has_out_to_alice::generate(std::vector Block blk_1; generator.constructBlockManually(blk_1, blk_0, miner_account, - test_generator::bf_major_ver | test_generator::bf_miner_tx, m_blockMajorVersion, 0, 0, Crypto::Hash(), 0, miner_tx); + test_generator::bf_major_ver | test_generator::bf_miner_tx, BLOCK_MAJOR_VERSION_1, 0, 0, Crypto::Hash(), 0, miner_tx); events.push_back(blk_1); DO_CALLBACK(events, "check_block_accepted"); @@ -587,8 +512,6 @@ bool gen_block_has_invalid_tx::generate(std::vector& events) c { BLOCK_VALIDATION_INIT_GENERATE(); - generator.defaultMajorVersion = m_blockMajorVersion; - std::vector tx_hashes; tx_hashes.push_back(Crypto::Hash()); @@ -604,7 +527,6 @@ bool gen_block_has_invalid_tx::generate(std::vector& events) c bool gen_block_is_too_big::generate(std::vector& events) const { BLOCK_VALIDATION_INIT_GENERATE(); - generator.defaultMajorVersion = m_blockMajorVersion; Block blk_1; if (!generator.constructMaxSizeBlock(blk_1, blk_0, miner_account)) { @@ -622,8 +544,6 @@ bool gen_block_is_too_big::generate(std::vector& events) const bool TestBlockCumulativeSizeExceedsLimit::generate(std::vector& events) const { BLOCK_VALIDATION_INIT_GENERATE(); - generator.defaultMajorVersion = m_blockMajorVersion; - Block prevBlock = blk_0; for (size_t height = 1; height < 1000; ++height) { Block block; @@ -645,11 +565,9 @@ bool TestBlockCumulativeSizeExceedsLimit::generate(std::vector return false; } -gen_block_invalid_binary_format::gen_block_invalid_binary_format(uint8_t blockMajorVersion) : - m_corrupt_blocks_begin_idx(0), - m_blockMajorVersion(blockMajorVersion) { +gen_block_invalid_binary_format::gen_block_invalid_binary_format() : + m_corrupt_blocks_begin_idx(0) { CryptoNote::CurrencyBuilder currencyBuilder(m_logger); - currencyBuilder.upgradeHeight(blockMajorVersion == CryptoNote::BLOCK_MAJOR_VERSION_1 ? UNDEF_HEIGHT : 0); m_currency = currencyBuilder.currency(); REGISTER_CALLBACK("check_all_blocks_purged", gen_block_invalid_binary_format::check_all_blocks_purged); @@ -660,8 +578,6 @@ bool gen_block_invalid_binary_format::generate(std::vector& ev { BLOCK_VALIDATION_INIT_GENERATE(); - generator.defaultMajorVersion = m_blockMajorVersion; - std::vector timestamps; std::vector cummulative_difficulties; difficulty_type cummulative_diff = 1; @@ -684,7 +600,7 @@ bool gen_block_invalid_binary_format::generate(std::vector& ev blk_last = boost::get(events.back()); diffic = m_currency.nextDifficulty(timestamps, cummulative_difficulties); if (!lift_up_difficulty(m_currency, events, timestamps, cummulative_difficulties, generator, 1, blk_last, - miner_account, m_blockMajorVersion)) { + miner_account, BLOCK_MAJOR_VERSION_1)) { return false; } std::cout << "Block #" << events.size() << ", difficulty: " << diffic << std::endl; @@ -702,7 +618,7 @@ bool gen_block_invalid_binary_format::generate(std::vector& ev diffic = m_currency.nextDifficulty(timestamps, cummulative_difficulties); if (!generator.constructBlockManually(blk_test, blk_last, miner_account, test_generator::bf_major_ver | test_generator::bf_diffic | test_generator::bf_timestamp | test_generator::bf_tx_hashes, - m_blockMajorVersion, 0, blk_last.timestamp, Crypto::Hash(), diffic, Transaction(), tx_hashes, txs_size)) + BLOCK_MAJOR_VERSION_1, 0, blk_last.timestamp, Crypto::Hash(), diffic, Transaction(), tx_hashes, txs_size)) return false; BinaryArray blob = toBinaryArray(blk_test); @@ -751,76 +667,3 @@ bool gen_block_invalid_binary_format::check_all_blocks_purged(CryptoNote::core& return true; } - -bool TestMaxSizeOfParentBlock::generate(std::vector& events) const { - BLOCK_VALIDATION_INIT_GENERATE(); - - CryptoNote::Block blk_1; - generator.constructBlockManually(blk_1, blk_0, miner_account, test_generator::bf_major_ver, BLOCK_MAJOR_VERSION_2); - if (!adjustParentBlockSize(blk_1, 2 * 1024)) { - return false; - } - events.push_back(blk_1); - - DO_CALLBACK(events, "check_block_accepted"); - - return true; -} - -bool TestBigParentBlock::generate(std::vector& events) const { - BLOCK_VALIDATION_INIT_GENERATE(); - - CryptoNote::Block blk_1; - generator.constructBlockManually(blk_1, blk_0, miner_account, test_generator::bf_major_ver, BLOCK_MAJOR_VERSION_2); - if (!adjustParentBlockSize(blk_1, 2 * 1024 + 1)) { - return false; - } - events.push_back(blk_1); - - DO_CALLBACK(events, "check_block_purged"); - - return true; -} - - -namespace -{ - template - bool GenerateAndMutateBlockV2(const CryptoNote::Currency& currency, std::vector& events, const std::string& callback, MutateFunc mf) { - TestGenerator bg(currency, events); - - CryptoNote::Block blk_1; - bg.generator.constructBlockManually( - blk_1, bg.lastBlock, bg.minerAccount, test_generator::bf_major_ver, BLOCK_MAJOR_VERSION_2); - - mf(blk_1); - - events.push_back(blk_1); - bg.addCallback(callback); - - return true; - } -} - -bool TestBlock2ExtraEmpty::generate(std::vector& events) const { - return GenerateAndMutateBlockV2(m_currency, events, "check_block_purged", [](CryptoNote::Block& blk) { - blk.parentBlock.baseTransaction.extra.clear(); - }); -} - -bool TestBlock2ExtraWithoutMMTag::generate(std::vector& events) const { - return GenerateAndMutateBlockV2(m_currency, events, "check_block_purged", [](CryptoNote::Block& blk) { - blk.parentBlock.baseTransaction.extra.clear(); - CryptoNote::addExtraNonceToTransactionExtra(blk.parentBlock.baseTransaction.extra, asBinaryArray("0xdeadbeef")); - }); -} - -bool TestBlock2ExtraWithGarbage::generate(std::vector& events) const { - return GenerateAndMutateBlockV2(m_currency, events, "check_block_accepted", [](CryptoNote::Block& blk) { - CryptoNote::addExtraNonceToTransactionExtra(blk.parentBlock.baseTransaction.extra, asBinaryArray("0xdeadbeef")); - blk.parentBlock.baseTransaction.extra.push_back(0xde); - blk.parentBlock.baseTransaction.extra.push_back(0xad); - blk.parentBlock.baseTransaction.extra.push_back(0xbe); - blk.parentBlock.baseTransaction.extra.push_back(0xef); - }); -} diff --git a/tests/CoreTests/BlockValidation.h b/tests/CoreTests/BlockValidation.h old mode 100755 new mode 100644 index e2862fe813..c249fef617 --- a/tests/CoreTests/BlockValidation.h +++ b/tests/CoreTests/BlockValidation.h @@ -1,35 +1,17 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "Chaingen.h" -const uint64_t UNDEF_HEIGHT = static_cast(CryptoNote::UpgradeDetectorBase::UNDEF_HEIGHT); - class CheckBlockPurged : public test_chain_unit_base { public: - CheckBlockPurged(size_t invalidBlockIdx, uint8_t blockMajorVersion) : - m_invalidBlockIdx(invalidBlockIdx), - m_blockMajorVersion(blockMajorVersion) { - assert(blockMajorVersion == CryptoNote::BLOCK_MAJOR_VERSION_1 || blockMajorVersion == CryptoNote::BLOCK_MAJOR_VERSION_2); + CheckBlockPurged(size_t invalidBlockIdx) : + m_invalidBlockIdx(invalidBlockIdx) { CryptoNote::CurrencyBuilder currencyBuilder(m_logger); - currencyBuilder.upgradeHeight(blockMajorVersion == CryptoNote::BLOCK_MAJOR_VERSION_1 ? UNDEF_HEIGHT : UINT64_C(0)); m_currency = currencyBuilder.currency(); REGISTER_CALLBACK("check_block_purged", CheckBlockPurged::check_block_purged); @@ -61,18 +43,14 @@ class CheckBlockPurged : public test_chain_unit_base { protected: size_t m_invalidBlockIdx; - const uint8_t m_blockMajorVersion; }; struct CheckBlockAccepted : public test_chain_unit_base { - CheckBlockAccepted(size_t expectedBlockchainHeight, uint8_t blockMajorVersion) : - m_expectedBlockchainHeight(expectedBlockchainHeight), - m_blockMajorVersion(blockMajorVersion) { - assert(blockMajorVersion == CryptoNote::BLOCK_MAJOR_VERSION_1 || blockMajorVersion == CryptoNote::BLOCK_MAJOR_VERSION_2); + CheckBlockAccepted(size_t expectedBlockchainHeight) : + m_expectedBlockchainHeight(expectedBlockchainHeight) { CryptoNote::CurrencyBuilder currencyBuilder(m_logger); - currencyBuilder.upgradeHeight(blockMajorVersion == CryptoNote::BLOCK_MAJOR_VERSION_1 ? UNDEF_HEIGHT : UINT64_C(0)); m_currency = currencyBuilder.currency(); REGISTER_CALLBACK("check_block_accepted", CheckBlockAccepted::check_block_accepted); @@ -89,38 +67,35 @@ struct CheckBlockAccepted : public test_chain_unit_base { protected: size_t m_expectedBlockchainHeight; - const uint8_t m_blockMajorVersion; }; struct TestBlockMajorVersionAccepted : public CheckBlockAccepted { - TestBlockMajorVersionAccepted(uint8_t blockMajorVersion) : - CheckBlockAccepted(2, blockMajorVersion) {} + TestBlockMajorVersionAccepted() : + CheckBlockAccepted(2) {} bool generate(std::vector& events) const; }; struct TestBlockMajorVersionRejected : public CheckBlockPurged { - TestBlockMajorVersionRejected(uint8_t blockAcceptedVersion, uint8_t blockGeneratedVersion) : - CheckBlockPurged(1, blockAcceptedVersion), m_blockGeneratedVersion(blockGeneratedVersion) {} - - const uint8_t m_blockGeneratedVersion; + TestBlockMajorVersionRejected() : + CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct TestBlockBigMinorVersion : public CheckBlockAccepted { - TestBlockBigMinorVersion(uint8_t blockMajorVersion) - : CheckBlockAccepted(2, blockMajorVersion) {} + TestBlockBigMinorVersion() + : CheckBlockAccepted(2) {} bool generate(std::vector& events) const; }; struct gen_block_ts_not_checked : public CheckBlockAccepted { - gen_block_ts_not_checked(uint8_t blockMajorVersion) - : CheckBlockAccepted(0, blockMajorVersion) { + gen_block_ts_not_checked() + : CheckBlockAccepted(0) { m_expectedBlockchainHeight = m_currency.timestampCheckWindow(); } @@ -129,8 +104,8 @@ struct gen_block_ts_not_checked : public CheckBlockAccepted struct gen_block_ts_in_past : public CheckBlockPurged { - gen_block_ts_in_past(uint8_t blockMajorVersion) - : CheckBlockPurged(0, blockMajorVersion) { + gen_block_ts_in_past() + : CheckBlockPurged(0) { m_invalidBlockIdx = m_currency.timestampCheckWindow(); } @@ -139,24 +114,24 @@ struct gen_block_ts_in_past : public CheckBlockPurged struct gen_block_ts_in_future_rejected : public CheckBlockPurged { - gen_block_ts_in_future_rejected(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_ts_in_future_rejected() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_ts_in_future_accepted : public CheckBlockAccepted { - gen_block_ts_in_future_accepted(uint8_t blockMajorVersion) - : CheckBlockAccepted(2, blockMajorVersion) {} + gen_block_ts_in_future_accepted() + : CheckBlockAccepted(2) {} bool generate(std::vector& events) const; }; struct gen_block_invalid_prev_id : public CheckBlockPurged { - gen_block_invalid_prev_id(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_invalid_prev_id() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; bool check_block_verification_context(const CryptoNote::block_verification_context& bvc, size_t event_idx, const CryptoNote::Block& /*blk*/); @@ -164,80 +139,80 @@ struct gen_block_invalid_prev_id : public CheckBlockPurged struct gen_block_invalid_nonce : public CheckBlockPurged { - gen_block_invalid_nonce(uint8_t blockMajorVersion) - : CheckBlockPurged(3, blockMajorVersion) {} + gen_block_invalid_nonce() + : CheckBlockPurged(3) {} bool generate(std::vector& events) const; }; struct gen_block_no_miner_tx : public CheckBlockPurged { - gen_block_no_miner_tx(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_no_miner_tx() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_unlock_time_is_low : public CheckBlockPurged { - gen_block_unlock_time_is_low(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_unlock_time_is_low() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_unlock_time_is_high : public CheckBlockPurged { - gen_block_unlock_time_is_high(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_unlock_time_is_high() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_unlock_time_is_timestamp_in_past : public CheckBlockPurged { - gen_block_unlock_time_is_timestamp_in_past(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_unlock_time_is_timestamp_in_past() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_unlock_time_is_timestamp_in_future : public CheckBlockPurged { - gen_block_unlock_time_is_timestamp_in_future(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_unlock_time_is_timestamp_in_future() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_height_is_low : public CheckBlockPurged { - gen_block_height_is_low(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_height_is_low() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_height_is_high : public CheckBlockPurged { - gen_block_height_is_high(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_height_is_high() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_miner_tx_has_2_tx_gen_in : public CheckBlockPurged { - gen_block_miner_tx_has_2_tx_gen_in(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_miner_tx_has_2_tx_gen_in() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_miner_tx_has_2_in : public CheckBlockPurged { - gen_block_miner_tx_has_2_in(uint8_t blockMajorVersion) - : CheckBlockPurged(0, blockMajorVersion) { + gen_block_miner_tx_has_2_in() + : CheckBlockPurged(0) { m_invalidBlockIdx = m_currency.minedMoneyUnlockWindow() + 1; } @@ -246,8 +221,8 @@ struct gen_block_miner_tx_has_2_in : public CheckBlockPurged struct gen_block_miner_tx_with_txin_to_key : public CheckBlockPurged { - gen_block_miner_tx_with_txin_to_key(uint8_t blockMajorVersion) - : CheckBlockPurged(0, blockMajorVersion) { + gen_block_miner_tx_with_txin_to_key() + : CheckBlockPurged(0) { m_invalidBlockIdx = m_currency.minedMoneyUnlockWindow() + 2; } @@ -256,50 +231,49 @@ struct gen_block_miner_tx_with_txin_to_key : public CheckBlockPurged struct gen_block_miner_tx_out_is_small : public CheckBlockPurged { - gen_block_miner_tx_out_is_small(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_miner_tx_out_is_small() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_miner_tx_out_is_big : public CheckBlockPurged { - gen_block_miner_tx_out_is_big(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_miner_tx_out_is_big() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_miner_tx_has_no_out : public CheckBlockPurged { - gen_block_miner_tx_has_no_out(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_miner_tx_has_no_out() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_miner_tx_has_out_to_alice : public CheckBlockAccepted { - gen_block_miner_tx_has_out_to_alice(uint8_t blockMajorVersion) - : CheckBlockAccepted(2, blockMajorVersion) {} + gen_block_miner_tx_has_out_to_alice() + : CheckBlockAccepted(2) {} bool generate(std::vector& events) const; }; struct gen_block_has_invalid_tx : public CheckBlockPurged { - gen_block_has_invalid_tx(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) {} + gen_block_has_invalid_tx() + : CheckBlockPurged(1) {} bool generate(std::vector& events) const; }; struct gen_block_is_too_big : public CheckBlockPurged { - gen_block_is_too_big(uint8_t blockMajorVersion) - : CheckBlockPurged(1, blockMajorVersion) { + gen_block_is_too_big() + : CheckBlockPurged(1) { CryptoNote::CurrencyBuilder currencyBuilder(m_logger); - currencyBuilder.upgradeHeight(blockMajorVersion == CryptoNote::BLOCK_MAJOR_VERSION_1 ? UNDEF_HEIGHT : UINT64_C(0)); currencyBuilder.maxBlockSizeInitial(std::numeric_limits::max() / 2); m_currency = currencyBuilder.currency(); } @@ -308,8 +282,8 @@ struct gen_block_is_too_big : public CheckBlockPurged }; struct TestBlockCumulativeSizeExceedsLimit : public CheckBlockPurged { - TestBlockCumulativeSizeExceedsLimit(uint8_t blockMajorVersion) - : CheckBlockPurged(std::numeric_limits::max(), blockMajorVersion) { + TestBlockCumulativeSizeExceedsLimit() + : CheckBlockPurged(std::numeric_limits::max()) { } bool generate(std::vector& events) const; @@ -317,7 +291,7 @@ struct TestBlockCumulativeSizeExceedsLimit : public CheckBlockPurged { struct gen_block_invalid_binary_format : public test_chain_unit_base { - gen_block_invalid_binary_format(uint8_t blockMajorVersion); + gen_block_invalid_binary_format(); bool generate(std::vector& events) const; bool check_block_verification_context(const CryptoNote::block_verification_context& bvc, size_t event_idx, const CryptoNote::Block& /*blk*/); @@ -325,41 +299,5 @@ struct gen_block_invalid_binary_format : public test_chain_unit_base bool corrupt_blocks_boundary(CryptoNote::core& c, size_t ev_index, const std::vector& events); private: - const uint8_t m_blockMajorVersion; size_t m_corrupt_blocks_begin_idx; }; - -struct TestMaxSizeOfParentBlock : public CheckBlockAccepted { - TestMaxSizeOfParentBlock() : CheckBlockAccepted(2, CryptoNote::BLOCK_MAJOR_VERSION_2) { - } - - bool generate(std::vector& events) const; -}; - -struct TestBigParentBlock : public CheckBlockPurged { - TestBigParentBlock() : CheckBlockPurged(1, CryptoNote::BLOCK_MAJOR_VERSION_2) { - } - - bool generate(std::vector& events) const; -}; - -struct TestBlock2ExtraEmpty : public CheckBlockPurged { - - TestBlock2ExtraEmpty() : CheckBlockPurged(1, CryptoNote::BLOCK_MAJOR_VERSION_2) {} - - bool generate(std::vector& events) const; -}; - -struct TestBlock2ExtraWithoutMMTag : public CheckBlockPurged { - - TestBlock2ExtraWithoutMMTag() : CheckBlockPurged(1, CryptoNote::BLOCK_MAJOR_VERSION_2) {} - - bool generate(std::vector& events) const; -}; - -struct TestBlock2ExtraWithGarbage : public CheckBlockAccepted { - - TestBlock2ExtraWithGarbage() : CheckBlockAccepted(2, CryptoNote::BLOCK_MAJOR_VERSION_2) {} - - bool generate(std::vector& events) const; -}; diff --git a/tests/CoreTests/BoostSerializationHelper.h b/tests/CoreTests/BoostSerializationHelper.h index 6a8f38d7aa..34a45f4d0a 100755 --- a/tests/CoreTests/BoostSerializationHelper.h +++ b/tests/CoreTests/BoostSerializationHelper.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/CoreTests/ChainSplit1.cpp b/tests/CoreTests/ChainSplit1.cpp index 9718784faf..3ec59bd713 100644 --- a/tests/CoreTests/ChainSplit1.cpp +++ b/tests/CoreTests/ChainSplit1.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ChainSplit1.h" diff --git a/tests/CoreTests/ChainSplit1.h b/tests/CoreTests/ChainSplit1.h old mode 100755 new mode 100644 index 1a830fd660..2bda22c53f --- a/tests/CoreTests/ChainSplit1.h +++ b/tests/CoreTests/ChainSplit1.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "Chaingen.h" diff --git a/tests/CoreTests/ChainSwitch1.cpp b/tests/CoreTests/ChainSwitch1.cpp index 78dfdd253b..7a6f622ea1 100644 --- a/tests/CoreTests/ChainSwitch1.cpp +++ b/tests/CoreTests/ChainSwitch1.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ChainSwitch1.h" diff --git a/tests/CoreTests/ChainSwitch1.h b/tests/CoreTests/ChainSwitch1.h old mode 100755 new mode 100644 index 47f0bea8e5..5666c167cc --- a/tests/CoreTests/ChainSwitch1.h +++ b/tests/CoreTests/ChainSwitch1.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "Chaingen.h" diff --git a/tests/CoreTests/Chaingen.cpp b/tests/CoreTests/Chaingen.cpp index ca8990a919..a26e2e348d 100644 --- a/tests/CoreTests/Chaingen.cpp +++ b/tests/CoreTests/Chaingen.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Chaingen.h" @@ -32,7 +19,6 @@ #include "CryptoNoteCore/CryptoNoteTools.h" #include "CryptoNoteCore/Core.h" #include "CryptoNoteCore/Currency.h" -#include "CryptoNoteCore/UpgradeDetector.h" //#include "AccountBoostSerialization.h" //#include "cryptonote_boost_serialization.h" diff --git a/tests/CoreTests/Chaingen.h b/tests/CoreTests/Chaingen.h old mode 100755 new mode 100644 index 3a9e10094e..576a38eca4 --- a/tests/CoreTests/Chaingen.h +++ b/tests/CoreTests/Chaingen.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/CoreTests/Chaingen001.cpp b/tests/CoreTests/Chaingen001.cpp index f10e1d010c..b2487c44b7 100644 --- a/tests/CoreTests/Chaingen001.cpp +++ b/tests/CoreTests/Chaingen001.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Chaingen001.h" diff --git a/tests/CoreTests/Chaingen001.h b/tests/CoreTests/Chaingen001.h old mode 100755 new mode 100644 index fd3d7998e8..24489d9a55 --- a/tests/CoreTests/Chaingen001.h +++ b/tests/CoreTests/Chaingen001.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "Chaingen.h" diff --git a/tests/CoreTests/ChaingenMain.cpp b/tests/CoreTests/ChaingenMain.cpp index b81eb3d2c0..e6caab4434 100644 --- a/tests/CoreTests/ChaingenMain.cpp +++ b/tests/CoreTests/ChaingenMain.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Chaingen.h" @@ -29,7 +16,6 @@ #include "RingSignature.h" #include "TransactionTests.h" #include "TransactionValidation.h" -#include "Upgrade.h" #include "RandomOuts.h" namespace po = boost::program_options; @@ -84,10 +70,6 @@ int main(int argc, char* argv[]) } else if (command_line::get_arg(vm, arg_generate_and_play_test_data)) { -#define GENERATE_AND_PLAY_EX_2VER(TestCase) \ - GENERATE_AND_PLAY_EX(TestCase(CryptoNote::BLOCK_MAJOR_VERSION_1)) \ - GENERATE_AND_PLAY_EX(TestCase(CryptoNote::BLOCK_MAJOR_VERSION_2)) - GENERATE_AND_PLAY(gen_simple_chain_001); GENERATE_AND_PLAY(gen_simple_chain_split_1); GENERATE_AND_PLAY(one_block); @@ -97,42 +79,34 @@ int main(int argc, char* argv[]) //GENERATE_AND_PLAY(gen_ring_signature_big); // Takes up to XXX hours (if CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW == 10) //// Block verification tests - GENERATE_AND_PLAY_EX_2VER(TestBlockMajorVersionAccepted); - GENERATE_AND_PLAY_EX(TestBlockMajorVersionRejected(CryptoNote::BLOCK_MAJOR_VERSION_1, CryptoNote::BLOCK_MAJOR_VERSION_2)); - GENERATE_AND_PLAY_EX(TestBlockMajorVersionRejected(CryptoNote::BLOCK_MAJOR_VERSION_2, CryptoNote::BLOCK_MAJOR_VERSION_1)); - GENERATE_AND_PLAY_EX(TestBlockMajorVersionRejected(CryptoNote::BLOCK_MAJOR_VERSION_2, CryptoNote::BLOCK_MAJOR_VERSION_2 + 1)); - GENERATE_AND_PLAY_EX_2VER(TestBlockBigMinorVersion); - GENERATE_AND_PLAY_EX_2VER(gen_block_ts_not_checked); - GENERATE_AND_PLAY_EX_2VER(gen_block_ts_in_past); - GENERATE_AND_PLAY_EX_2VER(gen_block_ts_in_future_rejected); - GENERATE_AND_PLAY_EX_2VER(gen_block_ts_in_future_accepted); - GENERATE_AND_PLAY_EX_2VER(gen_block_invalid_prev_id); - GENERATE_AND_PLAY_EX_2VER(gen_block_invalid_nonce); - GENERATE_AND_PLAY_EX_2VER(gen_block_no_miner_tx); - GENERATE_AND_PLAY_EX_2VER(gen_block_unlock_time_is_low); - GENERATE_AND_PLAY_EX_2VER(gen_block_unlock_time_is_high); - GENERATE_AND_PLAY_EX_2VER(gen_block_unlock_time_is_timestamp_in_past); - GENERATE_AND_PLAY_EX_2VER(gen_block_unlock_time_is_timestamp_in_future); - GENERATE_AND_PLAY_EX_2VER(gen_block_height_is_low); - GENERATE_AND_PLAY_EX_2VER(gen_block_height_is_high); - GENERATE_AND_PLAY_EX_2VER(gen_block_miner_tx_has_2_tx_gen_in); - GENERATE_AND_PLAY_EX_2VER(gen_block_miner_tx_has_2_in); - GENERATE_AND_PLAY_EX_2VER(gen_block_miner_tx_with_txin_to_key); - GENERATE_AND_PLAY_EX_2VER(gen_block_miner_tx_out_is_small); - GENERATE_AND_PLAY_EX_2VER(gen_block_miner_tx_out_is_big); - GENERATE_AND_PLAY_EX_2VER(gen_block_miner_tx_has_no_out); - GENERATE_AND_PLAY_EX_2VER(gen_block_miner_tx_has_out_to_alice); - GENERATE_AND_PLAY_EX_2VER(gen_block_has_invalid_tx); - GENERATE_AND_PLAY_EX_2VER(gen_block_is_too_big); - GENERATE_AND_PLAY_EX_2VER(TestBlockCumulativeSizeExceedsLimit); + GENERATE_AND_PLAY(TestBlockMajorVersionAccepted); + GENERATE_AND_PLAY(TestBlockMajorVersionRejected); + GENERATE_AND_PLAY(TestBlockBigMinorVersion); + GENERATE_AND_PLAY(gen_block_ts_not_checked); + GENERATE_AND_PLAY(gen_block_ts_in_past); + GENERATE_AND_PLAY(gen_block_ts_in_future_rejected); + GENERATE_AND_PLAY(gen_block_ts_in_future_accepted); + GENERATE_AND_PLAY(gen_block_invalid_prev_id); + GENERATE_AND_PLAY(gen_block_invalid_nonce); + GENERATE_AND_PLAY(gen_block_no_miner_tx); + GENERATE_AND_PLAY(gen_block_unlock_time_is_low); + GENERATE_AND_PLAY(gen_block_unlock_time_is_high); + GENERATE_AND_PLAY(gen_block_unlock_time_is_timestamp_in_past); + GENERATE_AND_PLAY(gen_block_unlock_time_is_timestamp_in_future); + GENERATE_AND_PLAY(gen_block_height_is_low); + GENERATE_AND_PLAY(gen_block_height_is_high); + GENERATE_AND_PLAY(gen_block_miner_tx_has_2_tx_gen_in); + GENERATE_AND_PLAY(gen_block_miner_tx_has_2_in); + GENERATE_AND_PLAY(gen_block_miner_tx_with_txin_to_key); + GENERATE_AND_PLAY(gen_block_miner_tx_out_is_small); + GENERATE_AND_PLAY(gen_block_miner_tx_out_is_big); + GENERATE_AND_PLAY(gen_block_miner_tx_has_no_out); + GENERATE_AND_PLAY(gen_block_miner_tx_has_out_to_alice); + GENERATE_AND_PLAY(gen_block_has_invalid_tx); + GENERATE_AND_PLAY(gen_block_is_too_big); + GENERATE_AND_PLAY(TestBlockCumulativeSizeExceedsLimit); //GENERATE_AND_PLAY_EX_2VER(gen_block_invalid_binary_format); // Takes up to 30 minutes, if CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW == 10 - GENERATE_AND_PLAY(TestMaxSizeOfParentBlock); - GENERATE_AND_PLAY(TestBigParentBlock); - GENERATE_AND_PLAY(TestBlock2ExtraEmpty); - GENERATE_AND_PLAY(TestBlock2ExtraWithoutMMTag); - GENERATE_AND_PLAY(TestBlock2ExtraWithGarbage); - // Transaction verification tests GENERATE_AND_PLAY(gen_tx_big_version); GENERATE_AND_PLAY(gen_tx_unlock_time); @@ -201,7 +175,6 @@ int main(int argc, char* argv[]) GENERATE_AND_PLAY(gen_uint_overflow_2); GENERATE_AND_PLAY(gen_block_reward); - GENERATE_AND_PLAY(gen_upgrade); GENERATE_AND_PLAY(GetRandomOutputs); std::cout << (failed_tests.empty() ? concolor::green : concolor::magenta); diff --git a/tests/CoreTests/CryptoNoteBoostSerialization.h b/tests/CoreTests/CryptoNoteBoostSerialization.h index 5f1b23b0d2..b3c9c0e1f7 100755 --- a/tests/CoreTests/CryptoNoteBoostSerialization.h +++ b/tests/CoreTests/CryptoNoteBoostSerialization.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/CoreTests/DoubleSpend.cpp b/tests/CoreTests/DoubleSpend.cpp index e206ad2e0d..247f4354a7 100644 --- a/tests/CoreTests/DoubleSpend.cpp +++ b/tests/CoreTests/DoubleSpend.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "DoubleSpend.h" #include "TestGenerator.h" diff --git a/tests/CoreTests/DoubleSpend.h b/tests/CoreTests/DoubleSpend.h old mode 100755 new mode 100644 index 2d296f241c..2ab2038973 --- a/tests/CoreTests/DoubleSpend.h +++ b/tests/CoreTests/DoubleSpend.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "Chaingen.h" diff --git a/tests/CoreTests/IntegerOverflow.cpp b/tests/CoreTests/IntegerOverflow.cpp index 386b15393f..9dec5b1e05 100644 --- a/tests/CoreTests/IntegerOverflow.cpp +++ b/tests/CoreTests/IntegerOverflow.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "IntegerOverflow.h" diff --git a/tests/CoreTests/IntegerOverflow.h b/tests/CoreTests/IntegerOverflow.h old mode 100755 new mode 100644 index fc1a9d0028..a8804ffe92 --- a/tests/CoreTests/IntegerOverflow.h +++ b/tests/CoreTests/IntegerOverflow.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "Chaingen.h" diff --git a/tests/CoreTests/RandomOuts.cpp b/tests/CoreTests/RandomOuts.cpp index 0ff51ce746..f4196451a6 100644 --- a/tests/CoreTests/RandomOuts.cpp +++ b/tests/CoreTests/RandomOuts.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "RandomOuts.h" #include "TestGenerator.h" diff --git a/tests/CoreTests/RandomOuts.h b/tests/CoreTests/RandomOuts.h old mode 100755 new mode 100644 index 1c6f00ce14..91f5d37a6f --- a/tests/CoreTests/RandomOuts.h +++ b/tests/CoreTests/RandomOuts.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/CoreTests/RingSignature.cpp b/tests/CoreTests/RingSignature.cpp index d13772c340..58352c8af0 100644 --- a/tests/CoreTests/RingSignature.cpp +++ b/tests/CoreTests/RingSignature.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "RingSignature.h" diff --git a/tests/CoreTests/RingSignature.h b/tests/CoreTests/RingSignature.h old mode 100755 new mode 100644 index 2dcda05a6a..ad031f2805 --- a/tests/CoreTests/RingSignature.h +++ b/tests/CoreTests/RingSignature.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "Chaingen.h" diff --git a/tests/CoreTests/TestGenerator.h b/tests/CoreTests/TestGenerator.h index d6b574a1c0..62ef543ba4 100644 --- a/tests/CoreTests/TestGenerator.h +++ b/tests/CoreTests/TestGenerator.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/CoreTests/TransactionBuilder.cpp b/tests/CoreTests/TransactionBuilder.cpp index 00ee8c926c..2cfd333a2c 100644 --- a/tests/CoreTests/TransactionBuilder.cpp +++ b/tests/CoreTests/TransactionBuilder.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransactionBuilder.h" #include "CryptoNoteCore/TransactionExtra.h" diff --git a/tests/CoreTests/TransactionBuilder.h b/tests/CoreTests/TransactionBuilder.h index e694f8010d..673521b3a8 100644 --- a/tests/CoreTests/TransactionBuilder.h +++ b/tests/CoreTests/TransactionBuilder.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/CoreTests/TransactionTests.cpp b/tests/CoreTests/TransactionTests.cpp index d0514fb092..7bcab93eea 100644 --- a/tests/CoreTests/TransactionTests.cpp +++ b/tests/CoreTests/TransactionTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "CryptoNoteCore/CryptoNoteBasicImpl.h" #include "CryptoNoteCore/Account.h" diff --git a/tests/CoreTests/TransactionTests.h b/tests/CoreTests/TransactionTests.h old mode 100755 new mode 100644 index d9ae00754a..07f50f942d --- a/tests/CoreTests/TransactionTests.h +++ b/tests/CoreTests/TransactionTests.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/CoreTests/TransactionValidation.cpp b/tests/CoreTests/TransactionValidation.cpp index 7b4d28907a..0f241f117d 100644 --- a/tests/CoreTests/TransactionValidation.cpp +++ b/tests/CoreTests/TransactionValidation.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransactionValidation.h" #include "TestGenerator.h" diff --git a/tests/CoreTests/TransactionValidation.h b/tests/CoreTests/TransactionValidation.h old mode 100755 new mode 100644 index 66be839ec4..b5836dffc0 --- a/tests/CoreTests/TransactionValidation.h +++ b/tests/CoreTests/TransactionValidation.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "Chaingen.h" diff --git a/tests/CoreTests/UnorderedContainersBoostSerialization.h b/tests/CoreTests/UnorderedContainersBoostSerialization.h old mode 100755 new mode 100644 index 3aed3ce9cd..a5b70c2dfd --- a/tests/CoreTests/UnorderedContainersBoostSerialization.h +++ b/tests/CoreTests/UnorderedContainersBoostSerialization.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/CoreTests/Upgrade.cpp b/tests/CoreTests/Upgrade.cpp deleted file mode 100644 index a054a23b22..0000000000 --- a/tests/CoreTests/Upgrade.cpp +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . - -#include "Upgrade.h" - -using namespace CryptoNote; - -namespace { - bool makeBlocks(std::vector& events, test_generator& generator, Block& lastBlock, - const Block& parentBlock, const CryptoNote::AccountBase& minerAcc, size_t count, - uint8_t majorVersion, uint8_t minorVersion) { - CryptoNote::Block prevBlock = parentBlock; - for (size_t i = 0; i < count; ++i) { - CryptoNote::Block b; - bool r = generator.constructBlockManually(b, prevBlock, minerAcc, test_generator::bf_major_ver | test_generator::bf_minor_ver, - majorVersion, minorVersion); - if (!r) { - return false; - } else { - prevBlock = b; - events.push_back(b); - } - } - - lastBlock = prevBlock; - - return true; - } -} - -gen_upgrade::gen_upgrade() : m_invalidBlockIndex(0), m_checkBlockTemplateVersionCallCounter(0), - m_coinsInCirculationBeforeUpgrade(0), m_coinsInCirculationAfterUpgrade(0) { - CryptoNote::CurrencyBuilder currencyBuilder(m_logger); - currencyBuilder.maxBlockSizeInitial(std::numeric_limits::max() / 2); - currencyBuilder.upgradeHeight(UpgradeDetectorBase::UNDEF_HEIGHT); - m_currency = currencyBuilder.currency(); - - REGISTER_CALLBACK_METHOD(gen_upgrade, markInvalidBlock); - REGISTER_CALLBACK_METHOD(gen_upgrade, checkBlockTemplateVersionIsV1); - REGISTER_CALLBACK_METHOD(gen_upgrade, checkBlockTemplateVersionIsV2); - REGISTER_CALLBACK_METHOD(gen_upgrade, checkBlockRewardEqFee); - REGISTER_CALLBACK_METHOD(gen_upgrade, checkBlockRewardIsZero); - REGISTER_CALLBACK_METHOD(gen_upgrade, rememberCoinsInCirculationBeforeUpgrade); - REGISTER_CALLBACK_METHOD(gen_upgrade, rememberCoinsInCirculationAfterUpgrade); -} - -bool gen_upgrade::generate(std::vector& events) const { - const uint64_t tsStart = 1338224400; - - GENERATE_ACCOUNT(minerAccount); - MAKE_GENESIS_BLOCK(events, blk0, minerAccount, tsStart); - - // Vote for upgrade - Block blk1; - if (!makeBlocks(events, generator, blk1, blk0, minerAccount, m_currency.minNumberVotingBlocks(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1)) { - return false; - } - - if (!checkBeforeUpgrade(events, generator, blk1, minerAccount, true)) { - return false; - } - - // Fill m_currency.upgradeVotingWindow() - Block blk2; - if (!makeBlocks(events, generator, blk2, blk1, minerAccount, m_currency.upgradeVotingWindow() - m_currency.minNumberVotingBlocks() - 1, - BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0)) { - return false; - } - - // Upgrade voting complete! - uint64_t votingCompleteHeight = get_block_height(blk2); - uint64_t upgradeHeight = m_currency.calculateUpgradeHeight(votingCompleteHeight); - - if (!checkBeforeUpgrade(events, generator, blk2, minerAccount, true)) { - return false; - } - - // Create blocks up to upgradeHeight - Block blk3; - if (!makeBlocks(events, generator, blk3, blk2, minerAccount, upgradeHeight - votingCompleteHeight - 1, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0)) { - return false; - } - - if (!checkBeforeUpgrade(events, generator, blk3, minerAccount, false)) { - return false; - } - - // Create last block with version 1.x - Block blk4; - if (!makeBlocks(events, generator, blk4, blk3, minerAccount, 1, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0)) { - return false; - } - - generator.defaultMajorVersion = BLOCK_MAJOR_VERSION_2; - generator.defaultMinorVersion = BLOCK_MINOR_VERSION_0; - - if (!checkAfterUpgrade(events, generator, blk4, minerAccount)) { - return false; - } - - // Create a few blocks with version 2.0 - Block blk5; - if (!makeBlocks(events, generator, blk5, blk4, minerAccount, 3, BLOCK_MAJOR_VERSION_2, BLOCK_MINOR_VERSION_0)) { - return false; - } - - if (!checkAfterUpgrade(events, generator, blk5, minerAccount)) { - return false; - } - - return true; -} - -bool gen_upgrade::checkBeforeUpgrade(std::vector& events, test_generator& generator, - const CryptoNote::Block& parentBlock, const CryptoNote::AccountBase& minerAcc, - bool checkReward) const { - // Checking 1: get_block_templare returns block with major version 1 - DO_CALLBACK(events, "checkBlockTemplateVersionIsV1"); - - // Checking 2: penalty doesn't apply to transactions fee - if (checkReward) { - // Add block to the blockchain, later it become an alternative - DO_CALLBACK(events, "rememberCoinsInCirculationBeforeUpgrade"); - MAKE_TX_LIST_START(events, txs, minerAcc, minerAcc, MK_COINS(1), parentBlock); - Block alternativeBlk; - if (!generator.constructMaxSizeBlock(alternativeBlk, parentBlock, minerAcc, m_currency.rewardBlocksWindow(), txs)) { - return false; - } - events.push_back(alternativeBlk); - DO_CALLBACK(events, "checkBlockRewardEqFee"); - } - - // Checking 3: block with version 2.0 doesn't accepted - Block badBlock; - DO_CALLBACK(events, "markInvalidBlock"); - return makeBlocks(events, generator, badBlock, parentBlock, minerAcc, 1, BLOCK_MAJOR_VERSION_2, BLOCK_MINOR_VERSION_0); -} - -bool gen_upgrade::checkAfterUpgrade(std::vector& events, test_generator& generator, - const CryptoNote::Block& parentBlock, const CryptoNote::AccountBase& minerAcc) const { - // Checking 1: get_block_templare returns block with major version 2 - DO_CALLBACK(events, "checkBlockTemplateVersionIsV2"); - - // Checking 2: penalty applies to transactions fee - // Add block to the blockchain, later it become an alternative - DO_CALLBACK(events, "rememberCoinsInCirculationAfterUpgrade"); - MAKE_TX_LIST_START(events, txs, minerAcc, minerAcc, MK_COINS(1), parentBlock); - Block alternativeBlk; - if (!generator.constructMaxSizeBlock(alternativeBlk, parentBlock, minerAcc, m_currency.rewardBlocksWindow(), txs)) { - return false; - } - events.push_back(alternativeBlk); - DO_CALLBACK(events, "checkBlockRewardIsZero"); - - // Checking 3: block with version 1.0 doesn't accepted - Block badBlock; - DO_CALLBACK(events, "markInvalidBlock"); - if (!makeBlocks(events, generator, badBlock, parentBlock, minerAcc, 1, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0)) { - return false; - } - - // Checking 2: block with version 1.1 doesn't accepted - DO_CALLBACK(events, "markInvalidBlock"); - return makeBlocks(events, generator, badBlock, parentBlock, minerAcc, 1, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); -} - -bool gen_upgrade::check_block_verification_context(const CryptoNote::block_verification_context& bvc, size_t eventIdx, const CryptoNote::Block& /*blk*/) { - if (m_invalidBlockIndex == eventIdx) { - m_invalidBlockIndex = 0; - return bvc.m_verifivation_failed; - } else { - return !bvc.m_verifivation_failed; - } -} - -bool gen_upgrade::markInvalidBlock(CryptoNote::core& /*c*/, size_t evIndex, const std::vector& /*events*/) { - m_invalidBlockIndex = evIndex + 1; - return true; -} - -bool gen_upgrade::checkBlockTemplateVersionIsV1(CryptoNote::core& c, size_t /*evIndex*/, const std::vector& /*events*/) { - DEFINE_TESTS_ERROR_CONTEXT("gen_upgrade::checkBlockTemplateVersionIsV1"); - CHECK_TEST_CONDITION(checkBlockTemplateVersion(c, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1)); - return true; -} - -bool gen_upgrade::checkBlockTemplateVersionIsV2(CryptoNote::core& c, size_t /*evIndex*/, const std::vector& /*events*/) { - DEFINE_TESTS_ERROR_CONTEXT("gen_upgrade::checkBlockTemplateVersionIsV2"); - CHECK_TEST_CONDITION(checkBlockTemplateVersion(c, BLOCK_MAJOR_VERSION_2, BLOCK_MINOR_VERSION_0)); - return true; -} - -bool gen_upgrade::checkBlockTemplateVersion(CryptoNote::core& c, uint8_t expectedMajorVersion, uint8_t expectedMinorVersion) { - DEFINE_TESTS_ERROR_CONTEXT("gen_upgrade::checkBlockTemplateVersion"); - - AccountBase account; - account.generate(); - - Block b; - difficulty_type diff; - uint32_t height; - CHECK_TEST_CONDITION(c.get_block_template(b, account.getAccountKeys().address, diff, height, BinaryArray())); - CHECK_EQ(b.majorVersion, expectedMajorVersion); - CHECK_EQ(b.minorVersion, expectedMinorVersion); - - return true; -} - -bool gen_upgrade::checkBlockRewardEqFee(CryptoNote::core& c, size_t evIndex, const std::vector& events) { - DEFINE_TESTS_ERROR_CONTEXT("gen_upgrade::checkBlockRewardEqFee"); - - Block blk = boost::get(events[evIndex - 1]); - uint64_t blockReward = get_outs_money_amount(blk.baseTransaction); - CHECK_EQ(blockReward, m_currency.minimumFee()); - - CHECK_EQ(m_coinsInCirculationBeforeUpgrade, c.getTotalGeneratedAmount()); - - return true; -} - -bool gen_upgrade::checkBlockRewardIsZero(CryptoNote::core& c, size_t evIndex, const std::vector& events) { - DEFINE_TESTS_ERROR_CONTEXT("gen_upgrade::checkBlockRewardIsZero"); - - Block blk = boost::get(events[evIndex - 1]); - uint64_t blockReward = get_outs_money_amount(blk.baseTransaction); - CHECK_EQ(blockReward, 0); - - CHECK_EQ(m_coinsInCirculationAfterUpgrade - m_currency.minimumFee(), c.getTotalGeneratedAmount()); - - return true; -} - -bool gen_upgrade::rememberCoinsInCirculationBeforeUpgrade(CryptoNote::core& c, size_t /*evIndex*/, const std::vector& /*events*/) { - m_coinsInCirculationBeforeUpgrade = c.getTotalGeneratedAmount(); - return true; -} - -bool gen_upgrade::rememberCoinsInCirculationAfterUpgrade(CryptoNote::core& c, size_t /*evIndex*/, const std::vector& /*events*/) { - m_coinsInCirculationAfterUpgrade = c.getTotalGeneratedAmount(); - return true; -} diff --git a/tests/CoreTests/Upgrade.h b/tests/CoreTests/Upgrade.h deleted file mode 100755 index cb5d847a9b..0000000000 --- a/tests/CoreTests/Upgrade.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . - -#pragma once -#include "Chaingen.h" - -struct gen_upgrade : public test_chain_unit_base -{ - gen_upgrade(); - - bool generate(std::vector& events) const; - - bool check_block_verification_context(const CryptoNote::block_verification_context& bvc, size_t eventIdx, const CryptoNote::Block& blk); - - bool markInvalidBlock(CryptoNote::core& c, size_t evIndex, const std::vector& events); - bool checkBlockTemplateVersionIsV1(CryptoNote::core& c, size_t evIndex, const std::vector& events); - bool checkBlockTemplateVersionIsV2(CryptoNote::core& c, size_t evIndex, const std::vector& events); - bool checkBlockRewardEqFee(CryptoNote::core& c, size_t evIndex, const std::vector& events); - bool checkBlockRewardIsZero(CryptoNote::core& c, size_t evIndex, const std::vector& events); - bool rememberCoinsInCirculationBeforeUpgrade(CryptoNote::core& c, size_t evIndex, const std::vector& events); - bool rememberCoinsInCirculationAfterUpgrade(CryptoNote::core& c, size_t evIndex, const std::vector& events); - -private: - bool checkBeforeUpgrade(std::vector& events, test_generator& generator, - const CryptoNote::Block& parentBlock, const CryptoNote::AccountBase& minerAcc, bool checkReward) const; - bool checkAfterUpgrade(std::vector& events, test_generator& generator, - const CryptoNote::Block& parentBlock, const CryptoNote::AccountBase& minerAcc) const; - bool checkBlockTemplateVersion(CryptoNote::core& c, uint8_t expectedMajorVersion, uint8_t expectedMinorVersion); - -private: - size_t m_invalidBlockIndex; - size_t m_checkBlockTemplateVersionCallCounter; - uint64_t m_coinsInCirculationBeforeUpgrade; - uint64_t m_coinsInCirculationAfterUpgrade; -}; diff --git a/tests/CoreTests/double_spend.inl b/tests/CoreTests/double_spend.inl index e2f7f955c4..dcb855cd7c 100644 --- a/tests/CoreTests/double_spend.inl +++ b/tests/CoreTests/double_spend.inl @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/Difficulty/Difficulty.cpp b/tests/Difficulty/Difficulty.cpp old mode 100755 new mode 100644 index a6dca31a01..02bb691359 --- a/tests/Difficulty/Difficulty.cpp +++ b/tests/Difficulty/Difficulty.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/Hash/main.cpp b/tests/Hash/main.cpp index 240a6addfb..b1fe91d921 100644 --- a/tests/Hash/main.cpp +++ b/tests/Hash/main.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/HashTarget.cpp b/tests/HashTarget.cpp old mode 100755 new mode 100644 index 1fbf9d499d..562b29c07f --- a/tests/HashTarget.cpp +++ b/tests/HashTarget.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/IntegrationTestLib/BaseFunctionalTests.cpp b/tests/IntegrationTestLib/BaseFunctionalTests.cpp index 4b14121e67..1fbbc2f3ae 100755 --- a/tests/IntegrationTestLib/BaseFunctionalTests.cpp +++ b/tests/IntegrationTestLib/BaseFunctionalTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BaseFunctionalTests.h" @@ -48,9 +35,9 @@ #endif #ifdef _WIN32 -const std::string DAEMON_FILENAME = "bytecoind.exe"; +const std::string DAEMON_FILENAME = std::string(CRYPTONOTE_NAME) + "d.exe"; #else -const std::string DAEMON_FILENAME = "bytecoind"; +const std::string DAEMON_FILENAME = std::string(CRYPTONOTE_NAME) + "d"; #endif using namespace Tests::Common; @@ -167,7 +154,7 @@ void BaseFunctionalTests::startNode(size_t index) { << "rpc-bind-port=" << rpcPort << std::endl << "p2p-bind-port=" << p2pPort << std::endl << "log-level=4" << std::endl - << "log-file=test_bytecoind_" << index << ".log" << std::endl; + << "log-file=test_" << CRYPTONOTE_NAME << "d_" << index << ".log" << std::endl; switch (m_topology) { case Line: @@ -202,7 +189,7 @@ void BaseFunctionalTests::startNode(size_t index) { } #if defined WIN32 - std::string commandLine = "start /MIN \"bytecoind" + std::to_string(index) + "\" \"" + daemonPath.string() + + std::string commandLine = "start /MIN \"" + std::string(CRYPTONOTE_NAME) + "d" + std::to_string(index) + "\" \"" + daemonPath.string() + "\" --testnet --data-dir=\"" + dataDirPath + "\" --config-file=daemon.conf"; LOG_DEBUG(commandLine); system(commandLine.c_str()); @@ -214,7 +201,7 @@ void BaseFunctionalTests::startNode(size_t index) { close(2); std::string dataDir = "--data-dir=" + dataDirPath + ""; LOG_TRACE(pathToDaemon); - if (execl(pathToDaemon.c_str(), "bytecoind", "--testnet", dataDir.c_str(), "--config-file=daemon.conf", NULL) == -1) { + if (execl(pathToDaemon.c_str(), (std::string(CRYPTONOTE_NAME) + "d").c_str(), "--testnet", dataDir.c_str(), "--config-file=daemon.conf", NULL) == -1) { LOG_ERROR(TO_STRING(errno)); } abort(); @@ -332,23 +319,6 @@ bool BaseFunctionalTests::prepareAndSubmitBlock(TestNode& node, CryptoNote::Bloc blockTemplate.timestamp = m_nextTimestamp; m_nextTimestamp += 2 * m_currency.difficultyTarget(); - if (blockTemplate.majorVersion == BLOCK_MAJOR_VERSION_2) { - blockTemplate.parentBlock.majorVersion = BLOCK_MAJOR_VERSION_1; - blockTemplate.parentBlock.minorVersion = BLOCK_MINOR_VERSION_0; - blockTemplate.parentBlock.transactionCount = 1; - - CryptoNote::TransactionExtraMergeMiningTag mmTag; - mmTag.depth = 0; - if (!CryptoNote::get_aux_block_header_hash(blockTemplate, mmTag.merkleRoot)) { - return false; - } - - blockTemplate.parentBlock.baseTransaction.extra.clear(); - if (!CryptoNote::appendMergeMiningTagToExtra(blockTemplate.parentBlock.baseTransaction.extra, mmTag)) { - return false; - } - } - BinaryArray blockBlob = CryptoNote::toBinaryArray(blockTemplate); return node.submitBlock(::Common::toHex(blockBlob.data(), blockBlob.size())); } diff --git a/tests/IntegrationTestLib/BaseFunctionalTests.h b/tests/IntegrationTestLib/BaseFunctionalTests.h old mode 100755 new mode 100644 index 337155a6aa..80f49f937f --- a/tests/IntegrationTestLib/BaseFunctionalTests.h +++ b/tests/IntegrationTestLib/BaseFunctionalTests.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -79,7 +66,7 @@ namespace Tests { void init(po::options_description& desc) { desc.add_options() - ("daemon-dir,d", po::value()->default_value("."), "path to bytecoind.exe") + ("daemon-dir,d", po::value()->default_value("."), "path to daemon") ("data-dir,n", po::value()->default_value("."), "path to daemon's data directory") ("add-daemons,a", po::value>()->multitoken(), "add daemon to topology"); } diff --git a/tests/IntegrationTestLib/InProcTestNode.cpp b/tests/IntegrationTestLib/InProcTestNode.cpp index 6313ea2496..10cdb60937 100644 --- a/tests/IntegrationTestLib/InProcTestNode.cpp +++ b/tests/IntegrationTestLib/InProcTestNode.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "InProcTestNode.h" diff --git a/tests/IntegrationTestLib/InProcTestNode.h b/tests/IntegrationTestLib/InProcTestNode.h index 9412070fd1..5db3552f7d 100644 --- a/tests/IntegrationTestLib/InProcTestNode.h +++ b/tests/IntegrationTestLib/InProcTestNode.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTestLib/Logger.cpp b/tests/IntegrationTestLib/Logger.cpp old mode 100755 new mode 100644 index 86210a1b3f..4b54acf334 --- a/tests/IntegrationTestLib/Logger.cpp +++ b/tests/IntegrationTestLib/Logger.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Logger.h" diff --git a/tests/IntegrationTestLib/Logger.h b/tests/IntegrationTestLib/Logger.h old mode 100755 new mode 100644 index 622f175419..e396d3728a --- a/tests/IntegrationTestLib/Logger.h +++ b/tests/IntegrationTestLib/Logger.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTestLib/NetworkConfiguration.h b/tests/IntegrationTestLib/NetworkConfiguration.h index 1cc23744fc..79f2d01747 100644 --- a/tests/IntegrationTestLib/NetworkConfiguration.h +++ b/tests/IntegrationTestLib/NetworkConfiguration.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTestLib/NodeCallback.h b/tests/IntegrationTestLib/NodeCallback.h index 2304058fc0..3a7a619e53 100644 --- a/tests/IntegrationTestLib/NodeCallback.h +++ b/tests/IntegrationTestLib/NodeCallback.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/IntegrationTestLib/NodeObserver.h b/tests/IntegrationTestLib/NodeObserver.h index 0d9e3fbc6f..ce05a79f9d 100644 --- a/tests/IntegrationTestLib/NodeObserver.h +++ b/tests/IntegrationTestLib/NodeObserver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTestLib/ObservableValue.h b/tests/IntegrationTestLib/ObservableValue.h index 5e01cfbc2f..140e348c98 100644 --- a/tests/IntegrationTestLib/ObservableValue.h +++ b/tests/IntegrationTestLib/ObservableValue.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTestLib/Process.cpp b/tests/IntegrationTestLib/Process.cpp index cdbe3c1a55..8c3e4b3105 100644 --- a/tests/IntegrationTestLib/Process.cpp +++ b/tests/IntegrationTestLib/Process.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Process.h" diff --git a/tests/IntegrationTestLib/Process.h b/tests/IntegrationTestLib/Process.h index e876be40c7..c1a093336d 100644 --- a/tests/IntegrationTestLib/Process.h +++ b/tests/IntegrationTestLib/Process.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTestLib/RPCTestNode.cpp b/tests/IntegrationTestLib/RPCTestNode.cpp index 4d1b6087c9..45f2cc8916 100755 --- a/tests/IntegrationTestLib/RPCTestNode.cpp +++ b/tests/IntegrationTestLib/RPCTestNode.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "RPCTestNode.h" diff --git a/tests/IntegrationTestLib/RPCTestNode.h b/tests/IntegrationTestLib/RPCTestNode.h old mode 100755 new mode 100644 index a08cfe3d90..d943ded395 --- a/tests/IntegrationTestLib/RPCTestNode.h +++ b/tests/IntegrationTestLib/RPCTestNode.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTestLib/TestNetwork.cpp b/tests/IntegrationTestLib/TestNetwork.cpp index 1d18b31a36..29a8f6a380 100644 --- a/tests/IntegrationTestLib/TestNetwork.cpp +++ b/tests/IntegrationTestLib/TestNetwork.cpp @@ -1,32 +1,20 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TestNetwork.h" #include #include +#include "CryptoNoteConfig.h" #include "InProcTestNode.h" #include "RPCTestNode.h" #ifdef _WIN32 -const std::string bytecoinDaemon = "bytecoind.exe"; +const std::string daemonExec = std::string(CryptoNote::CRYPTONOTE_NAME) + "d.exe"; #else -const std::string bytecoinDaemon = "bytecoind"; +const std::string daemonExec = std::string(CryptoNote::CRYPTONOTE_NAME) + "d"; #endif namespace { @@ -135,9 +123,9 @@ TestNodeConfiguration TestNetworkBuilder::buildNodeConfiguration(size_t index) { cfg.blockchainLocation = blockchainLocation; } - cfg.daemonPath = bytecoinDaemon; // default + cfg.daemonPath = daemonExec; // default cfg.testnet = testnet; - cfg.logFile = "test_bytecoind" + std::to_string(index) + ".log"; + cfg.logFile = std::string("test_") + CryptoNote::CRYPTONOTE_NAME + "d" + std::to_string(index) + ".log"; uint16_t rpcPort = static_cast(rpcBasePort + index); uint16_t p2pPort = static_cast(p2pBasePort + index); diff --git a/tests/IntegrationTestLib/TestNetwork.h b/tests/IntegrationTestLib/TestNetwork.h index e00ee1d95d..0e239fb257 100644 --- a/tests/IntegrationTestLib/TestNetwork.h +++ b/tests/IntegrationTestLib/TestNetwork.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTestLib/TestNode.h b/tests/IntegrationTestLib/TestNode.h index fc0c87d54b..7f178125fa 100755 --- a/tests/IntegrationTestLib/TestNode.h +++ b/tests/IntegrationTestLib/TestNode.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTestLib/TestWalletLegacy.cpp b/tests/IntegrationTestLib/TestWalletLegacy.cpp index 15a612383a..aefb549008 100644 --- a/tests/IntegrationTestLib/TestWalletLegacy.cpp +++ b/tests/IntegrationTestLib/TestWalletLegacy.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TestWalletLegacy.h" diff --git a/tests/IntegrationTestLib/TestWalletLegacy.h b/tests/IntegrationTestLib/TestWalletLegacy.h index 176735961d..8c8c3db61e 100644 --- a/tests/IntegrationTestLib/TestWalletLegacy.h +++ b/tests/IntegrationTestLib/TestWalletLegacy.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTests/BaseTests.h b/tests/IntegrationTests/BaseTests.h index 839ac964be..c4629a4429 100644 --- a/tests/IntegrationTests/BaseTests.h +++ b/tests/IntegrationTests/BaseTests.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTests/IntegrationTests.cpp b/tests/IntegrationTests/IntegrationTests.cpp index 9717d24198..18dec41777 100644 --- a/tests/IntegrationTests/IntegrationTests.cpp +++ b/tests/IntegrationTests/IntegrationTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" #include diff --git a/tests/IntegrationTests/MultiVersion.cpp b/tests/IntegrationTests/MultiVersion.cpp index 5cf8c8a462..a02ed7ce8c 100644 --- a/tests/IntegrationTests/MultiVersion.cpp +++ b/tests/IntegrationTests/MultiVersion.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "../IntegrationTestLib/BaseFunctionalTests.h" diff --git a/tests/IntegrationTests/Node.cpp b/tests/IntegrationTests/Node.cpp index 8b0c617f50..8a942ffcdf 100644 --- a/tests/IntegrationTests/Node.cpp +++ b/tests/IntegrationTests/Node.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include diff --git a/tests/IntegrationTests/WalletLegacyObserver.h b/tests/IntegrationTests/WalletLegacyObserver.h index caec08eb7b..7ccf9c77f0 100644 --- a/tests/IntegrationTests/WalletLegacyObserver.h +++ b/tests/IntegrationTests/WalletLegacyObserver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/IntegrationTests/WalletLegacyTests.cpp b/tests/IntegrationTests/WalletLegacyTests.cpp index 57e7407d6e..272415c39b 100644 --- a/tests/IntegrationTests/WalletLegacyTests.cpp +++ b/tests/IntegrationTests/WalletLegacyTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "BaseTests.h" diff --git a/tests/IntegrationTests/main.cpp b/tests/IntegrationTests/main.cpp old mode 100755 new mode 100644 index a00b7b3ecb..4e84488e62 --- a/tests/IntegrationTests/main.cpp +++ b/tests/IntegrationTests/main.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include diff --git a/tests/Io.h b/tests/Io.h old mode 100755 new mode 100644 index 7af91ae234..c56b2ee288 --- a/tests/Io.h +++ b/tests/Io.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/NodeRpcProxyTests/NodeRpcProxyTests.cpp b/tests/NodeRpcProxyTests/NodeRpcProxyTests.cpp index 1865e9e696..00135f1cb5 100755 --- a/tests/NodeRpcProxyTests/NodeRpcProxyTests.cpp +++ b/tests/NodeRpcProxyTests/NodeRpcProxyTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/PerformanceTests/CheckRingSignature.h b/tests/PerformanceTests/CheckRingSignature.h old mode 100755 new mode 100644 index 93fc2236b2..b0d93a53d2 --- a/tests/PerformanceTests/CheckRingSignature.h +++ b/tests/PerformanceTests/CheckRingSignature.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/ConstructTransaction.h b/tests/PerformanceTests/ConstructTransaction.h old mode 100755 new mode 100644 index c839d93c82..994796784c --- a/tests/PerformanceTests/ConstructTransaction.h +++ b/tests/PerformanceTests/ConstructTransaction.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/CryptoNoteSlowHash.h b/tests/PerformanceTests/CryptoNoteSlowHash.h old mode 100755 new mode 100644 index a78c5f4fea..f0a765b65e --- a/tests/PerformanceTests/CryptoNoteSlowHash.h +++ b/tests/PerformanceTests/CryptoNoteSlowHash.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/DerivePublicKey.h b/tests/PerformanceTests/DerivePublicKey.h old mode 100755 new mode 100644 index 502c4f6d4d..6d84e0e80d --- a/tests/PerformanceTests/DerivePublicKey.h +++ b/tests/PerformanceTests/DerivePublicKey.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/DeriveSecretKey.h b/tests/PerformanceTests/DeriveSecretKey.h old mode 100755 new mode 100644 index 86618f584f..748a4d5f2b --- a/tests/PerformanceTests/DeriveSecretKey.h +++ b/tests/PerformanceTests/DeriveSecretKey.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/GenerateKeyDerivation.h b/tests/PerformanceTests/GenerateKeyDerivation.h old mode 100755 new mode 100644 index 4f88cb0d34..ffd63c9e9f --- a/tests/PerformanceTests/GenerateKeyDerivation.h +++ b/tests/PerformanceTests/GenerateKeyDerivation.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/GenerateKeyImage.h b/tests/PerformanceTests/GenerateKeyImage.h old mode 100755 new mode 100644 index 61614112b7..a629178047 --- a/tests/PerformanceTests/GenerateKeyImage.h +++ b/tests/PerformanceTests/GenerateKeyImage.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/GenerateKeyImageHelper.h b/tests/PerformanceTests/GenerateKeyImageHelper.h old mode 100755 new mode 100644 index 76f17af01d..e07e47f7b7 --- a/tests/PerformanceTests/GenerateKeyImageHelper.h +++ b/tests/PerformanceTests/GenerateKeyImageHelper.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/IsOutToAccount.h b/tests/PerformanceTests/IsOutToAccount.h old mode 100755 new mode 100644 index 8632e18c6d..32b646089e --- a/tests/PerformanceTests/IsOutToAccount.h +++ b/tests/PerformanceTests/IsOutToAccount.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/MultiTransactionTestBase.h b/tests/PerformanceTests/MultiTransactionTestBase.h old mode 100755 new mode 100644 index 0218af2212..a50b1efd1c --- a/tests/PerformanceTests/MultiTransactionTestBase.h +++ b/tests/PerformanceTests/MultiTransactionTestBase.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/PerformanceTests.h b/tests/PerformanceTests/PerformanceTests.h old mode 100755 new mode 100644 index 0fa25d88ee..33e5b34c9d --- a/tests/PerformanceTests/PerformanceTests.h +++ b/tests/PerformanceTests/PerformanceTests.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/PerformanceUtils.h b/tests/PerformanceTests/PerformanceUtils.h old mode 100755 new mode 100644 index 9d2e72cf34..d22f625e96 --- a/tests/PerformanceTests/PerformanceUtils.h +++ b/tests/PerformanceTests/PerformanceUtils.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/SingleTransactionTestBase.h b/tests/PerformanceTests/SingleTransactionTestBase.h old mode 100755 new mode 100644 index d80963733a..bdc0b0a855 --- a/tests/PerformanceTests/SingleTransactionTestBase.h +++ b/tests/PerformanceTests/SingleTransactionTestBase.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/PerformanceTests/main.cpp b/tests/PerformanceTests/main.cpp index 3d3a70c106..7d3e1543a4 100644 --- a/tests/PerformanceTests/main.cpp +++ b/tests/PerformanceTests/main.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "PerformanceTests.h" #include "PerformanceUtils.h" diff --git a/tests/System/ContextGroupTests.cpp b/tests/System/ContextGroupTests.cpp index 9c55478686..3814fabbad 100755 --- a/tests/System/ContextGroupTests.cpp +++ b/tests/System/ContextGroupTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/ContextGroupTimeoutTests.cpp b/tests/System/ContextGroupTimeoutTests.cpp index 6e733a7984..6e02dd604b 100644 --- a/tests/System/ContextGroupTimeoutTests.cpp +++ b/tests/System/ContextGroupTimeoutTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/ContextTests.cpp b/tests/System/ContextTests.cpp index a85213f7d7..36538ac0ef 100755 --- a/tests/System/ContextTests.cpp +++ b/tests/System/ContextTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/DispatcherTests.cpp b/tests/System/DispatcherTests.cpp index b28d859b5e..ba53fd11f3 100755 --- a/tests/System/DispatcherTests.cpp +++ b/tests/System/DispatcherTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/ErrorMessageTests.cpp b/tests/System/ErrorMessageTests.cpp index 00d1944d2d..eb21aa49d9 100644 --- a/tests/System/ErrorMessageTests.cpp +++ b/tests/System/ErrorMessageTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/EventLockTests.cpp b/tests/System/EventLockTests.cpp index 80d69f74b0..db1969cc10 100755 --- a/tests/System/EventLockTests.cpp +++ b/tests/System/EventLockTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/EventTests.cpp b/tests/System/EventTests.cpp index c1764f8500..5dc1c9be2f 100755 --- a/tests/System/EventTests.cpp +++ b/tests/System/EventTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/Ipv4AddressTests.cpp b/tests/System/Ipv4AddressTests.cpp index e3fff4eb8c..17cfc6ecd8 100755 --- a/tests/System/Ipv4AddressTests.cpp +++ b/tests/System/Ipv4AddressTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/Ipv4ResolverTests.cpp b/tests/System/Ipv4ResolverTests.cpp index 4a7c0c2498..4ad27bdf05 100755 --- a/tests/System/Ipv4ResolverTests.cpp +++ b/tests/System/Ipv4ResolverTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/OperationTimeoutTests.cpp b/tests/System/OperationTimeoutTests.cpp index f550c46689..1fe5d309b6 100644 --- a/tests/System/OperationTimeoutTests.cpp +++ b/tests/System/OperationTimeoutTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/RemoteContextTests.cpp b/tests/System/RemoteContextTests.cpp index b82b755cc8..12d49b441d 100644 --- a/tests/System/RemoteContextTests.cpp +++ b/tests/System/RemoteContextTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/TcpConnectionTests.cpp b/tests/System/TcpConnectionTests.cpp index 65a5fdb975..2bbcd02457 100755 --- a/tests/System/TcpConnectionTests.cpp +++ b/tests/System/TcpConnectionTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/TcpConnectorTests.cpp b/tests/System/TcpConnectorTests.cpp index 732be2078e..10c91aafaa 100755 --- a/tests/System/TcpConnectorTests.cpp +++ b/tests/System/TcpConnectorTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/TcpListenerTests.cpp b/tests/System/TcpListenerTests.cpp index beb54749c5..07ea2345b8 100755 --- a/tests/System/TcpListenerTests.cpp +++ b/tests/System/TcpListenerTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/TimerTests.cpp b/tests/System/TimerTests.cpp index 98f37118d8..0b2a560163 100755 --- a/tests/System/TimerTests.cpp +++ b/tests/System/TimerTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/System/main.cpp b/tests/System/main.cpp index 71d5a20480..5bbbe9c1cd 100755 --- a/tests/System/main.cpp +++ b/tests/System/main.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include diff --git a/tests/TestGenerator/TestGenerator.cpp b/tests/TestGenerator/TestGenerator.cpp index 8d73d72656..1461132727 100644 --- a/tests/TestGenerator/TestGenerator.cpp +++ b/tests/TestGenerator/TestGenerator.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TestGenerator.h" @@ -74,8 +61,7 @@ void test_generator::addBlock(const CryptoNote::Block& blk, size_t tsxSize, uint const size_t blockSize = tsxSize + getObjectBinarySize(blk.baseTransaction); int64_t emissionChange; uint64_t blockReward; - bool penalizeFee = blk.majorVersion > BLOCK_MAJOR_VERSION_1; - m_currency.getBlockReward(Common::medianValue(blockSizes), blockSize, alreadyGeneratedCoins, fee, penalizeFee, + m_currency.getBlockReward(Common::medianValue(blockSizes), blockSize, alreadyGeneratedCoins, fee, blockReward, emissionChange); m_blocksInfo[get_block_hash(blk)] = BlockInfo(blk.previousBlockHash, alreadyGeneratedCoins + emissionChange, blockSize); } @@ -140,25 +126,6 @@ bool test_generator::constructBlock(CryptoNote::Block& blk, uint32_t height, con } } - if (blk.majorVersion >= BLOCK_MAJOR_VERSION_2) { - blk.parentBlock.majorVersion = BLOCK_MAJOR_VERSION_1; - blk.parentBlock.minorVersion = BLOCK_MINOR_VERSION_0; - blk.parentBlock.transactionCount = 1; - blk.parentBlock.baseTransaction.version = 0; - blk.parentBlock.baseTransaction.unlockTime = 0; - - CryptoNote::TransactionExtraMergeMiningTag mmTag; - mmTag.depth = 0; - if (!CryptoNote::get_aux_block_header_hash(blk, mmTag.merkleRoot)) { - return false; - } - - blk.parentBlock.baseTransaction.extra.clear(); - if (!CryptoNote::appendMergeMiningTagToExtra(blk.parentBlock.baseTransaction.extra, mmTag)) { - return false; - } - } - // Nonce search... blk.nonce = 0; Crypto::cn_context context; @@ -204,9 +171,6 @@ bool test_generator::constructBlockManually(Block& blk, const Block& prevBlock, blk.previousBlockHash = actualParams & bf_prev_id ? previousBlockHash : get_block_hash(prevBlock); blk.transactionHashes = actualParams & bf_tx_hashes ? transactionHashes : std::vector(); - blk.parentBlock.baseTransaction.version = 0; - blk.parentBlock.baseTransaction.unlockTime = 0; - uint32_t height = get_block_height(prevBlock) + 1; uint64_t alreadyGeneratedCoins = getAlreadyGeneratedCoins(prevBlock); std::vector blockSizes; @@ -218,28 +182,11 @@ bool test_generator::constructBlockManually(Block& blk, const Block& prevBlock, size_t currentBlockSize = txsSizes + getObjectBinarySize(blk.baseTransaction); // TODO: This will work, until size of constructed block is less then m_currency.blockGrantedFullRewardZone() if (!m_currency.constructMinerTx(height, Common::medianValue(blockSizes), alreadyGeneratedCoins, currentBlockSize, 0, - minerAcc.getAccountKeys().address, blk.baseTransaction, BinaryArray(), 1, blk.majorVersion > BLOCK_MAJOR_VERSION_1)) { + minerAcc.getAccountKeys().address, blk.baseTransaction, BinaryArray(), 1)) { return false; } } - if (blk.majorVersion >= BLOCK_MAJOR_VERSION_2) { - blk.parentBlock.majorVersion = BLOCK_MAJOR_VERSION_1; - blk.parentBlock.minorVersion = BLOCK_MINOR_VERSION_0; - blk.parentBlock.transactionCount = 1; - - CryptoNote::TransactionExtraMergeMiningTag mmTag; - mmTag.depth = 0; - if (!CryptoNote::get_aux_block_header_hash(blk, mmTag.merkleRoot)) { - return false; - } - - blk.parentBlock.baseTransaction.extra.clear(); - if (!CryptoNote::appendMergeMiningTagToExtra(blk.parentBlock.baseTransaction.extra, mmTag)) { - return false; - } - } - difficulty_type aDiffic = actualParams & bf_diffic ? diffic : getTestDifficulty(); if (1 < aDiffic) { fillNonce(blk, aDiffic); @@ -265,12 +212,7 @@ bool test_generator::constructMaxSizeBlock(CryptoNote::Block& blk, const CryptoN medianBlockCount = medianBlockCount == 0 ? m_currency.rewardBlocksWindow() : medianBlockCount; getLastNBlockSizes(blockSizes, get_block_hash(blkPrev), medianBlockCount); - size_t median = Common::medianValue(blockSizes); - size_t blockGrantedFullRewardZone = defaultMajorVersion <= BLOCK_MAJOR_VERSION_1 ? - CryptoNote::parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1 : - m_currency.blockGrantedFullRewardZone(); - median = std::max(median, blockGrantedFullRewardZone); - + size_t median = std::max(Common::medianValue(blockSizes), m_currency.blockGrantedFullRewardZone()); uint64_t totalFee = 0; size_t txsSize = 0; std::vector transactionHashes; @@ -286,7 +228,7 @@ bool test_generator::constructMaxSizeBlock(CryptoNote::Block& blk, const CryptoN Transaction baseTransaction; bool r = constructMinerTxBySize(m_currency, baseTransaction, get_block_height(blkPrev) + 1, getAlreadyGeneratedCoins(blkPrev), minerAccount.getAccountKeys().address, blockSizes, - 2 * median - txsSize, 2 * median, totalFee, defaultMajorVersion > BLOCK_MAJOR_VERSION_1); + 2 * median - txsSize, 2 * median, totalFee); if (!r) { return false; } @@ -320,7 +262,7 @@ bool constructMinerTxManually(const CryptoNote::Currency& currency, uint32_t hei // This will work, until size of constructed block is less then currency.blockGrantedFullRewardZone() int64_t emissionChange; uint64_t blockReward; - if (!currency.getBlockReward(0, 0, alreadyGeneratedCoins, fee, false, blockReward, emissionChange)) { + if (!currency.getBlockReward(0, 0, alreadyGeneratedCoins, fee, blockReward, emissionChange)) { std::cerr << "Block is too big" << std::endl; return false; } @@ -344,9 +286,9 @@ bool constructMinerTxManually(const CryptoNote::Currency& currency, uint32_t hei bool constructMinerTxBySize(const CryptoNote::Currency& currency, CryptoNote::Transaction& baseTransaction, uint32_t height, uint64_t alreadyGeneratedCoins, const CryptoNote::AccountPublicAddress& minerAddress, std::vector& blockSizes, size_t targetTxSize, size_t targetBlockSize, - uint64_t fee/* = 0*/, bool penalizeFee/* = false*/) { + uint64_t fee/* = 0*/) { if (!currency.constructMinerTx(height, Common::medianValue(blockSizes), alreadyGeneratedCoins, targetBlockSize, - fee, minerAddress, baseTransaction, CryptoNote::BinaryArray(), 1, penalizeFee)) { + fee, minerAddress, baseTransaction, CryptoNote::BinaryArray(), 1)) { return false; } diff --git a/tests/TestGenerator/TestGenerator.h b/tests/TestGenerator/TestGenerator.h index 68f3d129f7..2eb49126dd 100644 --- a/tests/TestGenerator/TestGenerator.h +++ b/tests/TestGenerator/TestGenerator.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -111,5 +98,4 @@ bool constructMinerTxManually(const CryptoNote::Currency& currency, uint32_t hei CryptoNote::KeyPair* pTxKey = 0); bool constructMinerTxBySize(const CryptoNote::Currency& currency, CryptoNote::Transaction& baseTransaction, uint32_t height, uint64_t alreadyGeneratedCoins, const CryptoNote::AccountPublicAddress& minerAddress, - std::vector& blockSizes, size_t targetTxSize, size_t targetBlockSize, uint64_t fee = 0, - bool penalizeFee = false); + std::vector& blockSizes, size_t targetTxSize, size_t targetBlockSize, uint64_t fee = 0); diff --git a/tests/TransfersTests/Globals.h b/tests/TransfersTests/Globals.h old mode 100755 new mode 100644 index bd88494aa6..4a8b77763c --- a/tests/TransfersTests/Globals.h +++ b/tests/TransfersTests/Globals.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/TransfersTests/TestNodeRpcProxy.cpp b/tests/TransfersTests/TestNodeRpcProxy.cpp index 094a976f0c..3273cae5f8 100755 --- a/tests/TransfersTests/TestNodeRpcProxy.cpp +++ b/tests/TransfersTests/TestNodeRpcProxy.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/TransfersTests/TestTxPoolSync.cpp b/tests/TransfersTests/TestTxPoolSync.cpp index c0b29c842d..18a8d2ba7d 100755 --- a/tests/TransfersTests/TestTxPoolSync.cpp +++ b/tests/TransfersTests/TestTxPoolSync.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/TransfersTests/Tests.cpp b/tests/TransfersTests/Tests.cpp index ffd9d6f1e3..8d23da60d9 100644 --- a/tests/TransfersTests/Tests.cpp +++ b/tests/TransfersTests/Tests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "Globals.h" #include "CryptoNoteCore/Account.h" diff --git a/tests/TransfersTests/main.cpp b/tests/TransfersTests/main.cpp index 3f9bc14ad1..c85d7b43a4 100644 --- a/tests/TransfersTests/main.cpp +++ b/tests/TransfersTests/main.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" #include "Globals.h" diff --git a/tests/UnitTests/ArrayRefTests.cpp b/tests/UnitTests/ArrayRefTests.cpp index bb0bbb3000..a15468d94a 100755 --- a/tests/UnitTests/ArrayRefTests.cpp +++ b/tests/UnitTests/ArrayRefTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/UnitTests/ArrayViewTests.cpp b/tests/UnitTests/ArrayViewTests.cpp index 8e2b1f623f..0a1d877669 100755 --- a/tests/UnitTests/ArrayViewTests.cpp +++ b/tests/UnitTests/ArrayViewTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/UnitTests/Base58.cpp b/tests/UnitTests/Base58.cpp old mode 100755 new mode 100644 index 6b60898105..8b010c29d2 --- a/tests/UnitTests/Base58.cpp +++ b/tests/UnitTests/Base58.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/BinarySerializationCompatibility.cpp b/tests/UnitTests/BinarySerializationCompatibility.cpp deleted file mode 100755 index d470198635..0000000000 --- a/tests/UnitTests/BinarySerializationCompatibility.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . - -//#include "gtest/gtest.h" -// -//#include -//#include -//#include -// -//#include "Serialization/BinaryOutputStreamSerializer.h" -//#include "Serialization/BinaryInputStreamSerializer.h" -// -//#include "Serialization/serialization.h" -//#include "Serialization/binary_utils.h" -// -//#include "CryptoNoteCore/CryptoNoteBasic.h" -//#include "CryptoNoteCore/CryptoNoteBasicImpl.h" -//#include "CryptoNoteCore/CryptoNoteSerialization.h" -//#include "CryptoNoteCore/CryptoNoteFormatUtils.h" -//#include "serialization_structs_comparators.h" -// -//#include -// -//#include -// -//template -//void checkEqualBinary(Struct& original) { -// std::stringstream newStream; -// std::stringstream oldStream; -// -// CryptoNote::BinaryOutputStreamSerializer binarySerializer(newStream); -// // binarySerializer(original, ""); -// CryptoNote::serialize(original, binarySerializer); -// -// binary_archive ba(oldStream); -// bool r = ::serialization::serialize(ba, original); -// ASSERT_TRUE(r); -// -// ASSERT_EQ(oldStream.str(), newStream.str()); -//} -// -//template -//void checkEnumeratorToLegacy(Struct& original) { -// std::stringstream archive; -// -// CryptoNote::BinaryOutputStreamSerializer binarySerializer(archive); -// CryptoNote::serialize(original, binarySerializer); -// -// Struct restored; -// binary_archive ba(archive); -// bool r = ::serialization::serialize(ba, restored); -// ASSERT_TRUE(r); -// -// ASSERT_EQ(original, restored); -//} -// -//template -//void checkLegacyToEnumerator(Struct& original) { -// std::stringstream archive; -// -// binary_archive ba(archive); -// bool r = ::serialization::serialize(ba, original); -// ASSERT_TRUE(r); -// -// Struct restored; -// -// CryptoNote::BinaryInputStreamSerializer binarySerializer(archive); -// binarySerializer(restored, ""); -// -// ASSERT_EQ(original, restored); -//} -// -//template -//void checkEnumeratorToEnumerator(Struct& original) { -// std::stringstream archive; -// -// CryptoNote::BinaryOutputStreamSerializer output(archive); -// output(original, ""); -// -// Struct restored; -// CryptoNote::BinaryInputStreamSerializer input(archive); -// input(restored, ""); -// -// ASSERT_EQ(original, restored); -//} -// -//template -//void checkCompatibility(Struct& original) { -// checkEqualBinary(original); -// ASSERT_NO_FATAL_FAILURE(checkEnumeratorToEnumerator(original)); -// ASSERT_NO_FATAL_FAILURE(checkEnumeratorToLegacy(original)); -// ASSERT_NO_FATAL_FAILURE(checkLegacyToEnumerator(original)); -//} -// -//void fillData(char* data, size_t size, char startByte) { -// for (size_t i = 0; i < size; ++i) { -// data[i] = startByte++; -// } -//} -// -//void fillPublicKey(Crypto::PublicKey& key, char startByte = 120) { -// fillData(reinterpret_cast(&key), sizeof(Crypto::PublicKey), startByte); -//} -// -//void fillHash(Crypto::Hash& hash, char startByte = 120) { -// fillData(reinterpret_cast(&hash), sizeof(Crypto::Hash), startByte); -//} -// -//void fillKeyImage(Crypto::KeyImage& image, char startByte = 120) { -// fillData(reinterpret_cast(&image), sizeof(Crypto::KeyImage), startByte); -//} -// -//void fillSignature(Crypto::Signature& sig, char startByte = 120) { -// fillData(reinterpret_cast(&sig), sizeof(Crypto::Signature), startByte); -//} -// -//void fillTransactionOutputMultisignature(CryptoNote::TransactionOutputMultisignature& s) { -// Crypto::PublicKey key; -// fillPublicKey(key, 0); -// s.keys.push_back(key); -// -// char start = 120; -// -// fillPublicKey(key, start++); -// s.keys.push_back(key); -// -// fillPublicKey(key, start++); -// s.keys.push_back(key); -// -// fillPublicKey(key, start++); -// s.keys.push_back(key); -// -// fillPublicKey(key, start++); -// s.keys.push_back(key); -// -// fillPublicKey(key, start++); -// s.keys.push_back(key); -// -// s.requiredSignatures = 12; -//} -// -//void fillTransaction(CryptoNote::Transaction& tx) { -// tx.version = 1; -// tx.unlockTime = 0x7f1234560089ABCD; -// -// CryptoNote::TransactionInputGenerate gen; -// gen.height = 0xABCDEF12; -// tx.vin.push_back(gen); -// -// CryptoNote::TransactionInputToKey key; -// key.amount = 500123; -// key.keyOffsets = {12,3323,0x7f0000000000, std::numeric_limits::max(), 0}; -// fillKeyImage(key.keyImage); -// tx.vin.push_back(key); -// -// CryptoNote::TransactionInputMultisignature multisig; -// multisig.amount = 490000000; -// multisig.outputIndex = 424242; -// multisig.signatures = 4; -// tx.vin.push_back(multisig); -// -// CryptoNote::TransactionOutput txOutput; -// txOutput.amount = 0xfff000ffff778822; -// CryptoNote::TransactionOutputToKey out; -// fillPublicKey(out.key); -// txOutput.target = out; -// tx.vout.push_back(txOutput); -// -// tx.extra = {1,2,3,127,0,128,255}; -// -// tx.signatures.resize(3); -// -// for (size_t i = 0; i < boost::get(tx.vin[1]).keyOffsets.size(); ++i) { -// Crypto::Signature sig; -// fillSignature(sig, static_cast(i)); -// tx.signatures[1].push_back(sig); -// } -// -// for (size_t i = 0; i < boost::get(tx.vin[2]).signatures; ++i) { -// Crypto::Signature sig; -// fillSignature(sig, static_cast(i + 120)); -// tx.signatures[2].push_back(sig); -// } -//} -// -//void fillParentBlock(CryptoNote::ParentBlock& pb) { -// pb.majorVersion = 1; -// pb.minorVersion = 1; -// -// fillHash(pb.prevId, 120); -// -// pb.numberOfTransactions = 3; -// size_t branchSize = Crypto::tree_depth(pb.numberOfTransactions); -// for (size_t i = 0; i < branchSize; ++i) { -// Crypto::Hash hash; -// fillHash(hash, static_cast(i)); -// pb.minerTxBranch.push_back(hash); -// } -// -// fillTransaction(pb.minerTx); -// -// CryptoNote::tx_extra_merge_mining_tag mmTag; -// mmTag.depth = 10; -// fillHash(mmTag.merkle_root); -// pb.minerTx.extra.clear(); -// CryptoNote::append_mm_tag_to_extra(pb.minerTx.extra, mmTag); -// -// std::string my; -// std::copy(pb.minerTx.extra.begin(), pb.minerTx.extra.end(), std::back_inserter(my)); -// -// for (size_t i = 0; i < mmTag.depth; ++i) { -// Crypto::Hash hash; -// fillHash(hash, static_cast(i)); -// pb.blockchainBranch.push_back(hash); -// } -//} -// -//void fillBlockHeaderVersion1(CryptoNote::BlockHeader& header) { -// header.majorVersion = 1; -// header.minorVersion = 1; -// header.nonce = 0x807F00AB; -// header.timestamp = 1408106672; -// fillHash(header.prevId); -//} -// -//void fillBlockHeaderVersion2(CryptoNote::BlockHeader& header) { -// fillBlockHeaderVersion1(header); -// header.majorVersion = 2; -//} -// -//TEST(BinarySerializationCompatibility, TransactionOutputMultisignature) { -// CryptoNote::TransactionOutputMultisignature s; -// -// fillTransactionOutputMultisignature(s); -// -// checkCompatibility(s); -//} -// -//TEST(BinarySerializationCompatibility, TransactionInputGenerate) { -// CryptoNote::TransactionInputGenerate s; -// s.height = 0x80000001; -// checkCompatibility(s); -// -// s.height = 0x7FFFFFFF; -// checkCompatibility(s); -// -// s.height = 0; -// checkCompatibility(s); -//}; -// -//TEST(BinarySerializationCompatibility, TransactionInputToKey) { -// CryptoNote::TransactionInputToKey s; -// -// s.amount = 123456987032; -// s.keyOffsets = {12,3323,0x7f00000000000000, std::numeric_limits::max(), 0}; -// fillKeyImage(s.keyImage); -// -// checkCompatibility(s); -//} -// -//TEST(BinarySerializationCompatibility, TransactionInputMultisignature) { -// CryptoNote::TransactionInputMultisignature s; -// s.amount = 0xfff000ffff778822; -// s.signatures = 0x7f259200; -// s.outputIndex = 0; -// -// checkCompatibility(s); -//} -// -//TEST(BinarySerializationCompatibility, TransactionOutput_TransactionOutputToKey) { -// CryptoNote::TransactionOutput s; -// s.amount = 0xfff000ffff778822; -// -// CryptoNote::TransactionOutputToKey out; -// fillPublicKey(out.key); -// s.target = out; -// -// checkCompatibility(s); -//} -// -//TEST(BinarySerializationCompatibility, TransactionOutput_TransactionOutputMultisignature) { -// CryptoNote::TransactionOutput s; -// s.amount = 0xfff000ffff778822; -// -// CryptoNote::TransactionOutputMultisignature out; -// fillTransactionOutputMultisignature(out); -// s.target = out; -// -// checkCompatibility(s); -//} -// -//TEST(BinarySerializationCompatibility, Transaction) { -// CryptoNote::Transaction tx; -// -// fillTransaction(tx); -// -// checkCompatibility(tx); -//} -// -//TEST(BinarySerializationCompatibility, TransactionHash) { -// CryptoNote::Transaction tx; -// fillTransaction(tx); -// -// auto h1 = CryptoNote::getObjectHash(tx); -// -// std::string blob; -// serialization::dump_binary(tx, blob); -// Crypto::Hash h2; -// CryptoNote::get_blob_hash(blob, h2); -// -// -// auto s1 = std::hash()(h1); -// auto s2 = boost::hash()(h1); -// -// ASSERT_EQ(h1, h2); -//} -// -// -//void compareParentBlocks(CryptoNote::ParentBlock& pb, CryptoNote::ParentBlock& restoredPb, bool headerOnly) { -// EXPECT_EQ(pb.majorVersion, restoredPb.majorVersion); -// EXPECT_EQ(pb.minorVersion, restoredPb.minorVersion); -// EXPECT_EQ(pb.prevId, restoredPb.prevId); -// -// if (headerOnly) { -// return; -// } -// -// EXPECT_EQ(pb.numberOfTransactions, restoredPb.numberOfTransactions); -// EXPECT_EQ(pb.minerTxBranch, restoredPb.minerTxBranch); -// EXPECT_EQ(pb.minerTx, restoredPb.minerTx); -// EXPECT_EQ(pb.blockchainBranch, restoredPb.blockchainBranch); -//} -// -//void checkEnumeratorToLegacy(CryptoNote::ParentBlock& pb, uint64_t ts, uint32_t nonce, bool hashingSerialization, bool headerOnly) { -// std::stringstream archive; -// -// CryptoNote::ParentBlockSerializer original(pb, ts, nonce, hashingSerialization, headerOnly); -// CryptoNote::BinaryOutputStreamSerializer output(archive); -// output(original, ""); -// -// CryptoNote::ParentBlock restoredPb; -// uint64_t restoredTs; -// uint32_t restoredNonce; -// -// CryptoNote::ParentBlockSerializer restored(restoredPb, restoredTs, restoredNonce, hashingSerialization, headerOnly); -// binary_archive ba(archive); -// bool r = ::serialization::serialize(ba, restored); -// ASSERT_TRUE(r); -// -// EXPECT_EQ(nonce, restoredNonce); -// EXPECT_EQ(ts, restoredTs); -// -// ASSERT_NO_FATAL_FAILURE(compareParentBlocks(pb, restoredPb, headerOnly)); -//} -// -//void checkLegacyToEnumerator(CryptoNote::ParentBlock& pb, uint64_t ts, uint32_t nonce, bool hashingSerialization, bool headerOnly) { -// std::stringstream archive; -// -// CryptoNote::ParentBlockSerializer original(pb, ts, nonce, hashingSerialization, headerOnly); -// binary_archive ba(archive); -// bool r = ::serialization::serialize(ba, original); -// ASSERT_TRUE(r); -// -// CryptoNote::ParentBlock restoredPb; -// uint64_t restoredTs; -// uint32_t restoredNonce; -// -// CryptoNote::ParentBlockSerializer restored(restoredPb, restoredTs, restoredNonce, hashingSerialization, headerOnly); -// -// CryptoNote::BinaryInputStreamSerializer input(archive); -// input(restored, ""); -// -// EXPECT_EQ(nonce, restoredNonce); -// EXPECT_EQ(ts, restoredTs); -// -// ASSERT_NO_FATAL_FAILURE(compareParentBlocks(pb, restoredPb, headerOnly)); -//} -// -//void checkEnumeratorToEnumerator(CryptoNote::ParentBlock& pb, uint64_t ts, uint32_t nonce, bool hashingSerialization, bool headerOnly) { -// std::stringstream archive; -// -// CryptoNote::ParentBlockSerializer original(pb, ts, nonce, hashingSerialization, headerOnly); -// CryptoNote::BinaryOutputStreamSerializer output(archive); -// output(original, ""); -// -// CryptoNote::ParentBlock restoredPb; -// uint64_t restoredTs; -// uint32_t restoredNonce; -// -// CryptoNote::ParentBlockSerializer restored(restoredPb, restoredTs, restoredNonce, hashingSerialization, headerOnly); -// -// CryptoNote::BinaryInputStreamSerializer input(archive); -// input(restored, ""); -// -// EXPECT_EQ(nonce, restoredNonce); -// EXPECT_EQ(ts, restoredTs); -// -// ASSERT_NO_FATAL_FAILURE(compareParentBlocks(pb, restoredPb, headerOnly)); -//} -// -//void checkCompatibility(CryptoNote::ParentBlock& pb, uint64_t ts, uint32_t nonce, bool hashingSerialization, bool headerOnly) { -// ASSERT_NO_FATAL_FAILURE(checkEnumeratorToEnumerator(pb, ts, nonce, hashingSerialization, headerOnly)); -// ASSERT_NO_FATAL_FAILURE(checkEnumeratorToLegacy(pb, ts, nonce, hashingSerialization, headerOnly)); -// ASSERT_NO_FATAL_FAILURE(checkLegacyToEnumerator(pb, ts, nonce, hashingSerialization, headerOnly)); -//} -// -//TEST(BinarySerializationCompatibility, ParentBlockSerializer) { -// CryptoNote::ParentBlock pb; -// fillParentBlock(pb); -// uint64_t timestamp = 1408106672; -// uint32_t nonce = 1234567; -// -// checkCompatibility(pb, timestamp, nonce, false, false); -// checkCompatibility(pb, timestamp, nonce, true, false); -// checkCompatibility(pb, timestamp, nonce, false, true); -//} -// -//void compareBlocks(CryptoNote::Block& block, CryptoNote::Block& restoredBlock) { -// ASSERT_EQ(block.majorVersion, restoredBlock.majorVersion); -// ASSERT_EQ(block.minorVersion, restoredBlock.minorVersion); -// if (block.majorVersion == CryptoNote::BLOCK_MAJOR_VERSION_1) { -// ASSERT_EQ(block.timestamp, restoredBlock.timestamp); -// ASSERT_EQ(block.prevId, restoredBlock.prevId); -// ASSERT_EQ(block.nonce, restoredBlock.nonce); -// } else if (block.majorVersion == CryptoNote::BLOCK_MAJOR_VERSION_2) { -// ASSERT_EQ(block.prevId, restoredBlock.prevId); -// ASSERT_NO_FATAL_FAILURE(compareParentBlocks(block.parentBlock, restoredBlock.parentBlock, false)); -// } else { -// throw std::runtime_error("Unknown major block version. Check your test"); -// } -// ASSERT_EQ(block.minerTx, restoredBlock.minerTx); -// ASSERT_EQ(block.txHashes, restoredBlock.txHashes); -//} -// -//void checkEnumeratorToLegacy(CryptoNote::Block& block) { -// std::stringstream archive; -// -// CryptoNote::BinaryOutputStreamSerializer output(archive); -// output(block, ""); -// -// CryptoNote::Block restoredBlock; -// -// binary_archive ba(archive); -// bool r = ::serialization::serialize(ba, restoredBlock); -// ASSERT_TRUE(r); -// -// ASSERT_NO_FATAL_FAILURE(compareBlocks(block, restoredBlock)); -//} -// -//void checkLegacyToEnumerator(CryptoNote::Block& block) { -// std::stringstream archive; -// -// binary_archive ba(archive); -// bool r = ::serialization::serialize(ba, block); -// ASSERT_TRUE(r); -// -// CryptoNote::Block restoredBlock; -// -// CryptoNote::BinaryInputStreamSerializer output(archive); -// output(restoredBlock, ""); -// -// ASSERT_NO_FATAL_FAILURE(compareBlocks(block, restoredBlock)); -//} -// -//void checkEnumeratorToEnumerator(CryptoNote::Block& block) { -// std::stringstream archive; -// -// CryptoNote::BinaryOutputStreamSerializer output(archive); -// output(block, ""); -// -// CryptoNote::Block restoredBlock; -// -// CryptoNote::BinaryInputStreamSerializer input(archive); -// input(restoredBlock, ""); -// -// ASSERT_NO_FATAL_FAILURE(compareBlocks(block, restoredBlock)); -//} -// -//void checkCompatibility(CryptoNote::Block& block) { -// ASSERT_NO_FATAL_FAILURE(checkEnumeratorToEnumerator(block)); -// ASSERT_NO_FATAL_FAILURE(checkEnumeratorToLegacy(block)); -// ASSERT_NO_FATAL_FAILURE(checkLegacyToEnumerator(block)); -//} -// -//TEST(BinarySerializationCompatibility, BlockVersion1) { -// CryptoNote::Block block; -// fillBlockHeaderVersion1(block); -// fillParentBlock(block.parentBlock); -// fillTransaction(block.minerTx); -// -// for (size_t i = 0; i < 7; ++i) { -// Crypto::Hash hash; -// fillHash(hash, static_cast(0x7F + i)); -// block.txHashes.push_back(hash); -// } -// -// checkCompatibility(block); -//} -// -//TEST(BinarySerializationCompatibility, BlockVersion2) { -// CryptoNote::Block block; -// fillBlockHeaderVersion2(block); -// fillParentBlock(block.parentBlock); -// fillTransaction(block.minerTx); -// -// for (size_t i = 0; i < 7; ++i) { -// Crypto::Hash hash; -// fillHash(hash, static_cast(0x7F + i)); -// block.txHashes.push_back(hash); -// } -// -// checkCompatibility(block); -//} -// -//TEST(BinarySerializationCompatibility, account_public_address) { -// CryptoNote::AccountPublicAddress addr; -// -// fillPublicKey(addr.m_spendPublicKey, '\x50'); -// fillPublicKey(addr.m_viewPublicKey, '\xAA'); -// -// checkCompatibility(addr); -//} -// -////TEST(BinarySerializationCompatibility, tx_extra_merge_mining_tag) { -//// CryptoNote::tx_extra_merge_mining_tag tag; -//// tag.depth = 0xdeadbeef; -//// fillHash(tag.merkle_root); -//// -//// checkCompatibility(tag); -////} -// -//TEST(BinarySerializationCompatibility, readFromEmptyStream) { -// CryptoNote::TransactionOutput t; -// std::stringstream emptyStream; -// CryptoNote::BinaryInputStreamSerializer s(emptyStream); -// -// ASSERT_ANY_THROW(s(t, "")); -//} -// -//TEST(BinarySerializationCompatibility, writeToBadStream) { -// CryptoNote::TransactionOutput t; -// std::stringstream badStream; -// CryptoNote::BinaryOutputStreamSerializer s(badStream); -// -// badStream.setstate(std::ios::badbit); -// ASSERT_ANY_THROW(s(t, "")); -//} diff --git a/tests/UnitTests/BlockReward.cpp b/tests/UnitTests/BlockReward.cpp old mode 100755 new mode 100644 index 17709465c9..cfe0903483 --- a/tests/UnitTests/BlockReward.cpp +++ b/tests/UnitTests/BlockReward.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" @@ -52,7 +39,7 @@ namespace }; #define TEST_ALREADY_GENERATED_COINS(alreadyGeneratedCoins, expectedReward) \ - m_blockTooBig = !m_currency.getBlockReward(0, currentBlockSize, alreadyGeneratedCoins, 0, false, \ + m_blockTooBig = !m_currency.getBlockReward(0, currentBlockSize, alreadyGeneratedCoins, 0, \ m_blockReward, m_emissionChange); \ ASSERT_FALSE(m_blockTooBig); \ ASSERT_EQ(UINT64_C(expectedReward), m_blockReward); \ @@ -94,14 +81,14 @@ namespace static const uint64_t alreadyGeneratedCoins = 0; virtual void SetUp() override { - m_blockTooBig = !m_currency.getBlockReward(0, 0, alreadyGeneratedCoins, 0, false, + m_blockTooBig = !m_currency.getBlockReward(0, 0, alreadyGeneratedCoins, 0, m_standardBlockReward, m_emissionChange); ASSERT_FALSE(m_blockTooBig); ASSERT_EQ(UINT64_C(70368744177663), m_standardBlockReward); } void do_test(size_t medianBlockSize, size_t currentBlockSize) { - m_blockTooBig = !m_currency.getBlockReward(medianBlockSize, currentBlockSize, alreadyGeneratedCoins, 0, false, + m_blockTooBig = !m_currency.getBlockReward(medianBlockSize, currentBlockSize, alreadyGeneratedCoins, 0, m_blockReward, m_emissionChange); } @@ -191,7 +178,7 @@ namespace static const uint64_t alreadyGeneratedCoins = 0; virtual void SetUp() override { - m_blockTooBig = !m_currency.getBlockReward(testMedian, 0, alreadyGeneratedCoins, 0, false, + m_blockTooBig = !m_currency.getBlockReward(testMedian, 0, alreadyGeneratedCoins, 0, m_standardBlockReward, m_emissionChange); ASSERT_FALSE(m_blockTooBig); @@ -199,7 +186,7 @@ namespace } void do_test(size_t currentBlockSize) { - m_blockTooBig = !m_currency.getBlockReward(testMedian, currentBlockSize, alreadyGeneratedCoins, 0, false, + m_blockTooBig = !m_currency.getBlockReward(testMedian, currentBlockSize, alreadyGeneratedCoins, 0, m_blockReward, m_emissionChange); } @@ -273,7 +260,7 @@ namespace } //-------------------------------------------------------------------------------------------------------------------- const unsigned int testEmissionSpeedFactor = 4; - const size_t testGrantedFullRewardZone = CryptoNote::parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1; + const size_t testGrantedFullRewardZone = 10000; const size_t testMedian = testGrantedFullRewardZone; const size_t testBlockSize = testMedian + testMedian * 8 / 10; // expected penalty 0.64 * reward const uint64_t testPenalty = 64; // percentage @@ -297,15 +284,15 @@ namespace uint64_t blockReward; int64_t emissionChange; - m_blockTooBig = !m_currency.getBlockReward(testMedian, testBlockSize, 0, 0, false, blockReward, emissionChange); + m_blockTooBig = !m_currency.getBlockReward(testMedian, testBlockSize, 0, 0, blockReward, emissionChange); ASSERT_FALSE(m_blockTooBig); ASSERT_EQ(expectedBlockReward, blockReward); ASSERT_EQ(expectedBlockReward, emissionChange); } - void do_test(uint64_t alreadyGeneratedCoins, uint64_t fee, bool penalizeFee) { - m_blockTooBig = !m_currency.getBlockReward(testMedian, testBlockSize, alreadyGeneratedCoins, fee, penalizeFee, + void do_test(uint64_t alreadyGeneratedCoins, uint64_t fee) { + m_blockTooBig = !m_currency.getBlockReward(testMedian, testBlockSize, alreadyGeneratedCoins, fee, m_blockReward, m_emissionChange); } @@ -316,17 +303,8 @@ namespace uint64_t m_blockReward; }; - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_zero_fee_and_no_penalize_fee) { - do_test(0, 0, false); - - ASSERT_FALSE(m_blockTooBig); - ASSERT_EQ(expectedBlockReward, m_blockReward); - ASSERT_EQ(expectedBlockReward, m_emissionChange); - ASSERT_GT(m_emissionChange, 0); - } - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_zero_fee_and_penalize_fee) { - do_test(0, 0, true); + do_test(0, 0); ASSERT_FALSE(m_blockTooBig); ASSERT_EQ(expectedBlockReward, m_blockReward); @@ -334,19 +312,9 @@ namespace ASSERT_GT(m_emissionChange, 0); } - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_fee_lt_block_reward_and_no_penalize_fee) { - uint64_t fee = expectedBlockReward / 2; - do_test(0, fee, false); - - ASSERT_FALSE(m_blockTooBig); - ASSERT_EQ(expectedBlockReward + fee, m_blockReward); - ASSERT_EQ(expectedBlockReward, m_emissionChange); - ASSERT_GT(m_emissionChange, 0); - } - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_fee_lt_block_reward_and_penalize_fee) { uint64_t fee = expectedBlockReward / 2; - do_test(0, fee, true); + do_test(0, fee); ASSERT_FALSE(m_blockTooBig); ASSERT_EQ(expectedBlockReward + fee - fee * testPenalty / 100, m_blockReward); @@ -354,19 +322,9 @@ namespace ASSERT_GT(m_emissionChange, 0); } - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_fee_eq_block_reward_and_no_penalize_fee) { - uint64_t fee = expectedBlockReward; - do_test(0, fee, false); - - ASSERT_FALSE(m_blockTooBig); - ASSERT_EQ(expectedBlockReward + fee, m_blockReward); - ASSERT_EQ(expectedBlockReward, m_emissionChange); - ASSERT_GT(m_emissionChange, 0); - } - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_fee_eq_block_reward_and_penalize_fee) { uint64_t fee = expectedBlockReward; - do_test(0, fee, true); + do_test(0, fee); ASSERT_FALSE(m_blockTooBig); ASSERT_EQ(expectedBlockReward + fee - fee * testPenalty / 100, m_blockReward); @@ -374,18 +332,9 @@ namespace ASSERT_GT(m_emissionChange, 0); } - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_fee_gt_block_reward_and_no_penalize_fee) { - uint64_t fee = 2 * expectedBlockReward; - do_test(0, fee, false); - - ASSERT_FALSE(m_blockTooBig); - ASSERT_EQ(expectedBlockReward + fee, m_blockReward); - ASSERT_EQ(expectedBlockReward, m_emissionChange); - } - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_fee_gt_block_reward_and_penalize_fee) { uint64_t fee = 2 * expectedBlockReward; - do_test(0, fee, true); + do_test(0, fee); ASSERT_FALSE(m_blockTooBig); ASSERT_EQ(expectedBlockReward + fee - fee * testPenalty / 100, m_blockReward); @@ -395,25 +344,16 @@ namespace TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_emission_change_eq_zero) { uint64_t fee = expectedBlockReward * 100 / testPenalty; - do_test(0, fee, true); + do_test(0, fee); ASSERT_FALSE(m_blockTooBig); ASSERT_EQ(expectedBlockReward + fee - fee * testPenalty / 100, m_blockReward); ASSERT_EQ(0, m_emissionChange); } - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_fee_if_block_reward_is_zero_and_no_penalize_fee) { - uint64_t fee = UINT64_C(100); - do_test(m_currency.moneySupply(), fee, false); - - ASSERT_FALSE(m_blockTooBig); - ASSERT_EQ(fee, m_blockReward); - ASSERT_EQ(0, m_emissionChange); - } - TEST_F(getBlockReward_fee_and_penalizeFee_test, handles_fee_if_block_reward_is_zero_and_penalize_fee) { uint64_t fee = UINT64_C(100); - do_test(m_currency.moneySupply(), fee, true); + do_test(m_currency.moneySupply(), fee); ASSERT_FALSE(m_blockTooBig); ASSERT_EQ(fee - fee * testPenalty / 100, m_blockReward); diff --git a/tests/UnitTests/BlockingQueue.cpp b/tests/UnitTests/BlockingQueue.cpp index 6f9d11b481..b0e47d9d4f 100644 --- a/tests/UnitTests/BlockingQueue.cpp +++ b/tests/UnitTests/BlockingQueue.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include "Common/BlockingQueue.h" diff --git a/tests/UnitTests/Chacha8.cpp b/tests/UnitTests/Chacha8.cpp old mode 100755 new mode 100644 index 737939bc8f..01d0e844c2 --- a/tests/UnitTests/Chacha8.cpp +++ b/tests/UnitTests/Chacha8.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include diff --git a/tests/UnitTests/Checkpoints.cpp b/tests/UnitTests/Checkpoints.cpp old mode 100755 new mode 100644 index 825d50f7a7..bd41c968ee --- a/tests/UnitTests/Checkpoints.cpp +++ b/tests/UnitTests/Checkpoints.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/DecomposeAmountIntoDigits.cpp b/tests/UnitTests/DecomposeAmountIntoDigits.cpp old mode 100755 new mode 100644 index 9d745c37c6..22e0de6073 --- a/tests/UnitTests/DecomposeAmountIntoDigits.cpp +++ b/tests/UnitTests/DecomposeAmountIntoDigits.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/EventWaiter.cpp b/tests/UnitTests/EventWaiter.cpp index d578293545..e01238eb42 100644 --- a/tests/UnitTests/EventWaiter.cpp +++ b/tests/UnitTests/EventWaiter.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "EventWaiter.h" diff --git a/tests/UnitTests/EventWaiter.h b/tests/UnitTests/EventWaiter.h index 8f25ac2383..f0ab434da8 100644 --- a/tests/UnitTests/EventWaiter.h +++ b/tests/UnitTests/EventWaiter.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/UnitTests/ICoreStub.cpp b/tests/UnitTests/ICoreStub.cpp index 2f7c242511..8829cbab6f 100755 --- a/tests/UnitTests/ICoreStub.cpp +++ b/tests/UnitTests/ICoreStub.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ICoreStub.h" @@ -258,7 +245,7 @@ bool ICoreStub::getAlreadyGeneratedCoins(const Crypto::Hash& hash, uint64_t& gen } bool ICoreStub::getBlockReward(size_t medianSize, size_t currentBlockSize, uint64_t alreadyGeneratedCoins, uint64_t fee, - bool penalizeFee, uint64_t& reward, int64_t& emissionChange) { + uint64_t& reward, int64_t& emissionChange) { return true; } diff --git a/tests/UnitTests/ICoreStub.h b/tests/UnitTests/ICoreStub.h index f5587eca69..a52da7250d 100644 --- a/tests/UnitTests/ICoreStub.h +++ b/tests/UnitTests/ICoreStub.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once @@ -74,7 +61,7 @@ class ICoreStub: public CryptoNote::ICore { virtual bool getBlockSize(const Crypto::Hash& hash, size_t& size) override; virtual bool getAlreadyGeneratedCoins(const Crypto::Hash& hash, uint64_t& generatedCoins) override; virtual bool getBlockReward(size_t medianSize, size_t currentBlockSize, uint64_t alreadyGeneratedCoins, uint64_t fee, - bool penalizeFee, uint64_t& reward, int64_t& emissionChange) override; + uint64_t& reward, int64_t& emissionChange) override; virtual bool scanOutputkeysForIndices(const CryptoNote::KeyInput& txInToKey, std::list>& outputReferences) override; virtual bool getBlockDifficulty(uint32_t height, CryptoNote::difficulty_type& difficulty) override; virtual bool getBlockContainingTx(const Crypto::Hash& txId, Crypto::Hash& blockId, uint32_t& blockHeight) override; diff --git a/tests/UnitTests/ICryptoNoteProtocolQueryStub.cpp b/tests/UnitTests/ICryptoNoteProtocolQueryStub.cpp index ea665d4488..6f535432fb 100644 --- a/tests/UnitTests/ICryptoNoteProtocolQueryStub.cpp +++ b/tests/UnitTests/ICryptoNoteProtocolQueryStub.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ICryptoNoteProtocolQueryStub.h" diff --git a/tests/UnitTests/ICryptoNoteProtocolQueryStub.h b/tests/UnitTests/ICryptoNoteProtocolQueryStub.h index 84fd9abb6e..1e0d3d96b6 100644 --- a/tests/UnitTests/ICryptoNoteProtocolQueryStub.h +++ b/tests/UnitTests/ICryptoNoteProtocolQueryStub.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/UnitTests/INodeStubs.cpp b/tests/UnitTests/INodeStubs.cpp index 42b5023c9b..a2adcb0d31 100644 --- a/tests/UnitTests/INodeStubs.cpp +++ b/tests/UnitTests/INodeStubs.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "INodeStubs.h" #include "CryptoNoteCore/CryptoNoteFormatUtils.h" diff --git a/tests/UnitTests/INodeStubs.h b/tests/UnitTests/INodeStubs.h index 79c91270e5..3ed5e3788c 100644 --- a/tests/UnitTests/INodeStubs.h +++ b/tests/UnitTests/INodeStubs.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/UnitTests/MulDiv.cpp b/tests/UnitTests/MulDiv.cpp old mode 100755 new mode 100644 index 5cd6ac0a8d..57c0d9a049 --- a/tests/UnitTests/MulDiv.cpp +++ b/tests/UnitTests/MulDiv.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/ParseAmount.cpp b/tests/UnitTests/ParseAmount.cpp old mode 100755 new mode 100644 index a4e830ca4a..511d5c3b88 --- a/tests/UnitTests/ParseAmount.cpp +++ b/tests/UnitTests/ParseAmount.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/PaymentGateTests.cpp b/tests/UnitTests/PaymentGateTests.cpp index b9fb406357..e3b116337c 100644 --- a/tests/UnitTests/PaymentGateTests.cpp +++ b/tests/UnitTests/PaymentGateTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" #include diff --git a/tests/UnitTests/Serialization.cpp b/tests/UnitTests/Serialization.cpp index 18a6c4a5bd..4f1355f1fa 100755 --- a/tests/UnitTests/Serialization.cpp +++ b/tests/UnitTests/Serialization.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/SerializationKV.cpp b/tests/UnitTests/SerializationKV.cpp index 19781cd45c..1fd8613f25 100755 --- a/tests/UnitTests/SerializationKV.cpp +++ b/tests/UnitTests/SerializationKV.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/Shuffle.cpp b/tests/UnitTests/Shuffle.cpp old mode 100755 new mode 100644 index b408509849..a63cb1316b --- a/tests/UnitTests/Shuffle.cpp +++ b/tests/UnitTests/Shuffle.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include diff --git a/tests/UnitTests/StringBufferTests.cpp b/tests/UnitTests/StringBufferTests.cpp index 14d1228b7d..a7f94c2c65 100755 --- a/tests/UnitTests/StringBufferTests.cpp +++ b/tests/UnitTests/StringBufferTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/UnitTests/StringViewTests.cpp b/tests/UnitTests/StringViewTests.cpp index 0ba71f5a4b..6e902eb740 100755 --- a/tests/UnitTests/StringViewTests.cpp +++ b/tests/UnitTests/StringViewTests.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/UnitTests/TestBcS.cpp b/tests/UnitTests/TestBcS.cpp old mode 100755 new mode 100644 index 1c1fabadfb..ccd6d0cf1c --- a/tests/UnitTests/TestBcS.cpp +++ b/tests/UnitTests/TestBcS.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestBlockchainExplorer.cpp b/tests/UnitTests/TestBlockchainExplorer.cpp index 67c99fe726..17708fb457 100755 --- a/tests/UnitTests/TestBlockchainExplorer.cpp +++ b/tests/UnitTests/TestBlockchainExplorer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" @@ -684,7 +671,7 @@ TEST_F(BlockchainExplorerTests, getRewardBlocksWindowNotInited) { } TEST_F(BlockchainExplorerTests, getFullRewardMaxBlockSize) { - ASSERT_EQ(blockchainExplorer.getFullRewardMaxBlockSize(1), parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1); + ASSERT_EQ(blockchainExplorer.getFullRewardMaxBlockSize(1), parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE); ASSERT_EQ(blockchainExplorer.getFullRewardMaxBlockSize(2), parameters::CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE); } diff --git a/tests/UnitTests/TestBlockchainGenerator.cpp b/tests/UnitTests/TestBlockchainGenerator.cpp index 0051960e8c..2e1f25a30e 100644 --- a/tests/UnitTests/TestBlockchainGenerator.cpp +++ b/tests/UnitTests/TestBlockchainGenerator.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TestBlockchainGenerator.h" @@ -405,4 +392,4 @@ bool TestBlockchainGenerator::generateFromBaseTx(const CryptoNote::AccountBase& std::unique_lock lock(m_mutex); addToBlockchain({}, address); return true; -} \ No newline at end of file +} diff --git a/tests/UnitTests/TestBlockchainGenerator.h b/tests/UnitTests/TestBlockchainGenerator.h index 9b2ffe54c5..ca8469c758 100644 --- a/tests/UnitTests/TestBlockchainGenerator.h +++ b/tests/UnitTests/TestBlockchainGenerator.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/UnitTests/TestCurrency.cpp b/tests/UnitTests/TestCurrency.cpp index 8d222007e2..30fa69f2c0 100644 --- a/tests/UnitTests/TestCurrency.cpp +++ b/tests/UnitTests/TestCurrency.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestFormatUtils.cpp b/tests/UnitTests/TestFormatUtils.cpp index daeab8114e..6b4f500b1c 100755 --- a/tests/UnitTests/TestFormatUtils.cpp +++ b/tests/UnitTests/TestFormatUtils.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestInprocessNode.cpp b/tests/UnitTests/TestInprocessNode.cpp index bf49abb652..ea1cfe8db7 100644 --- a/tests/UnitTests/TestInprocessNode.cpp +++ b/tests/UnitTests/TestInprocessNode.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestJsonValue.cpp b/tests/UnitTests/TestJsonValue.cpp index 85eae1a27c..8f0d2fa10b 100755 --- a/tests/UnitTests/TestJsonValue.cpp +++ b/tests/UnitTests/TestJsonValue.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" #include diff --git a/tests/UnitTests/TestMessageQueue.cpp b/tests/UnitTests/TestMessageQueue.cpp index 15e4f87321..9da94f0004 100644 --- a/tests/UnitTests/TestMessageQueue.cpp +++ b/tests/UnitTests/TestMessageQueue.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestPath.cpp b/tests/UnitTests/TestPath.cpp index e12e8484e8..6d7148e9ad 100755 --- a/tests/UnitTests/TestPath.cpp +++ b/tests/UnitTests/TestPath.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" #include "Common/PathTools.h" diff --git a/tests/UnitTests/TestPeerlist.cpp b/tests/UnitTests/TestPeerlist.cpp old mode 100755 new mode 100644 index 60a17cfa5a..f7122f576e --- a/tests/UnitTests/TestPeerlist.cpp +++ b/tests/UnitTests/TestPeerlist.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestProtocolPack.cpp b/tests/UnitTests/TestProtocolPack.cpp old mode 100755 new mode 100644 index db4d6c47d0..efe15a3bd0 --- a/tests/UnitTests/TestProtocolPack.cpp +++ b/tests/UnitTests/TestProtocolPack.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include diff --git a/tests/UnitTests/TestTransactionPoolDetach.cpp b/tests/UnitTests/TestTransactionPoolDetach.cpp old mode 100755 new mode 100644 index 454ea6d9f9..5683e2a528 --- a/tests/UnitTests/TestTransactionPoolDetach.cpp +++ b/tests/UnitTests/TestTransactionPoolDetach.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestTransfers.cpp b/tests/UnitTests/TestTransfers.cpp old mode 100755 new mode 100644 index 1d50142b5a..59a42999fc --- a/tests/UnitTests/TestTransfers.cpp +++ b/tests/UnitTests/TestTransfers.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestTransfersConsumer.cpp b/tests/UnitTests/TestTransfersConsumer.cpp old mode 100755 new mode 100644 index adf0969b1b..ad096c5e4c --- a/tests/UnitTests/TestTransfersConsumer.cpp +++ b/tests/UnitTests/TestTransfersConsumer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestTransfersContainer.cpp b/tests/UnitTests/TestTransfersContainer.cpp old mode 100755 new mode 100644 index 33c6f6a5ac..6755a1322d --- a/tests/UnitTests/TestTransfersContainer.cpp +++ b/tests/UnitTests/TestTransfersContainer.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestTransfersContainerKeyImage.cpp b/tests/UnitTests/TestTransfersContainerKeyImage.cpp old mode 100755 new mode 100644 index f423864cd7..533a382784 --- a/tests/UnitTests/TestTransfersContainerKeyImage.cpp +++ b/tests/UnitTests/TestTransfersContainerKeyImage.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestTransfersSubscription.cpp b/tests/UnitTests/TestTransfersSubscription.cpp old mode 100755 new mode 100644 index 72e14b8a4d..b532e9bd4d --- a/tests/UnitTests/TestTransfersSubscription.cpp +++ b/tests/UnitTests/TestTransfersSubscription.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" #include diff --git a/tests/UnitTests/TestUpgradeDetector.cpp b/tests/UnitTests/TestUpgradeDetector.cpp deleted file mode 100644 index e580438c34..0000000000 --- a/tests/UnitTests/TestUpgradeDetector.cpp +++ /dev/null @@ -1,322 +0,0 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . - -#include - -#include "gtest/gtest.h" - -#include "CryptoNoteCore/CryptoNoteBasic.h" -#include "CryptoNoteCore/UpgradeDetector.h" - -#include "Logging/ConsoleLogger.h" - -namespace { - using CryptoNote::BLOCK_MAJOR_VERSION_1; - using CryptoNote::BLOCK_MAJOR_VERSION_2; - using CryptoNote::BLOCK_MINOR_VERSION_0; - using CryptoNote::BLOCK_MINOR_VERSION_1; - - struct BlockEx { - CryptoNote::Block bl; - }; - - typedef std::vector BlockVector; - typedef CryptoNote::BasicUpgradeDetector UpgradeDetector; - - class UpgradeTest : public ::testing::Test { - public: - - CryptoNote::Currency createCurrency(uint64_t upgradeHeight = UpgradeDetector::UNDEF_HEIGHT) { - CryptoNote::CurrencyBuilder currencyBuilder(logger); - currencyBuilder.upgradeVotingThreshold(90); - currencyBuilder.upgradeVotingWindow(720); - currencyBuilder.upgradeWindow(720); - currencyBuilder.upgradeHeight(upgradeHeight); - return currencyBuilder.currency(); - } - - protected: - - Logging::ConsoleLogger logger; - }; - - class UpgradeDetector_voting_init : public UpgradeTest {}; - class UpgradeDetector_upgradeHeight_init : public UpgradeTest {}; - class UpgradeDetector_voting : public UpgradeTest {}; - - void createBlocks(BlockVector& blockchain, size_t count, uint8_t majorVersion, uint8_t minorVersion) { - for (size_t i = 0; i < count; ++i) { - BlockEx b; - b.bl.majorVersion = majorVersion; - b.bl.minorVersion = minorVersion; - b.bl.timestamp = 0; - blockchain.push_back(b); - } - } - - void createBlocks(BlockVector& blockchain, UpgradeDetector& upgradeDetector, size_t count, uint8_t majorVersion, uint8_t minorVersion) { - for (size_t i = 0; i < count; ++i) { - BlockEx b; - b.bl.majorVersion = majorVersion; - b.bl.minorVersion = minorVersion; - b.bl.timestamp = 0; - blockchain.push_back(b); - upgradeDetector.blockPushed(); - } - } - - void popBlocks(BlockVector& blockchain, UpgradeDetector& upgradeDetector, size_t count) { - for (size_t i = 0; i < count; ++i) { - blockchain.pop_back(); - upgradeDetector.blockPopped(); - } - } - - TEST_F(UpgradeDetector_voting_init, handlesEmptyBlockchain) { - CryptoNote::Currency currency = createCurrency(); - BlockVector blocks; - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), UpgradeDetector::UNDEF_HEIGHT); - } - - TEST_F(UpgradeDetector_voting_init, votingIsNotCompleteDueShortBlockchain) { - CryptoNote::Currency currency = createCurrency(); - BlockVector blocks; - createBlocks(blocks, currency.upgradeVotingWindow() - 1, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), UpgradeDetector::UNDEF_HEIGHT); - } - - TEST_F(UpgradeDetector_voting_init, votingIsCompleteAfterMinimumNumberOfBlocks) { - CryptoNote::Currency currency = createCurrency(); - BlockVector blocks; - createBlocks(blocks, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), currency.upgradeVotingWindow() - 1); - } - - TEST_F(UpgradeDetector_voting_init, votingIsNotCompleteDueLackOfVoices) { - CryptoNote::Currency currency = createCurrency(); - BlockVector blocks; - createBlocks(blocks, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - createBlocks(blocks, currency.minNumberVotingBlocks() - 1, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), UpgradeDetector::UNDEF_HEIGHT); - } - - TEST_F(UpgradeDetector_voting_init, votingIsCompleteAfterMinimumNumberOfVoices) { - CryptoNote::Currency currency = createCurrency(); - BlockVector blocks; - createBlocks(blocks, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - createBlocks(blocks, currency.minNumberVotingBlocks(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), blocks.size() - 1); - } - - TEST_F(UpgradeDetector_voting_init, handlesOneCompleteUpgrade) { - CryptoNote::Currency currency = createCurrency(); - BlockVector blocks; - createBlocks(blocks, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - uint64_t upgradeHeight = currency.calculateUpgradeHeight(blocks.size() - 1); - createBlocks(blocks, upgradeHeight - blocks.size(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - // Upgrade is here - createBlocks(blocks, 1, BLOCK_MAJOR_VERSION_2, BLOCK_MINOR_VERSION_0); - - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), currency.upgradeVotingWindow() - 1); - ASSERT_EQ(upgradeDetector.upgradeHeight(), upgradeHeight); - } - - TEST_F(UpgradeDetector_voting_init, handlesAFewCompleteUpgrades) { - CryptoNote::Currency currency = createCurrency(); - const uint8_t BLOCK_V3 = BLOCK_MAJOR_VERSION_2 + 1; - const uint8_t BLOCK_V4 = BLOCK_MAJOR_VERSION_2 + 2; - - BlockVector blocks; - - createBlocks(blocks, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - uint64_t votingCompleteHeigntV2 = blocks.size() - 1; - uint64_t upgradeHeightV2 = currency.calculateUpgradeHeight(votingCompleteHeigntV2); - createBlocks(blocks, upgradeHeightV2 - blocks.size(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - // Upgrade to v2 is here - createBlocks(blocks, 1, BLOCK_MAJOR_VERSION_2, BLOCK_MINOR_VERSION_0); - - createBlocks(blocks, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_2, BLOCK_MINOR_VERSION_1); - uint64_t votingCompleteHeigntV3 = blocks.size() - 1; - uint64_t upgradeHeightV3 = currency.calculateUpgradeHeight(votingCompleteHeigntV3); - createBlocks(blocks, upgradeHeightV3 - blocks.size(), BLOCK_MAJOR_VERSION_2, BLOCK_MINOR_VERSION_0); - // Upgrade to v3 is here - createBlocks(blocks, 1, BLOCK_V3, BLOCK_MINOR_VERSION_0); - - createBlocks(blocks, currency.upgradeVotingWindow(), BLOCK_V3, BLOCK_MINOR_VERSION_1); - uint64_t votingCompleteHeigntV4 = blocks.size() - 1; - uint64_t upgradeHeightV4 = currency.calculateUpgradeHeight(votingCompleteHeigntV4); - createBlocks(blocks, upgradeHeightV4 - blocks.size(), BLOCK_V3, BLOCK_MINOR_VERSION_0); - // Upgrade to v4 is here - createBlocks(blocks, 1, BLOCK_V4, BLOCK_MINOR_VERSION_0); - - UpgradeDetector upgradeDetectorV2(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetectorV2.init()); - ASSERT_EQ(upgradeDetectorV2.votingCompleteHeight(), votingCompleteHeigntV2); - ASSERT_EQ(upgradeDetectorV2.upgradeHeight(), upgradeHeightV2); - - UpgradeDetector upgradeDetectorV3(currency, blocks, BLOCK_V3, logger); - ASSERT_TRUE(upgradeDetectorV3.init()); - ASSERT_EQ(upgradeDetectorV3.votingCompleteHeight(), votingCompleteHeigntV3); - ASSERT_EQ(upgradeDetectorV3.upgradeHeight(), upgradeHeightV3); - - UpgradeDetector upgradeDetectorV4(currency, blocks, BLOCK_V4, logger); - ASSERT_TRUE(upgradeDetectorV4.init()); - ASSERT_EQ(upgradeDetectorV4.votingCompleteHeight(), votingCompleteHeigntV4); - ASSERT_EQ(upgradeDetectorV4.upgradeHeight(), upgradeHeightV4); - } - - TEST_F(UpgradeDetector_upgradeHeight_init, handlesEmptyBlockchain) { - const uint64_t upgradeHeight = 17; - CryptoNote::Currency currency = createCurrency(upgradeHeight); - BlockVector blocks; - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.upgradeHeight(), upgradeHeight); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), UpgradeDetector::UNDEF_HEIGHT); - } - - TEST_F(UpgradeDetector_upgradeHeight_init, handlesBlockchainBeforeUpgrade) { - const uint64_t upgradeHeight = 17; - CryptoNote::Currency currency = createCurrency(upgradeHeight); - BlockVector blocks; - createBlocks(blocks, upgradeHeight, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.upgradeHeight(), upgradeHeight); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), UpgradeDetector::UNDEF_HEIGHT); - } - - TEST_F(UpgradeDetector_upgradeHeight_init, handlesBlockchainAtUpgrade) { - const uint64_t upgradeHeight = 17; - CryptoNote::Currency currency = createCurrency(upgradeHeight); - BlockVector blocks; - createBlocks(blocks, upgradeHeight + 1, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.upgradeHeight(), upgradeHeight); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), UpgradeDetector::UNDEF_HEIGHT); - } - - TEST_F(UpgradeDetector_upgradeHeight_init, handlesBlockchainAfterUpgrade) { - const uint64_t upgradeHeight = 17; - CryptoNote::Currency currency = createCurrency(upgradeHeight); - BlockVector blocks; - createBlocks(blocks, upgradeHeight + 1, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - createBlocks(blocks, 1, BLOCK_MAJOR_VERSION_2, BLOCK_MINOR_VERSION_0); - - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - ASSERT_EQ(upgradeDetector.upgradeHeight(), upgradeHeight); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), UpgradeDetector::UNDEF_HEIGHT); - } - - TEST_F(UpgradeDetector_voting, handlesVotingCompleteStartingEmptyBlockchain) { - CryptoNote::Currency currency = createCurrency(); - BlockVector blocks; - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - - createBlocks(blocks, upgradeDetector, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - createBlocks(blocks, upgradeDetector, currency.minNumberVotingBlocks(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), blocks.size() - 1); - } - - TEST_F(UpgradeDetector_voting, handlesVotingCompleteStartingNonEmptyBlockchain) { - CryptoNote::Currency currency = createCurrency(); - assert(currency.minNumberVotingBlocks() >= 2); - const uint64_t portion = currency.minNumberVotingBlocks() - currency.minNumberVotingBlocks() / 2; - - BlockVector blocks; - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - - createBlocks(blocks, upgradeDetector, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - createBlocks(blocks, upgradeDetector, currency.minNumberVotingBlocks() - portion, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - - ASSERT_TRUE(upgradeDetector.init()); - createBlocks(blocks, upgradeDetector, portion, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), blocks.size() - 1); - } - - TEST_F(UpgradeDetector_voting, handlesVotingCancelling) { - CryptoNote::Currency currency = createCurrency(); - BlockVector blocks; - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - - createBlocks(blocks, upgradeDetector, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - createBlocks(blocks, upgradeDetector, currency.minNumberVotingBlocks(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - uint64_t votingCompleteHeight = blocks.size() - 1; - uint64_t hadrforkHeight = currency.calculateUpgradeHeight(votingCompleteHeight); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), votingCompleteHeight); - - createBlocks(blocks, upgradeDetector, hadrforkHeight - votingCompleteHeight - 1, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), votingCompleteHeight); - - // Cancel voting - popBlocks(blocks, upgradeDetector, hadrforkHeight - votingCompleteHeight - 1); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), votingCompleteHeight); - popBlocks(blocks, upgradeDetector, 1); - ASSERT_EQ(upgradeDetector.votingCompleteHeight(), UpgradeDetector::UNDEF_HEIGHT); - } - - TEST_F(UpgradeDetector_voting, handlesVotingAndUpgradeCancelling) { - CryptoNote::Currency currency = createCurrency(); - BlockVector blocks; - UpgradeDetector upgradeDetector(currency, blocks, BLOCK_MAJOR_VERSION_2, logger); - ASSERT_TRUE(upgradeDetector.init()); - - createBlocks(blocks, upgradeDetector, currency.upgradeVotingWindow(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - createBlocks(blocks, upgradeDetector, currency.minNumberVotingBlocks(), BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_1); - uint64_t votingCompleteHeight = blocks.size() - 1; - uint64_t hadrforkHeight = currency.calculateUpgradeHeight(votingCompleteHeight); - ASSERT_EQ(votingCompleteHeight, upgradeDetector.votingCompleteHeight()); - - createBlocks(blocks, upgradeDetector, hadrforkHeight - votingCompleteHeight, BLOCK_MAJOR_VERSION_1, BLOCK_MINOR_VERSION_0); - createBlocks(blocks, upgradeDetector, 1, BLOCK_MAJOR_VERSION_2, BLOCK_MINOR_VERSION_0); - ASSERT_EQ(votingCompleteHeight, upgradeDetector.votingCompleteHeight()); - - // Cancel upgrade (pop block v2) - popBlocks(blocks, upgradeDetector, 1); - ASSERT_EQ(votingCompleteHeight, upgradeDetector.votingCompleteHeight()); - - // Pop blocks after voting - popBlocks(blocks, upgradeDetector, hadrforkHeight - votingCompleteHeight); - ASSERT_EQ(votingCompleteHeight, upgradeDetector.votingCompleteHeight()); - - // Cancel voting - popBlocks(blocks, upgradeDetector, 1); - ASSERT_EQ(UpgradeDetector::UNDEF_HEIGHT, upgradeDetector.votingCompleteHeight()); - } -} diff --git a/tests/UnitTests/TestWallet.cpp b/tests/UnitTests/TestWallet.cpp index 493a166110..31e47cb1f6 100755 --- a/tests/UnitTests/TestWallet.cpp +++ b/tests/UnitTests/TestWallet.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" @@ -3558,4 +3545,4 @@ TEST_F(WalletApi, checkBaseTransaction) { WalletTransfer transfer = alice.getTransactionTransfer(0, 0); EXPECT_LT(0, transfer.amount); EXPECT_EQ(tx.totalAmount, transfer.amount); -} \ No newline at end of file +} diff --git a/tests/UnitTests/TestWalletLegacy.cpp b/tests/UnitTests/TestWalletLegacy.cpp index 5ae8e1fef2..849fb6dd88 100644 --- a/tests/UnitTests/TestWalletLegacy.cpp +++ b/tests/UnitTests/TestWalletLegacy.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TestWalletService.cpp b/tests/UnitTests/TestWalletService.cpp index 2eef62857c..f9f150bd10 100644 --- a/tests/UnitTests/TestWalletService.cpp +++ b/tests/UnitTests/TestWalletService.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TransactionApi.cpp b/tests/UnitTests/TransactionApi.cpp index 23df3bd347..5ea708f94d 100644 --- a/tests/UnitTests/TransactionApi.cpp +++ b/tests/UnitTests/TransactionApi.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/UnitTests/TransactionApiHelpers.cpp b/tests/UnitTests/TransactionApiHelpers.cpp index e129a7e8aa..e8cc7053df 100755 --- a/tests/UnitTests/TransactionApiHelpers.cpp +++ b/tests/UnitTests/TransactionApiHelpers.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TransactionApiHelpers.h" #include "CryptoNoteCore/TransactionApi.h" diff --git a/tests/UnitTests/TransactionApiHelpers.h b/tests/UnitTests/TransactionApiHelpers.h index eaa435079e..562bb178be 100644 --- a/tests/UnitTests/TransactionApiHelpers.h +++ b/tests/UnitTests/TransactionApiHelpers.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/UnitTests/TransactionPool.cpp b/tests/UnitTests/TransactionPool.cpp index 1660dd6f66..eba96d74ee 100755 --- a/tests/UnitTests/TransactionPool.cpp +++ b/tests/UnitTests/TransactionPool.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" @@ -305,7 +292,7 @@ TEST_F(tx_pool, fillblock_same_fee) uint64_t median = 5000; ASSERT_TRUE(pool.fill_block_template(bl, median, textMaxCumulativeSize, 0, totalSize, txFee)); - ASSERT_TRUE(totalSize*100 < median*125); + ASSERT_TRUE(totalSize <= 2 * median); // now, check that the block is opimally filled // if fee is fixed, transactions with smaller number of outputs should be included @@ -365,7 +352,7 @@ TEST_F(tx_pool, fillblock_same_size) uint64_t median = 5000; ASSERT_TRUE(pool.fill_block_template(bl, median, textMaxCumulativeSize, 0, totalSize, txFee)); - ASSERT_TRUE(totalSize * 100 < median * 125); + ASSERT_TRUE(totalSize <= 2 * median); // check that fill_block_template prefers transactions with double fee @@ -698,7 +685,7 @@ namespace { const size_t TEST_FUSION_TX_COUNT_PER_BLOCK = 3; const size_t TEST_TX_COUNT_UP_TO_MEDIAN = 10; -const size_t TEST_MAX_TX_COUNT_PER_BLOCK = TEST_TX_COUNT_UP_TO_MEDIAN * 125 / 100; +const size_t TEST_MAX_TX_COUNT_PER_BLOCK = 2 * TEST_TX_COUNT_UP_TO_MEDIAN; const size_t TEST_TRANSACTION_SIZE = 2000; const size_t TEST_FUSION_TX_MAX_SIZE = TEST_FUSION_TX_COUNT_PER_BLOCK * TEST_TRANSACTION_SIZE; const size_t TEST_MINER_TX_BLOB_RESERVED_SIZE = 600; diff --git a/tests/UnitTests/TransfersObserver.h b/tests/UnitTests/TransfersObserver.h index 231a4df092..44152e7b8e 100644 --- a/tests/UnitTests/TransfersObserver.h +++ b/tests/UnitTests/TransfersObserver.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/UnitTests/UnitTestsUtils.h b/tests/UnitTests/UnitTestsUtils.h old mode 100755 new mode 100644 index 80fb5cacbb..55c4518353 --- a/tests/UnitTests/UnitTestsUtils.h +++ b/tests/UnitTests/UnitTestsUtils.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/UnitTests/main.cpp b/tests/UnitTests/main.cpp index b42fde001f..fe6626d197 100644 --- a/tests/UnitTests/main.cpp +++ b/tests/UnitTests/main.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "gtest/gtest.h" diff --git a/tests/crypto/crypto-ops-data.c b/tests/crypto/crypto-ops-data.c index 16d1cc4f6b..edf1af5a06 100644 --- a/tests/crypto/crypto-ops-data.c +++ b/tests/crypto/crypto-ops-data.c @@ -1,18 +1,5 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypto/crypto-ops-data.c" diff --git a/tests/crypto/crypto-ops.c b/tests/crypto/crypto-ops.c index ca2404e712..eb1c56160c 100644 --- a/tests/crypto/crypto-ops.c +++ b/tests/crypto/crypto-ops.c @@ -1,18 +1,5 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypto/crypto-ops.c" diff --git a/tests/crypto/crypto-tests.h b/tests/crypto/crypto-tests.h index 8084b22874..37753cae1d 100644 --- a/tests/crypto/crypto-tests.h +++ b/tests/crypto/crypto-tests.h @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once diff --git a/tests/crypto/crypto.cpp b/tests/crypto/crypto.cpp index 4217df5202..672e391665 100644 --- a/tests/crypto/crypto.cpp +++ b/tests/crypto/crypto.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypto/crypto.cpp" diff --git a/tests/crypto/hash.c b/tests/crypto/hash.c index d8bab89b66..128cbe4b01 100644 --- a/tests/crypto/hash.c +++ b/tests/crypto/hash.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypto/hash.c" #include "crypto/keccak.c" diff --git a/tests/crypto/main.cpp b/tests/crypto/main.cpp index 93c48d6e55..26f182ea33 100644 --- a/tests/crypto/main.cpp +++ b/tests/crypto/main.cpp @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include diff --git a/tests/crypto/random.c b/tests/crypto/random.c index 68448a5f50..c3fe9d305b 100644 --- a/tests/crypto/random.c +++ b/tests/crypto/random.c @@ -1,19 +1,6 @@ -// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers -// -// This file is part of Bytecoin. -// -// Bytecoin is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Bytecoin is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Bytecoin. If not, see . +// Copyright (c) 2011-2016 The Cryptonote developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypto/random.c" diff --git a/utils/.gitignore b/utils/.gitignore deleted file mode 100644 index 757fee31c9..0000000000 --- a/utils/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/.idea \ No newline at end of file diff --git a/utils/munin_plugins/alt_blocks_count b/utils/munin_plugins/alt_blocks_count deleted file mode 100644 index 38d091aed1..0000000000 --- a/utils/munin_plugins/alt_blocks_count +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -case $1 in - config) - cat <<'EOM' -graph_title alt_blocks_count -graph_vlabel alt_blocks_count -graph_category bytecoin -alt_blocks_count.label alt_blocks_count -EOM - exit 0;; -esac - -printf "alt_blocks_count.value " -/home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep alt_blocks_count | cut -d ' ' -f2 diff --git a/utils/munin_plugins/difficulty b/utils/munin_plugins/difficulty deleted file mode 100644 index b1319b16d6..0000000000 --- a/utils/munin_plugins/difficulty +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -case $1 in - config) - cat <<'EOM' -graph_title difficulty -graph_vlabel difficulty -graph_category bytecoin -difficulty.label difficulty -EOM - exit 0;; -esac - -printf "difficulty.value " -/home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep difficulty | cut -d ' ' -f2 diff --git a/utils/munin_plugins/grey_peerlist_size b/utils/munin_plugins/grey_peerlist_size deleted file mode 100644 index aaca8cf449..0000000000 --- a/utils/munin_plugins/grey_peerlist_size +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -case $1 in - config) - cat <<'EOM' -graph_title grey_peerlist_size -graph_vlabel grey_peerlist_size -graph_category bytecoin -grey_peerlist_size.label grey_peerlist_size -EOM - exit 0;; -esac - -printf "grey_peerlist_size.value " -/home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep grey_peerlist_size | cut -d ' ' -f2 diff --git a/utils/munin_plugins/height b/utils/munin_plugins/height deleted file mode 100644 index d9f9aabd03..0000000000 --- a/utils/munin_plugins/height +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -case $1 in - config) - cat <<'EOM' -graph_title Height -graph_vlabel height -graph_category bytecoin -height.label height -height.type COUNTER -EOM - exit 0;; -esac - -printf "height.value " -/home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep height | cut -d ' ' -f2 diff --git a/utils/munin_plugins/incoming_connections_count b/utils/munin_plugins/incoming_connections_count deleted file mode 100644 index 9078bc2d94..0000000000 --- a/utils/munin_plugins/incoming_connections_count +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -case $1 in - config) - cat <<'EOM' -graph_title incoming_connections_count -graph_vlabel incoming_connections_count -graph_category bytecoin -incoming_connections_count.label incoming_connections_count -EOM - exit 0;; -esac - -printf "incoming_connections_count.value " -/home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep incoming_connections_count | cut -d ' ' -f2 diff --git a/utils/munin_plugins/outgoing_connections_count b/utils/munin_plugins/outgoing_connections_count deleted file mode 100644 index aeab9d73d7..0000000000 --- a/utils/munin_plugins/outgoing_connections_count +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -case $1 in - config) - cat <<'EOM' -graph_title outgoing_connections_count -graph_vlabel outgoing_connections_count -graph_category bytecoin -outgoing_connections_count.label outgoing_connections_count -EOM - exit 0;; -esac - -printf "outgoing_connections_count.value " -/home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep outgoing_connections_count | cut -d ' ' -f2 diff --git a/utils/munin_plugins/tx_count b/utils/munin_plugins/tx_count deleted file mode 100644 index 7e9fa7a40a..0000000000 --- a/utils/munin_plugins/tx_count +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -case $1 in - config) - cat <<'EOM' -graph_title tx_count -graph_vlabel tx_count -graph_category bytecoin -tx_count.label tx_count -tx_count.type COUNTER -EOM - exit 0;; -esac - -printf "tx_count.value " -/home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep tx_count| cut -d ' ' -f2 diff --git a/utils/munin_plugins/tx_pool_size b/utils/munin_plugins/tx_pool_size deleted file mode 100644 index 0578b9090d..0000000000 --- a/utils/munin_plugins/tx_pool_size +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -case $1 in - config) - cat <<'EOM' -graph_title tx_pool_size -graph_vlabel tx_pool_size -graph_category bytecoin -tx_pool_size.label tx_pool_size -EOM - exit 0;; -esac - -printf "tx_pool_size.value " -/home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep tx_pool_size| cut -d ' ' -f2 diff --git a/utils/munin_plugins/white_peerlist_size b/utils/munin_plugins/white_peerlist_size deleted file mode 100644 index 04524681ab..0000000000 --- a/utils/munin_plugins/white_peerlist_size +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -case $1 in - config) - cat <<'EOM' -graph_title white_peerlist_size -graph_vlabel white_peerlist_size -graph_category bytecoin -white_peerlist_size.label white_peerlist_size -EOM - exit 0;; -esac - -printf "white_peerlist_size.value " -/home/user/bytecoin_bin/connectivity_tool --ip=127.0.0.1 --rpc_port=8081 --timeout=1000 --rpc_get_daemon_info | grep white_peerlist_size | cut -d ' ' -f2