Giter VIP home page Giter VIP logo

monero-project / monero Goto Github PK

View Code? Open in Web Editor NEW
8.6K 495.0 3.0K 185.22 MB

Monero: the secure, private, untraceable cryptocurrency

Home Page: https://getmonero.org

License: Other

CMake 2.05% C++ 81.89% C 11.67% Shell 0.42% Python 2.96% Makefile 0.49% q 0.08% Dockerfile 0.01% Assembly 0.39% Ruby 0.01% Awk 0.02%
c-plus-plus monero cryptocurrency cmake security privacy blockchain p2p cryptonote cryptography

monero's Introduction

Monero

Copyright (c) 2014-2023, The Monero Project Portions Copyright (c) 2012-2013 The Cryptonote developers.

Table of Contents

Development resources

  • Web: getmonero.org
  • Mail: [email protected]
  • GitHub: https://github.com/monero-project/monero
  • IRC: #monero-dev on Libera
  • It is HIGHLY recommended that you join the #monero-dev IRC channel if you are developing software that uses Monero. Due to the nature of this open source software project, joining this channel and idling is the best way to stay updated on best practices and new developments in the Monero ecosystem. All you need to do is join the IRC channel and idle to stay updated with the latest in Monero development. If you do not, you risk wasting resources on developing integrations that are not compatible with the Monero network. The Monero core team and community continuously make efforts to communicate updates, developments, and documentation via other platforms – but for the best information, you need to talk to other Monero developers, and they are on IRC. #monero-dev is about Monero development, not getting help about using Monero, or help about development of other software, including yours, unless it also pertains to Monero code itself. For these cases, checkout #monero.

Vulnerability response

Research

The Monero Research Lab is an open forum where the community coordinates research into Monero cryptography, protocols, fungibility, analysis, and more. We welcome collaboration and contributions from outside researchers! Because not all Lab work and publications are distributed as traditional preprints or articles, they may be easy to miss if you are conducting literature reviews for your own Monero research. You are encouraged to get in touch with the Monero research community if you have questions, wish to collaborate, or would like guidance to help avoid unnecessarily duplicating earlier or known work.

The Monero research community is available on IRC in #monero-research-lab on Libera, which is also accessible via Matrix.

Announcements

  • You can subscribe to an announcement listserv to get critical announcements from the Monero core team. The announcement list can be very helpful for knowing when software updates are needed.

Translations

The CLI wallet is available in different languages. If you want to help translate it, see our self-hosted localization platform, Weblate, on translate.getmonero.org. Every translation must be uploaded on the platform, pull requests directly editing the code in this repository will be closed. If you need help with Weblate, you can find a guide with screenshots here.  

If you need help/support/info about translations, contact the localization workgroup. You can find the complete list of contacts on the repository of the workgroup: monero-translations.

Coverage

Type Status
Coverity Coverity Status
OSS Fuzz Fuzzing Status
Coveralls Coveralls Status
License License

Introduction

Monero is a private, secure, untraceable, decentralised digital currency. You are your bank, you control your funds, and nobody can trace your transfers unless you allow them to do so.

Privacy: Monero uses a cryptographically sound system to allow you to send and receive funds without your transactions being easily revealed on the blockchain (the ledger of transactions that everyone has). This ensures that your purchases, receipts, and all transfers remain private by default.

Security: Using the power of a distributed peer-to-peer consensus network, every transaction on the network is cryptographically secured. Individual wallets have a 25-word mnemonic seed that is only displayed once and can be written down to backup the wallet. Wallet files should be encrypted with a strong passphrase to ensure they are useless if ever stolen.

Untraceability: By taking advantage of ring signatures, a special property of a certain type of cryptography, Monero is able to ensure that transactions are not only untraceable but have an optional measure of ambiguity that ensures that transactions cannot easily be tied back to an individual user or computer.

Decentralization: The utility of Monero depends on its decentralised peer-to-peer consensus network - anyone should be able to run the monero software, validate the integrity of the blockchain, and participate in all aspects of the monero network using consumer-grade commodity hardware. Decentralization of the monero network is maintained by software development that minimizes the costs of running the monero software and inhibits the proliferation of specialized, non-commodity hardware.

About this project

This is the core implementation of Monero. It is open source and completely free to use without restrictions, except for those specified in the license agreement below. There are no restrictions on anyone creating an alternative implementation of Monero that uses the protocol and network in a compatible manner.

As with many development projects, the repository on GitHub is considered to be the "staging" area for the latest changes. Before changes are merged into that branch on the main repository, they are tested by individual developers in their own branches, submitted as a pull request, and then subsequently tested by contributors who focus on testing and code reviews. That having been said, the repository should be carefully considered before using it in a production environment, unless there is a patch in the repository for a particular show-stopping issue you are experiencing. It is generally a better idea to use a tagged release for stability.

Anyone is welcome to contribute to Monero's codebase! If you have a fix or code change, feel free to submit it as a pull request directly to the "master" branch. In cases where the change is relatively small or does not affect other parts of the codebase, it may be merged in immediately by any one of the collaborators. On the other hand, if the change is particularly large or complex, it is expected that it will be discussed at length either well in advance of the pull request being submitted, or even directly on the pull request.

Supporting the project

Monero is a 100% community-sponsored endeavor. If you want to join our efforts, the easiest thing you can do is support the project financially. Both Monero and Bitcoin donations can be made to donate.getmonero.org if using a client that supports the OpenAlias standard. Alternatively, you can send XMR to the Monero donation address via the donate command (type help in the command-line wallet for details).

The Monero donation address is:
888tNkZrPN6JsEgekjMnABU4TBzc2Dt29EPAvkRxbANsAnjyPbb3iQ1YBRk1UXcdRsiKc9dhwMVgN5S9cQUiyoogDavup3H
Viewkey:
f359631075708155cc3d92a32b75a7d02a5dcf27756707b47a2b31b21c389501
Base address for restoring with address and viewkey: 44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A

The Bitcoin donation address is:
1KTexdemPdxSBcG55heUuTjDRYqbC5ZL8H

Core development funding and/or some supporting services are also graciously provided by sponsors:

There are also several mining pools that kindly donate a portion of their fees, a list of them can be found on our Bitcointalk post.

License

See LICENSE.

Contributing

If you want to help out, see CONTRIBUTING for a set of guidelines.

Scheduled software/network upgrades

Monero uses a scheduled software/network upgrade (hard fork) mechanism to implement new features into the Monero software and network. This means that users of Monero (end users and service providers) should run current versions and upgrade their software when new releases are available. Software upgrades occur when new features are developed and implemented in the codebase. Network upgrades occur in tandem with software upgrades that modify the consensus rules of the Monero network. The required software for network upgrades will be available prior to the scheduled network upgrade date. Please check the repository prior to this date for the proper Monero software version. Below is the historical schedule and the projected schedule for the next upgrade.

Dates are provided in the format YYYY-MM-DD. The "Minimum" is the software version that follows the new consensus rules. The "Recommended" version may include bug fixes and other new features that do not affect the consensus rules.

Software upgrade block height Date Fork version Minimum Monero version Recommended Monero version Details
1009827 2016-03-22 v2 v0.9.4 v0.9.4 Allow only >= ringsize 3, blocktime = 120 seconds, fee-free blocksize 60 kb
1141317 2016-09-21 v3 v0.9.4 v0.10.0 Splits coinbase into denominations
1220516 2017-01-05 v4 v0.10.1 v0.10.2.1 Allow normal and RingCT transactions
1288616 2017-04-15 v5 v0.10.3.0 v0.10.3.1 Adjusted minimum blocksize and fee algorithm
1400000 2017-09-16 v6 v0.11.0.0 v0.11.0.0 Allow only RingCT transactions, allow only >= ringsize 5
1546000 2018-04-06 v7 v0.12.0.0 v0.12.3.0 Cryptonight variant 1, ringsize >= 7, sorted inputs
1685555 2018-10-18 v8 v0.13.0.0 v0.13.0.4 max transaction size at half the penalty free block size, bulletproofs enabled, cryptonight variant 2, fixed ringsize 11
1686275 2018-10-19 v9 v0.13.0.0 v0.13.0.4 bulletproofs required
1788000 2019-03-09 v10 v0.14.0.0 v0.14.1.2 New PoW based on Cryptonight-R, new block weight algorithm, slightly more efficient RingCT format
1788720 2019-03-10 v11 v0.14.0.0 v0.14.1.2 forbid old RingCT transaction format
1978433 2019-11-30 v12 v0.15.0.0 v0.16.0.0 New PoW based on RandomX, only allow >= 2 outputs, change to the block median used to calculate penalty, v1 coinbases are forbidden, rct sigs in coinbase forbidden, 10 block lock time for incoming outputs
2210000 2020-10-17 v13 v0.17.0.0 v0.17.3.2 New CLSAG transaction format
2210720 2020-10-18 v14 v0.17.1.1 v0.17.3.2 forbid old MLSAG transaction format
2688888 2022-08-13 v15 v0.18.0.0 v0.18.1.2 ringsize = 16, bulletproofs+, view tags, adjusted dynamic block weight algorithm
2689608 2022-08-14 v16 v0.18.0.0 v0.18.1.2 forbid old v14 transaction format
XXXXXXX XXX-XX-XX XXX vX.XX.X.X vX.XX.X.X XXX

X's indicate that these details have not been determined as of commit date.

* indicates estimate as of commit date

Release staging schedule and protocol

Approximately three months prior to a scheduled software upgrade, a branch from master will be created with the new release version tag. Pull requests that address bugs should then be made to both master and the new release branch. Pull requests that require extensive review and testing (generally, optimizations and new features) should not be made to the release branch.

Compiling Monero from source

Dependencies

The following table summarizes the tools and libraries required to build. A few of the libraries are also included in this repository (marked as "Vendored"). By default, the build uses the library installed on the system and ignores the vendored sources. However, if no library is found installed on the system, then the vendored source will be built and used. The vendored sources are also used for statically-linked builds because distribution packages often include only shared library binaries (.so) but not static library archives (.a).

Dep Min. version Vendored Debian/Ubuntu pkg Arch pkg Void pkg Fedora pkg Optional Purpose
GCC 7 NO build-essential base-devel base-devel gcc NO
CMake 3.5 NO cmake cmake cmake cmake NO
pkg-config any NO pkg-config base-devel base-devel pkgconf NO
Boost 1.58 NO libboost-all-dev boost boost-devel boost-devel NO C++ libraries
OpenSSL basically any NO libssl-dev openssl openssl-devel openssl-devel NO sha256 sum
libzmq 4.2.0 NO libzmq3-dev zeromq zeromq-devel zeromq-devel NO ZeroMQ library
OpenPGM ? NO libpgm-dev libpgm openpgm-devel NO For ZeroMQ
libnorm[2] ? NO libnorm-dev YES For ZeroMQ
libunbound 1.4.16 NO libunbound-dev unbound unbound-devel unbound-devel NO DNS resolver
libsodium ? NO libsodium-dev libsodium libsodium-devel libsodium-devel NO cryptography
libunwind any NO libunwind8-dev libunwind libunwind-devel libunwind-devel YES Stack traces
liblzma any NO liblzma-dev xz liblzma-devel xz-devel YES For libunwind
libreadline 6.3.0 NO libreadline6-dev readline readline-devel readline-devel YES Input editing
expat 1.1 NO libexpat1-dev expat expat-devel expat-devel YES XML parsing
GTest 1.5 YES libgtest-dev[1] gtest gtest-devel gtest-devel YES Test suite
ccache any NO ccache ccache ccache ccache YES Compil. cache
Doxygen any NO doxygen doxygen doxygen doxygen YES Documentation
Graphviz any NO graphviz graphviz graphviz graphviz YES Documentation
lrelease ? NO qttools5-dev-tools qt5-tools qt5-tools qt5-linguist YES Translations
libhidapi ? NO libhidapi-dev hidapi hidapi-devel hidapi-devel YES Hardware wallet
libusb ? NO libusb-1.0-0-dev libusb libusb-devel libusbx-devel YES Hardware wallet
libprotobuf ? NO libprotobuf-dev protobuf protobuf-devel protobuf-devel YES Hardware wallet
protoc ? NO protobuf-compiler protobuf protobuf protobuf-compiler YES Hardware wallet
libudev ? NO libudev-dev systemd eudev-libudev-devel systemd-devel YES Hardware wallet

[1] On Debian/Ubuntu libgtest-dev only includes sources and headers. You must build the library binary manually. This can be done with the following command sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake . && sudo make then:

  • on Debian: sudo mv libg* /usr/lib/
  • on Ubuntu: sudo mv lib/libg* /usr/lib/

[2] libnorm-dev is needed if your zmq library was built with libnorm, and not needed otherwise

Install all dependencies at once on Debian/Ubuntu:

sudo apt update && sudo apt install build-essential cmake pkg-config libssl-dev libzmq3-dev libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libexpat1-dev libpgm-dev qttools5-dev-tools libhidapi-dev libusb-1.0-0-dev libprotobuf-dev protobuf-compiler libudev-dev libboost-chrono-dev libboost-date-time-dev libboost-filesystem-dev libboost-locale-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev libboost-system-dev libboost-thread-dev python3 ccache doxygen graphviz

Install all dependencies at once on Arch:

sudo pacman -Syu --needed base-devel cmake boost openssl zeromq libpgm unbound libsodium libunwind xz readline expat gtest python3 ccache doxygen graphviz qt5-tools hidapi libusb protobuf systemd

Install all dependencies at once on Fedora:

sudo dnf install gcc gcc-c++ cmake pkgconf boost-devel openssl-devel zeromq-devel openpgm-devel unbound-devel libsodium-devel libunwind-devel xz-devel readline-devel expat-devel gtest-devel ccache doxygen graphviz qt5-linguist hidapi-devel libusbx-devel protobuf-devel protobuf-compiler systemd-devel

Install all dependencies at once on openSUSE:

sudo zypper ref && sudo zypper in cppzmq-devel libboost_chrono-devel libboost_date_time-devel libboost_filesystem-devel libboost_locale-devel libboost_program_options-devel libboost_regex-devel libboost_serialization-devel libboost_system-devel libboost_thread-devel libexpat-devel libminiupnpc-devel libsodium-devel libunwind-devel unbound-devel cmake doxygen ccache fdupes gcc-c++ libevent-devel libopenssl-devel pkgconf-pkg-config readline-devel xz-devel libqt5-qttools-devel patterns-devel-C-C++-devel_C_C++

Install all dependencies at once on macOS with the provided Brewfile:

brew update && brew bundle --file=contrib/brew/Brewfile

FreeBSD 12.1 one-liner required to build dependencies:

pkg install git gmake cmake pkgconf boost-libs libzmq4 libsodium unbound

Cloning the repository

Clone recursively to pull-in needed submodule(s):

git clone --recursive https://github.com/monero-project/monero

If you already have a repo cloned, initialize and update:

cd monero && git submodule init && git submodule update

Note: If there are submodule differences between branches, you may need to use git submodule sync && git submodule update after changing branches to build successfully.

Build instructions

Monero uses the CMake build system and a top-level Makefile that invokes cmake commands as needed.

On Linux and macOS

  • Install the dependencies

  • Change to the root of the source code directory, change to the most recent release branch, and build:

    cd monero
    git checkout release-v0.18
    make

    Optional: If your machine has several cores and enough memory, enable parallel build by running make -j<number of threads> instead of make. For this to be worthwhile, the machine should have one core and about 2GB of RAM available per thread.

    Note: The instructions above will compile the most stable release of the Monero software. If you would like to use and test the most recent software, use git checkout master. The master branch may contain updates that are both unstable and incompatible with release software, though testing is always encouraged.

  • The resulting executables can be found in build/release/bin

  • Add PATH="$PATH:$HOME/monero/build/release/bin" to .profile

  • Run Monero with monerod --detach

  • Optional: build and run the test suite to verify the binaries:

    make release-test

    NOTE: core_tests test may take a few hours to complete.

  • Optional: to build binaries suitable for debugging:

    make debug
  • Optional: to build statically-linked binaries:

    make release-static

Dependencies need to be built with -fPIC. Static libraries usually aren't, so you may have to build them yourself with -fPIC. Refer to their documentation for how to build them.

  • Optional: build documentation in doc/html (omit HAVE_DOT=YES if graphviz is not installed):

    HAVE_DOT=YES doxygen Doxyfile
  • Optional: use ccache not to rebuild translation units, that haven't really changed. Monero's CMakeLists.txt file automatically handles it

    sudo apt install ccache

On the Raspberry Pi

Tested on a Raspberry Pi Zero with a clean install of minimal Raspbian Stretch (2017-09-07 or later) from https://www.raspberrypi.org/downloads/raspbian/. If you are using Raspian Jessie, please see note in the following section.

  • apt-get update && apt-get upgrade to install all of the latest software

  • Install the dependencies for Monero from the 'Debian' column in the table above.

  • Increase the system swap size:

    sudo /etc/init.d/dphys-swapfile stop  
    sudo nano /etc/dphys-swapfile  
    CONF_SWAPSIZE=2048
    sudo /etc/init.d/dphys-swapfile start
  • If using an external hard disk without an external power supply, ensure it gets enough power to avoid hardware issues when syncing, by adding the line "max_usb_current=1" to /boot/config.txt

  • Clone Monero and checkout the most recent release version:

    git clone https://github.com/monero-project/monero.git
    cd monero
    git checkout v0.18.1.2
  • Build:

    USE_SINGLE_BUILDDIR=1 make release
  • Wait 4-6 hours

  • The resulting executables can be found in build/release/bin

  • Add export PATH="$PATH:$HOME/monero/build/release/bin" to $HOME/.profile

  • Run source $HOME/.profile

  • Run Monero with monerod --detach

  • You may wish to reduce the size of the swap file after the build has finished, and delete the boost directory from your home directory

Note for Raspbian Jessie users:

If you are using the older Raspbian Jessie image, compiling Monero is a bit more complicated. The version of Boost available in the Debian Jessie repositories is too old to use with Monero, and thus you must compile a newer version yourself. The following explains the extra steps and has been tested on a Raspberry Pi 2 with a clean install of minimal Raspbian Jessie.

  • As before, apt-get update && apt-get upgrade to install all of the latest software, and increase the system swap size

    sudo /etc/init.d/dphys-swapfile stop
    sudo nano /etc/dphys-swapfile
    CONF_SWAPSIZE=2048
    sudo /etc/init.d/dphys-swapfile start
  • Then, install the dependencies for Monero except for libunwind and libboost-all-dev

  • Install the latest version of boost (this may first require invoking apt-get remove --purge libboost*-dev to remove a previous version if you're not using a clean install):

    cd
    wget https://sourceforge.net/projects/boost/files/boost/1.72.0/boost_1_72_0.tar.bz2
    tar xvfo boost_1_72_0.tar.bz2
    cd boost_1_72_0
    ./bootstrap.sh
    sudo ./b2
  • Wait ~8 hours

    sudo ./bjam cxxflags=-fPIC cflags=-fPIC -a install
  • Wait ~4 hours

  • From here, follow the general Raspberry Pi instructions from the "Clone Monero and checkout most recent release version" step.

On Windows:

Binaries for Windows are built on Windows using the MinGW toolchain within MSYS2 environment. The MSYS2 environment emulates a POSIX system. The toolchain runs within the environment and cross-compiles binaries that can run outside of the environment as a regular Windows application.

Preparing the build environment

  • Download and install the MSYS2 installer, either the 64-bit or the 32-bit package, depending on your system.

  • Open the MSYS shell via the MSYS2 Shell shortcut

  • Update packages using pacman:

    pacman -Syu
  • Exit the MSYS shell using Alt+F4

  • Edit the properties for the MSYS2 Shell shortcut changing "msys2_shell.bat" to "msys2_shell.cmd -mingw64" for 64-bit builds or "msys2_shell.cmd -mingw32" for 32-bit builds

  • Restart MSYS shell via modified shortcut and update packages again using pacman:

    pacman -Syu
  • Install dependencies:

    To build for 64-bit Windows:

    pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-unbound

    To build for 32-bit Windows:

    pacman -S mingw-w64-i686-toolchain make mingw-w64-i686-cmake mingw-w64-i686-boost mingw-w64-i686-openssl mingw-w64-i686-zeromq mingw-w64-i686-libsodium mingw-w64-i686-hidapi mingw-w64-i686-unbound
  • Open the MingW shell via MinGW-w64-Win64 Shell shortcut on 64-bit Windows or MinGW-w64-Win64 Shell shortcut on 32-bit Windows. Note that if you are running 64-bit Windows, you will have both 64-bit and 32-bit MinGW shells.

Cloning

  • To git clone, run:

    git clone --recursive https://github.com/monero-project/monero.git

Building

  • Change to the cloned directory, run:

    cd monero
  • If you would like a specific version/tag, do a git checkout for that version. eg. 'v0.18.1.2'. If you don't care about the version and just want binaries from master, skip this step:

    git checkout v0.18.1.2
  • If you are on a 64-bit system, run:

    make release-static-win64
  • If you are on a 32-bit system, run:

    make release-static-win32
  • The resulting executables can be found in build/release/bin

  • Optional: to build Windows binaries suitable for debugging on a 64-bit system, run:

    make debug-static-win64
  • Optional: to build Windows binaries suitable for debugging on a 32-bit system, run:

    make debug-static-win32
  • The resulting executables can be found in build/debug/bin

On FreeBSD:

The project can be built from scratch by following instructions for Linux above(but use gmake instead of make). If you are running Monero in a jail, you need to add sysvsem="new" to your jail configuration, otherwise lmdb will throw the error message: Failed to open lmdb environment: Function not implemented.

Monero is also available as a port or package as monero-cli.

On OpenBSD:

You will need to add a few packages to your system. pkg_add cmake gmake zeromq libiconv boost libunbound.

The doxygen and graphviz packages are optional and require the xbase set. Running the test suite also requires py3-requests package.

Build monero: gmake

Note: you may encounter the following error when compiling the latest version of Monero as a normal user:

LLVM ERROR: out of memory
c++: error: unable to execute command: Abort trap (core dumped)

Then you need to increase the data ulimit size to 2GB and try again: ulimit -d 2000000

On NetBSD:

Check that the dependencies are present: pkg_info -c libexecinfo boost-headers boost-libs protobuf readline libusb1 zeromq git-base pkgconf gmake cmake | more, and install any that are reported missing, using pkg_add or from your pkgsrc tree. Readline is optional but worth having.

Third-party dependencies are usually under /usr/pkg/, but if you have a custom setup, adjust the "/usr/pkg" (below) accordingly.

Clone the monero repository recursively and checkout the most recent release as described above. Then build monero: gmake BOOST_ROOT=/usr/pkg LDFLAGS="-Wl,-R/usr/pkg/lib" release. The resulting executables can be found in build/NetBSD/[Release version]/Release/bin/.

On Solaris:

The default Solaris linker can't be used, you have to install GNU ld, then run cmake manually with the path to your copy of GNU ld:

mkdir -p build/release
cd build/release
cmake -DCMAKE_LINKER=/path/to/ld -D CMAKE_BUILD_TYPE=Release ../..
cd ../..

Then you can run make as usual.

Building portable statically linked binaries

By default, in either dynamically or statically linked builds, binaries target the specific host processor on which the build happens and are not portable to other processors. Portable binaries can be built using the following targets:

  • make release-static-linux-x86_64 builds binaries on Linux on x86_64 portable across POSIX systems on x86_64 processors
  • make release-static-linux-i686 builds binaries on Linux on x86_64 or i686 portable across POSIX systems on i686 processors
  • make release-static-linux-armv8 builds binaries on Linux portable across POSIX systems on armv8 processors
  • make release-static-linux-armv7 builds binaries on Linux portable across POSIX systems on armv7 processors
  • make release-static-linux-armv6 builds binaries on Linux portable across POSIX systems on armv6 processors
  • make release-static-win64 builds binaries on 64-bit Windows portable across 64-bit Windows systems
  • make release-static-win32 builds binaries on 64-bit or 32-bit Windows portable across 32-bit Windows systems

Cross Compiling

You can also cross-compile static binaries on Linux for Windows and macOS with the depends system.

  • make depends target=x86_64-linux-gnu for 64-bit linux binaries.
  • make depends target=x86_64-w64-mingw32 for 64-bit windows binaries.
    • Requires: python3 g++-mingw-w64-x86-64 wine1.6 bc
    • You also need to run:
      update-alternatives --set x86_64-w64-mingw32-g++ x86_64-w64-mingw32-g++-posix && update-alternatives --set x86_64-w64-mingw32-gcc x86_64-w64-mingw32-gcc-posix
  • make depends target=x86_64-apple-darwin for macOS binaries.
    • Requires: cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev
  • make depends target=i686-linux-gnu for 32-bit linux binaries.
    • Requires: g++-multilib bc
  • make depends target=i686-w64-mingw32 for 32-bit windows binaries.
    • Requires: python3 g++-mingw-w64-i686
  • make depends target=arm-linux-gnueabihf for armv7 binaries.
    • Requires: g++-arm-linux-gnueabihf
  • make depends target=aarch64-linux-gnu for armv8 binaries.
    • Requires: g++-aarch64-linux-gnu
  • make depends target=riscv64-linux-gnu for RISC V 64 bit binaries.
    • Requires: g++-riscv64-linux-gnu
  • make depends target=x86_64-unknown-freebsd for freebsd binaries.
    • Requires: clang-8
  • make depends target=arm-linux-android for 32bit android binaries
  • make depends target=aarch64-linux-android for 64bit android binaries

The required packages are the names for each toolchain on apt. Depending on your distro, they may have different names. The depends system has been tested on Ubuntu 18.04 and 20.04.

Using depends might also be easier to compile Monero on Windows than using MSYS. Activate Windows Subsystem for Linux (WSL) with a distro (for example Ubuntu), install the apt build-essentials and follow the depends steps as depicted above.

The produced binaries still link libc dynamically. If the binary is compiled on a current distribution, it might not run on an older distribution with an older installation of libc. Passing -DBACKCOMPAT=ON to cmake will make sure that the binary will run on systems having at least libc version 2.17.

Trezor hardware wallet support

If you have an issue with building Monero with Trezor support, you can disable it by setting USE_DEVICE_TREZOR=OFF, e.g.,

USE_DEVICE_TREZOR=OFF make release

For more information, please check out Trezor src/device_trezor/README.md.

Gitian builds

See contrib/gitian/README.md.

Installing Monero from a package

DISCLAIMER: These packages are not part of this repository or maintained by this project's contributors, and as such, do not go through the same review process to ensure their trustworthiness and security.

Packages are available for

More info and versions in the Debian package tracker.

  • Arch Linux (via Community packages):

    sudo pacman -S monero
  • NixOS:

    nix-shell -p monero-cli
  • GuixSD

    guix package -i monero
  • Gentoo Monero overlay

    emerge --noreplace eselect-repository
    eselect repository enable monero
    emaint sync -r monero
    echo '*/*::monero ~amd64' >> /etc/portage/package.accept_keywords
    emerge net-p2p/monero
  • Alpine Linux:

    apk add monero
  • macOS (homebrew)

    brew install monero
  • Docker

    # Build using all available cores
    docker build -t monero .
    
    # or build using a specific number of cores (reduce RAM requirement)
    docker build --build-arg NPROC=1 -t monero .
    
    # either run in foreground
    docker run -it -v /monero/chain:/home/monero/.bitmonero -v /monero/wallet:/wallet -p 18080:18080 monero
    
    # or in background
    docker run -it -d -v /monero/chain:/home/monero/.bitmonero -v /monero/wallet:/wallet -p 18080:18080 monero
  • The build needs 3 GB space.

  • Wait one hour or more

Packaging for your favorite distribution would be a welcome contribution!

Running monerod

The build places the binary in bin/ sub-directory within the build directory from which cmake was invoked (repository root by default). To run in the foreground:

./bin/monerod

To list all available options, run ./bin/monerod --help. Options can be specified either on the command line or in a configuration file passed by the --config-file argument. To specify an option in the configuration file, add a line with the syntax argumentname=value, where argumentname is the name of the argument without the leading dashes, for example, log-level=1.

To run in background:

./bin/monerod --log-file monerod.log --detach

To run as a systemd service, copy monerod.service to /etc/systemd/system/ and monerod.conf to /etc/. The example service assumes that the user monero exists and its home is the data directory specified in the example config.

If you're on Mac, you may need to add the --max-concurrency 1 option to monero-wallet-cli, and possibly monerod, if you get crashes refreshing.

Internationalization

See README.i18n.md.

Using Tor

There is a new, still experimental, integration with Tor. The feature allows connecting over IPv4 and Tor simultaneously - IPv4 is used for relaying blocks and relaying transactions received by peers whereas Tor is used solely for relaying transactions received over local RPC. This provides privacy and better protection against surrounding node (sybil) attacks.

While Monero isn't made to integrate with Tor, it can be used wrapped with torsocks, by setting the following configuration parameters and environment variables:

  • --p2p-bind-ip 127.0.0.1 on the command line or p2p-bind-ip=127.0.0.1 in monerod.conf to disable listening for connections on external interfaces.
  • --no-igd on the command line or no-igd=1 in monerod.conf to disable IGD (UPnP port forwarding negotiation), which is pointless with Tor.
  • DNS_PUBLIC=tcp or DNS_PUBLIC=tcp://x.x.x.x where x.x.x.x is the IP of the desired DNS server, for DNS requests to go over TCP, so that they are routed through Tor. When IP is not specified, monerod uses the default list of servers defined in src/common/dns_utils.cpp.
  • TORSOCKS_ALLOW_INBOUND=1 to tell torsocks to allow monerod to bind to interfaces to accept connections from the wallet. On some Linux systems, torsocks allows binding to localhost by default, so setting this variable is only necessary to allow binding to local LAN/VPN interfaces to allow wallets to connect from remote hosts. On other systems, it may be needed for local wallets as well.
  • Do NOT pass --detach when running through torsocks with systemd, (see utils/systemd/monerod.service for details).
  • If you use the wallet with a Tor daemon via the loopback IP (eg, 127.0.0.1:9050), then use --untrusted-daemon unless it is your own hidden service.

Example command line to start monerod through Tor:

DNS_PUBLIC=tcp torsocks monerod --p2p-bind-ip 127.0.0.1 --no-igd

A helper script is in contrib/tor/monero-over-tor.sh. It assumes Tor is installed already, and runs Tor and Monero with the right configuration.

Using Tor on Tails

TAILS ships with a very restrictive set of firewall rules. Therefore, you need to add a rule to allow this connection too, in addition to telling torsocks to allow inbound connections. Full example:

sudo iptables -I OUTPUT 2 -p tcp -d 127.0.0.1 -m tcp --dport 18081 -j ACCEPT
DNS_PUBLIC=tcp torsocks ./monerod --p2p-bind-ip 127.0.0.1 --no-igd --rpc-bind-ip 127.0.0.1 \
    --data-dir /home/amnesia/Persistent/your/directory/to/the/blockchain

Pruning

As of April 2022, the full Monero blockchain file is about 130 GB. One can store a pruned blockchain, which is about 45 GB. A pruned blockchain can only serve part of the historical chain data to other peers, but is otherwise identical in functionality to the full blockchain. To use a pruned blockchain, it is best to start the initial sync with --prune-blockchain. However, it is also possible to prune an existing blockchain using the monero-blockchain-prune tool or using the --prune-blockchain monerod option with an existing chain. If an existing chain exists, pruning will temporarily require disk space to store both the full and pruned blockchains.

For more detailed information see the 'Pruning' entry in the Moneropedia

Debugging

This section contains general instructions for debugging failed installs or problems encountered with Monero. First, ensure you are running the latest version built from the GitHub repo.

Obtaining stack traces and core dumps on Unix systems

We generally use the tool gdb (GNU debugger) to provide stack trace functionality, and ulimit to provide core dumps in builds which crash or segfault.

  • To use gdb in order to obtain a stack trace for a build that has stalled:

Run the build.

Once it stalls, enter the following command:

gdb /path/to/monerod `pidof monerod`

Type thread apply all bt within gdb in order to obtain the stack trace

  • If however the core dumps or segfaults:

Enter ulimit -c unlimited on the command line to enable unlimited filesizes for core dumps

Enter echo core | sudo tee /proc/sys/kernel/core_pattern to stop cores from being hijacked by other tools

Run the build.

When it terminates with an output along the lines of "Segmentation fault (core dumped)", there should be a core dump file in the same directory as monerod. It may be named just core, or core.xxxx with numbers appended.

You can now analyse this core dump with gdb as follows:

gdb /path/to/monerod /path/to/dumpfile`

Print the stack trace with bt

  • If a program crashed and cores are managed by systemd, the following can also get a stack trace for that crash:
coredumpctl -1 gdb

To run Monero within gdb:

Type gdb /path/to/monerod

Pass command-line options with --args followed by the relevant arguments

Type run to run monerod

Analysing memory corruption

There are two tools available:

ASAN

Configure Monero with the -D SANITIZE=ON cmake flag, eg:

cd build/debug && cmake -D SANITIZE=ON -D CMAKE_BUILD_TYPE=Debug ../..

You can then run the monero tools normally. Performance will typically halve.

valgrind

Install valgrind and run as valgrind /path/to/monerod. It will be very slow.

LMDB

Instructions for debugging suspected blockchain corruption as per @HYC

There is an mdb_stat command in the LMDB source that can print statistics about the database but it's not routinely built. This can be built with the following command:

cd ~/monero/external/db_drivers/liblmdb && make

The output of mdb_stat -ea <path to blockchain dir> will indicate inconsistencies in the blocks, block_heights and block_info table.

The output of mdb_dump -s blocks <path to blockchain dir> and mdb_dump -s block_info <path to blockchain dir> is useful for indicating whether blocks and block_info contain the same keys.

These records are dumped as hex data, where the first line is the key and the second line is the data.

Known Issues

Protocols

Socket-based

Because of the nature of the socket-based protocols that drive monero, certain protocol weaknesses are somewhat unavoidable at this time. While these weaknesses can theoretically be fully mitigated, the effort required (the means) may not justify the ends. As such, please consider taking the following precautions if you are a monero node operator:

  • Run monerod on a "secured" machine. If operational security is not your forte, at a very minimum, have a dedicated a computer running monerod and do not browse the web, use email clients, or use any other potentially harmful apps on your monerod machine. Do not click links or load URL/MUA content on the same machine. Doing so may potentially exploit weaknesses in commands which accept "localhost" and "127.0.0.1".
  • If you plan on hosting a public "remote" node, start monerod with --restricted-rpc. This is a must.

Blockchain-based

Certain blockchain "features" can be considered "bugs" if misused correctly. Consequently, please consider the following:

  • When receiving monero, be aware that it may be locked for an arbitrary time if the sender elected to, preventing you from spending that monero until the lock time expires. You may want to hold off acting upon such a transaction until the unlock time lapses. To get a sense of that time, you can consider the remaining blocktime until unlock as seen in the show_transfers command.

monero's People

Contributors

anonimal avatar fluffypony avatar gingeropolous avatar hyc avatar idunk5400 avatar j-berman avatar jaqueeee avatar jeffro256 avatar kenshi84 avatar luigi1111 avatar mathstuf avatar mbg033 avatar mikezackles avatar mj-xmr avatar moneromooo-monero avatar noodledoodlenoodledoodlenoodledoodlenoo avatar oranjuice avatar ph4r05 avatar radfish avatar rbrunner7 avatar schernykh avatar selsta avatar snipa22 avatar stoffu avatar tewinget avatar thecharlatan avatar tobtoht avatar vtnerd avatar warptangent avatar xiphon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

monero's Issues

Intelligent block propagation

Right now blocks are broadcast to all peers, regardless of whether they already have that block.

Peers should be sent a hash of the new block and should respond confirming whether or not they want to accept the block. Obviously if the block matching that hash has already been received from a connected peer, it does not need to be sent.

Bitmonerod send ERROR

[P2P0]ERROR /bitmonero/contrib/epee/include/net/abstract_tcp_server2.inl:307 send que size is more than ABSTRACT_SERVER_SEND_QUE_MAX_COUNT(100), shutting down connection
[P2P0]ERROR /bitmonero/contrib/epee/include/net/levin_protocol_handler_async.h:638 [174.3.102.122:18080 OUT]Failed to do_send()

How can fix this?

Test cases are broken

Most of the testing suite was broken by the original fork to bitmonero.
Assistance is needed is restoring test functionality to 100%.

Mac build failed

Hi, after latest changes from @NoodleDoodleNoodleDoodleNoodleDoodleNoo I can't build monero on osx.

[ 37%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/checkpoints.cpp.o
[ 38%] Building C object src/CMakeFiles/crypto.dir/crypto/slow-hash.c.o
/tmp/bitmonero-OhJz/src/crypto/slow-hash.c:308:35: error: use of undeclared identifier 'MAP_ANONYMOUS'
                    MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, 0, 0);
                                  ^
/tmp/bitmonero-OhJz/src/crypto/slow-hash.c:308:51: error: use of undeclared identifier 'MAP_HUGETLB'
                    MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, 0, 0);
                                                  ^
2 errors generated.
make[3]: *** [src/CMakeFiles/crypto.dir/crypto/slow-hash.c.o] Error 1
make[2]: *** [src/CMakeFiles/crypto.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

sammy007/homebrew-cryptonight#3

Simplewallet command names

In all of the command names, except "set_log", the words are seperated by a hyphen "-". It's trivial, but we should follow that paradigm.

Rpcwallet crashes without leaving a clue behind while the daemon is initializing

The new rpcwallet simply exits (without leaving an error message behind) whether opened straight after the daemon: The daemon starts loading the blockchain, and that results in the rpcwallet closing. Please let the wallet check for the daemon's RPC port to be active, thus, indicating that it has already loaded the chain.

payment_id will be not accepted via RPC

I'm wondering abour an error with Simplewallet, payment_id and JSON_RPC.

I tried to use it with payment_id, but TX will be sent without it:

{"jsonrpc":"2.0","method":"transfer","params": {"destinations":[ {"amount": 500000000000, "address": "48MTY4jFEoJefp1upERPYx2LaLDZ4TCRUYFNErH5BTuHbe4b5NAvvKV9Zx9x9Ry5Y2fwxx9uzc5snifhiHu5Cx29LTCeaQi"} ], "payment_id":"eab654f4ce4e75bba34705fa0a92d4d04e728c5fa55b937288afdd84287f08e0","fee":5000000000,"mixin":0,"unlock_time":0}
 }

{u'jsonrpc': u'2.0', u'id': 0, u'result': {u'tx_hash': u'<f79b70c8fbc56598869d57fc3229d05f0b38057b46f68fc08e7864181bd55ba7>'}}

If I transfer direct in console, it works fine.

transfer 0 48MTY4jFEoJefp1upERPYx2LaLDZ4TCRUYFNErH5BTuHbe4b5NAvvKV9Zx9x9Ry5Y2fwxx9uzc5snifhiHu5Cx29LTCeaQi 0.5 eab654f4ce4e75bba34705fa0a92d4d04e728c5fa55b937288afdd84287f08e0

Money successfully sent, transaction <9a3c98f7701064fc04118c98fb7ff37587bc6ff54cdb5afb125ad4cd3e05b6bd>

We can check in block explorer that the second transaction has payment_id, the first one - not

Linux 32-bit builds no-worky

@dbit34 couldn't compile on an Ubuntu 12.04 32-bit VirtualBox, got this error:

[ 37%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/difficulty.cpp.o
/home/david/Monero/bitmonero/src/cryptonote_core/difficulty.cpp: In function ‘void cryptonote::mul(uint64_t, uint64_t, uint64_t&, uint64_t&)’:
/home/david/Monero/bitmonero/src/cryptonote_core/difficulty.cpp:59:22: error: expected unqualified-id before ‘__int128’
     typedef unsigned __int128 uint128_t;
                      ^
/home/david/Monero/bitmonero/src/cryptonote_core/difficulty.cpp:60:5: error: ‘uint128_t’ was not declared in this scope
     uint128_t res = (uint128_t) a * (uint128_t) b;
     ^
/home/david/Monero/bitmonero/src/cryptonote_core/difficulty.cpp:60:15: error: expected ‘;’ before ‘res’
     uint128_t res = (uint128_t) a * (uint128_t) b;
               ^
/home/david/Monero/bitmonero/src/cryptonote_core/difficulty.cpp:61:22: error: ‘res’ was not declared in this scope
     low = (uint64_t) res;
                      ^
make[3]: *** [src/CMakeFiles/cryptonote_core.dir/cryptonote_core/difficulty.cpp.o] Error 1
make[3]: Leaving directory `/home/david/Monero/bitmonero/build/release'
make[2]: *** [src/CMakeFiles/cryptonote_core.dir/all] Error 2
make[2]: Leaving directory `/home/david/Monero/bitmonero/build/release'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/david/Monero/bitmonero/build/release'
make: *** [build-release] Error 2

If we're supporting 32-bit Windows builds we should support 32-bit Linux builds. VERY low priority.

Problems with deterministic wallets on Windows (at least)

On Windows generating and restoring of deterministic wallets won't work. The mnemonic seed differs in console and log and restoring won't work with both. Also a wallet created on linux and is working to restore on Linux, won't restore on Linux. However, you can restore a Windows-wallet if you use the words from the log on Linux. Another thing to mention is, that in the console there are three words mssing, but both seeds have way more differences in words even after that.
Example: Log: sorrow tremble sharp plate bounce ring purpose such nothing pop outside capture neck wild thunder several endless describe valley bruise back surprise split abuse
Console: sorrow tremble sharp plate bounce ring purpose such nothing pop outside capture veral endless describe valley bruise back surprise split abuse

TL;DR: Wrapper Issue when generating on Windows and unknown issue when restoring a wallet

Store the deterministic wallet seed serialized in the '.keys' file

It would be great to have the opportunity of retrieving our (newly-generated) wallets' seeds, as it is one of the most convenient ways of making a backup.

My idea is to store the seeds permamently (encrypted in the '.keys' file), in order to let the users retrieve them anytime with an RPC command. The command should return an empty string (or a specific error) whether the wallet's '.keys' file doesn't contain a seed.

Does not compile on arch

I'm experiencing the same issue as seen here:

bitmonero-project/bitmonero#8

make
mkdir -p build/release
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
-- The C compiler identification is GNU 4.9.0
-- The CXX compiler identification is GNU 4.9.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
--   chrono
--   regex
--   serialization
--   program_options
-- Found Git: /usr/bin/git
-- Found PythonInterp: /usr/bin/python (found version "3.4.1") 
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing:  Threads_FOUND) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/david/src/bitmonero/build/release
cd build/release && make
make[1]: Entering directory '/home/david/src/bitmonero/build/release'
make[2]: Entering directory '/home/david/src/bitmonero/build/release'
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
Scanning dependencies of target version
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
fatal: No names found, cannot describe anything.
CMake Warning at src/version.cmake:3 (message):
  Cannot determine current revision.  Make sure that you are building either
  from a Git working tree or from a source archive.


make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
[  0%] Built target version
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
Scanning dependencies of target upnpc-static
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
[  1%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o
[  2%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/miniupnpc.c.o
[  3%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minixml.c.o
[  4%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minisoap.c.o
[  5%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/miniwget.c.o
[  6%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpc.c.o
[  7%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpcommands.c.o
[  8%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpreplyparse.c.o
[  9%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnperrors.c.o
[ 10%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/connecthostport.c.o
[ 11%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/portlistingparse.c.o
[ 12%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/receivedata.c.o
[ 13%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minissdpc.c.o
Linking C static library libminiupnpc.a
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
[ 13%] Built target upnpc-static
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
Scanning dependencies of target common
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
[ 14%] Building CXX object src/CMakeFiles/common.dir/common/base58.cpp.o
[ 15%] Building CXX object src/CMakeFiles/common.dir/common/command_line.cpp.o
[ 16%] Building CXX object src/CMakeFiles/common.dir/common/util.cpp.o
Linking CXX static library libcommon.a
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
[ 16%] Built target common
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
Scanning dependencies of target cryptonote_core
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
[ 17%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/checkpoints.cpp.o
[ 18%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/blockchain_storage.cpp.o
[ 19%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/difficulty.cpp.o
[ 20%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/cryptonote_format_utils.cpp.o
[ 21%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/miner.cpp.o
[ 22%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/account.cpp.o
[ 23%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/cryptonote_core.cpp.o
[ 24%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/cryptonote_basic_impl.cpp.o
[ 25%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/tx_pool.cpp.o
Linking CXX static library libcryptonote_core.a
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
[ 25%] Built target cryptonote_core
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
Scanning dependencies of target crypto
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
[ 26%] Building C object src/CMakeFiles/crypto.dir/crypto/crypto-ops.c.o
[ 27%] Building C object src/CMakeFiles/crypto.dir/crypto/random.c.o
[ 28%] Building C object src/CMakeFiles/crypto.dir/crypto/slow-hash.c.o
/home/david/src/bitmonero/src/crypto/slow-hash.c: In function ‘cn_slow_hash’:
/home/david/src/bitmonero/src/crypto/slow-hash.c:199:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     U64(a)[0] = U64(&state.k[0])[0] ^ U64(&state.k[32])[0];
     ^
/home/david/src/bitmonero/src/crypto/slow-hash.c:199:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/david/src/bitmonero/src/crypto/slow-hash.c:199:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/david/src/bitmonero/src/crypto/slow-hash.c:200:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     U64(a)[1] = U64(&state.k[0])[1] ^ U64(&state.k[32])[1];
     ^
/home/david/src/bitmonero/src/crypto/slow-hash.c:200:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/david/src/bitmonero/src/crypto/slow-hash.c:201:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     U64(b)[0] = U64(&state.k[16])[0] ^ U64(&state.k[48])[0];
     ^
/home/david/src/bitmonero/src/crypto/slow-hash.c:201:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/david/src/bitmonero/src/crypto/slow-hash.c:201:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/david/src/bitmonero/src/crypto/slow-hash.c:202:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     U64(b)[1] = U64(&state.k[16])[1] ^ U64(&state.k[48])[1];
     ^
/home/david/src/bitmonero/src/crypto/slow-hash.c:202:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/david/src/bitmonero/src/crypto/slow-hash.c:210:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         p = &long_state[state_index(a)];
         ^
/home/david/src/bitmonero/src/crypto/slow-hash.c:222:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         p = &long_state[state_index(a)];
         ^
[ 29%] Building C object src/CMakeFiles/crypto.dir/crypto/hash.c.o
[ 30%] Building C object src/CMakeFiles/crypto.dir/crypto/keccak.c.o
[ 31%] Building C object src/CMakeFiles/crypto.dir/crypto/aesb.c.o
[ 32%] Building C object src/CMakeFiles/crypto.dir/crypto/crypto-ops-data.c.o
[ 33%] Building CXX object src/CMakeFiles/crypto.dir/crypto/crypto.cpp.o
[ 34%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-jh.c.o
[ 35%] Building C object src/CMakeFiles/crypto.dir/crypto/tree-hash.c.o
[ 36%] Building C object src/CMakeFiles/crypto.dir/crypto/oaes_lib.c.o
[ 37%] Building C object src/CMakeFiles/crypto.dir/crypto/blake256.c.o
[ 38%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-groestl.c.o
[ 39%] Building C object src/CMakeFiles/crypto.dir/crypto/jh.c.o
[ 40%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-skein.c.o
[ 41%] Building C object src/CMakeFiles/crypto.dir/crypto/groestl.c.o
/home/david/src/bitmonero/src/crypto/groestl.c: In function ‘Init’:
/home/david/src/bitmonero/src/crypto/groestl.c:210:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(;i<(SIZE512/sizeof(uint32_t));i++)
         ^
[ 42%] Building C object src/CMakeFiles/crypto.dir/crypto/chacha8.c.o
[ 43%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-blake.c.o
[ 44%] Building C object src/CMakeFiles/crypto.dir/crypto/skein.c.o
/home/david/src/bitmonero/src/crypto/skein.c:80:5: warning: "SKEIN_256_NIST_MAX_HASH_BITS" is not defined [-Wundef]
 #if SKEIN_256_NIST_MAX_HASH_BITS
     ^
/home/david/src/bitmonero/src/crypto/skein.c: In function ‘Skein_256_Final’:
/home/david/src/bitmonero/src/crypto/skein.c:1360:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         ((u64b_t *)ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block */
         ^
/home/david/src/bitmonero/src/crypto/skein.c: In function ‘Skein_512_Final’:
/home/david/src/bitmonero/src/crypto/skein.c:1560:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         ((u64b_t *)ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block */
         ^
/home/david/src/bitmonero/src/crypto/skein.c: In function ‘Skein1024_Final’:
/home/david/src/bitmonero/src/crypto/skein.c:1758:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         ((u64b_t *)ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block */
         ^
/home/david/src/bitmonero/src/crypto/skein.c: In function ‘Init’:
/home/david/src/bitmonero/src/crypto/skein.c:1944:5: warning: "SKEIN_256_NIST_MAX_HASH_BITS" is not defined [-Wundef]
 #if SKEIN_256_NIST_MAX_HASH_BITS
     ^
[ 45%] Building CXX object src/CMakeFiles/crypto.dir/crypto/electrum-words.cpp.o
Linking CXX static library libcrypto.a
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
[ 45%] Built target crypto
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
Scanning dependencies of target connectivity_tool
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
make[3]: Entering directory '/home/david/src/bitmonero/build/release'
[ 46%] Building CXX object src/CMakeFiles/connectivity_tool.dir/connectivity_tool/conn_tool.cpp.o
Linking CXX executable connectivity_tool
/tmp/cc1Hj3sj.ltrans18.ltrans.o: In function `handle_request_stat(boost::program_options::variables_map&, unsigned long)':
cc1Hj3sj.ltrans18.o:(.text+0xe7e): undefined reference to `crypto::crypto_ops::generate_signature(crypto::hash const&, crypto::public_key const&, crypto::secret_key const&, crypto::signature&)'
cc1Hj3sj.ltrans18.o:(.text+0x1273): undefined reference to `crypto::crypto_ops::generate_signature(crypto::hash const&, crypto::public_key const&, crypto::secret_key const&, crypto::signature&)'
/tmp/cc1Hj3sj.ltrans27.ltrans.o: In function `tools::get_proof_of_trust_hash(nodetool::proof_of_trust const&)':
cc1Hj3sj.ltrans27.o:(.text+0xcf4): undefined reference to `cn_fast_hash'
/tmp/cc1Hj3sj.ltrans29.ltrans.o: In function `generate_and_print_keys()':
cc1Hj3sj.ltrans29.o:(.text+0x49b): undefined reference to `crypto::crypto_ops::generate_keys(crypto::public_key&, crypto::secret_key&, crypto::secret_key const&, bool)'
/tmp/cc1Hj3sj.ltrans29.ltrans.o: In function `main':
cc1Hj3sj.ltrans29.o:(.text.startup+0x1ac): undefined reference to `command_line::arg_help'
cc1Hj3sj.ltrans29.o:(.text.startup+0x6ef): undefined reference to `command_line::arg_help'
collect2: error: ld returned 1 exit status
src/CMakeFiles/connectivity_tool.dir/build.make:96: recipe for target 'src/connectivity_tool' failed
make[3]: *** [src/connectivity_tool] Error 1
make[3]: Leaving directory '/home/david/src/bitmonero/build/release'
CMakeFiles/Makefile2:228: recipe for target 'src/CMakeFiles/connectivity_tool.dir/all' failed
make[2]: *** [src/CMakeFiles/connectivity_tool.dir/all] Error 2
make[2]: Leaving directory '/home/david/src/bitmonero/build/release'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/david/src/bitmonero/build/release'
Makefile:20: recipe for target 'build-release' failed
make: *** [build-release] Error 2

debian build problem

Hi, I having build error.

debian sid

-- The C compiler identification is GNU 4.9.0
-- The CXX compiler identification is GNU 4.9.0
-- Boost version: 1.55.0

$ git log -1 |head -1
commit 94cc5a7

branch master

make[1]: Entering directory '/home/user/github/bitmonero'
mkdir -p build/release
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
-- The C compiler identification is GNU 4.9.0
-- The CXX compiler identification is GNU 4.9.0
-- Check for working C compiler: /usr/lib/ccache/cc
-- Check for working C compiler: /usr/lib/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- chrono
-- regex
-- serialization
-- program_options
-- Found Git: /usr/bin/git
-- Found PythonInterp: /usr/bin/python (found version "2.7.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/github/bitmonero/build/release
cd build/release && make
make[2]: Entering directory '/home/user/github/bitmonero/build/release'
make[3]: Entering directory '/home/user/github/bitmonero/build/release'
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
Scanning dependencies of target version
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
fatal: No names found, cannot describe anything.
CMake Warning at src/version.cmake:3 (message):
Cannot determine current revision. Make sure that you are building either
from a Git working tree or from a source archive.

make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
[ 0%] Built target version
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
Scanning dependencies of target upnpc-static
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
[ 1%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o
[ 2%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/miniupnpc.c.o
[ 3%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minixml.c.o
[ 4%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minisoap.c.o
[ 5%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/miniwget.c.o
[ 6%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpc.c.o
[ 7%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpcommands.c.o
[ 8%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnpreplyparse.c.o
[ 9%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/upnperrors.c.o
[ 10%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/connecthostport.c.o
[ 11%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/portlistingparse.c.o
[ 12%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/receivedata.c.o
[ 13%] Building C object external/miniupnpc/CMakeFiles/upnpc-static.dir/minissdpc.c.o
Linking C static library libminiupnpc.a
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
[ 13%] Built target upnpc-static
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
Scanning dependencies of target common
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
[ 14%] Building CXX object src/CMakeFiles/common.dir/common/base58.cpp.o
[ 15%] Building CXX object src/CMakeFiles/common.dir/common/util.cpp.o
[ 16%] Building CXX object src/CMakeFiles/common.dir/common/command_line.cpp.o
Linking CXX static library libcommon.a
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
[ 16%] Built target common
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
Scanning dependencies of target cryptonote_core
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
[ 17%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/blockchain_storage.cpp.o
[ 18%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/checkpoints.cpp.o
[ 19%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/cryptonote_basic_impl.cpp.o
[ 20%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/cryptonote_format_utils.cpp.o
[ 21%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/difficulty.cpp.o
[ 22%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/tx_pool.cpp.o
[ 23%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/account.cpp.o
[ 24%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/cryptonote_core.cpp.o
[ 25%] Building CXX object src/CMakeFiles/cryptonote_core.dir/cryptonote_core/miner.cpp.o
Linking CXX static library libcryptonote_core.a
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
[ 25%] Built target cryptonote_core
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
Scanning dependencies of target crypto
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
[ 26%] Building C object src/CMakeFiles/crypto.dir/crypto/aesb.c.o
[ 27%] Building C object src/CMakeFiles/crypto.dir/crypto/blake256.c.o
[ 28%] Building C object src/CMakeFiles/crypto.dir/crypto/chacha8.c.o
[ 29%] Building C object src/CMakeFiles/crypto.dir/crypto/crypto-ops-data.c.o
[ 30%] Building C object src/CMakeFiles/crypto.dir/crypto/crypto-ops.c.o
[ 31%] Building C object src/CMakeFiles/crypto.dir/crypto/groestl.c.o
/home/user/github/bitmonero/src/crypto/groestl.c: In function ‘Init’:
/home/user/github/bitmonero/src/crypto/groestl.c:210:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(;i<(SIZE512/sizeof(uint32_t));i++)
^
[ 32%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-blake.c.o
[ 33%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-groestl.c.o
[ 34%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-jh.c.o
[ 35%] Building C object src/CMakeFiles/crypto.dir/crypto/hash-extra-skein.c.o
[ 36%] Building C object src/CMakeFiles/crypto.dir/crypto/hash.c.o
[ 37%] Building C object src/CMakeFiles/crypto.dir/crypto/jh.c.o
[ 38%] Building C object src/CMakeFiles/crypto.dir/crypto/keccak.c.o
[ 39%] Building C object src/CMakeFiles/crypto.dir/crypto/oaes_lib.c.o
[ 40%] Building C object src/CMakeFiles/crypto.dir/crypto/random.c.o
[ 41%] Building C object src/CMakeFiles/crypto.dir/crypto/skein.c.o
/home/user/github/bitmonero/src/crypto/skein.c:80:5: warning: "SKEIN_256_NIST_MAX_HASH_BITS" is not defined [-Wundef]
#if SKEIN_256_NIST_MAX_HASH_BITS
^
/home/user/github/bitmonero/src/crypto/skein.c:1944:5: warning: "SKEIN_256_NIST_MAX_HASH_BITS" is not defined [-Wundef]
#if SKEIN_256_NIST_MAX_HASH_BITS
^
/home/user/github/bitmonero/src/crypto/skein.c: In function ‘Skein_256_Final’:
/home/user/github/bitmonero/src/crypto/skein.c:1360:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing](%28u64b_t *%29ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block /
^
/home/user/github/bitmonero/src/crypto/skein.c: In function ‘Skein_512_Final’:
/home/user/github/bitmonero/src/crypto/skein.c:1560:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing](%28u64b_t *%29ctx->b)[0]= Skein_Swap64((u64b_t) i); /
build the counter block /
^
/home/user/github/bitmonero/src/crypto/skein.c: In function ‘Skein1024_Final’:
/home/user/github/bitmonero/src/crypto/skein.c:1758:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing](%28u64b_t *%29ctx->b)[0]= Skein_Swap64((u64b_t) i); /
build the counter block /
^
[ 42%] Building C object src/CMakeFiles/crypto.dir/crypto/slow-hash.c.o
/home/user/github/bitmonero/src/crypto/slow-hash.c: In function ‘cn_slow_hash’:
/home/user/github/bitmonero/src/crypto/slow-hash.c:199:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
U64(a)[0] = U64(&state.k[0])[0] ^ U64(&state.k[32])[0];
^
/home/user/github/bitmonero/src/crypto/slow-hash.c:199:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/user/github/bitmonero/src/crypto/slow-hash.c:199:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/user/github/bitmonero/src/crypto/slow-hash.c:200:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
U64(a)[1] = U64(&state.k[0])[1] ^ U64(&state.k[32])[1];
^
/home/user/github/bitmonero/src/crypto/slow-hash.c:200:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/user/github/bitmonero/src/crypto/slow-hash.c:201:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
U64(b)[0] = U64(&state.k[16])[0] ^ U64(&state.k[48])[0];
^
/home/user/github/bitmonero/src/crypto/slow-hash.c:201:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/user/github/bitmonero/src/crypto/slow-hash.c:201:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/user/github/bitmonero/src/crypto/slow-hash.c:202:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
U64(b)[1] = U64(&state.k[16])[1] ^ U64(&state.k[48])[1];
^
/home/user/github/bitmonero/src/crypto/slow-hash.c:202:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/user/github/bitmonero/src/crypto/slow-hash.c:210:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
p = &long_state[state_index(a)];
^
/home/user/github/bitmonero/src/crypto/slow-hash.c:222:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
p = &long_state[state_index(a)];
^
[ 43%] Building C object src/CMakeFiles/crypto.dir/crypto/tree-hash.c.o
[ 44%] Building CXX object src/CMakeFiles/crypto.dir/crypto/crypto.cpp.o
[ 45%] Building CXX object src/CMakeFiles/crypto.dir/crypto/electrum-words.cpp.o
Linking CXX static library libcrypto.a
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
[ 45%] Built target crypto
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
Scanning dependencies of target connectivity_tool
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
make[4]: Entering directory '/home/user/github/bitmonero/build/release'
[ 46%] Building CXX object src/CMakeFiles/connectivity_tool.dir/connectivity_tool/conn_tool.cpp.o
Linking CXX executable connectivity_tool
/tmp/cccRSnOo.ltrans21.ltrans.o: In function generate_signature': /home/user/github/bitmonero/src/crypto/crypto.h:142: undefined reference tocrypto::crypto_ops::generate_signature(crypto::hash const&, crypto::public_key const&, crypto::secret_key const&, crypto::signature&)'
/home/user/github/bitmonero/src/crypto/crypto.h:142: undefined reference to crypto::crypto_ops::generate_signature(crypto::hash const&, crypto::public_key const&, crypto::secret_key const&, crypto::signature&)' /tmp/cccRSnOo.ltrans27.ltrans.o: In functioncn_fast_hash':
/home/user/github/bitmonero/src/crypto/hash.h:36: undefined reference to cn_fast_hash' /tmp/cccRSnOo.ltrans29.ltrans.o: In functiongenerate_keys':
/home/user/github/bitmonero/src/crypto/crypto.h:106: undefined reference to crypto::crypto_ops::generate_keys(crypto::public_key&, crypto::secret_key&, crypto::secret_key const&, bool)' /tmp/cccRSnOo.ltrans29.ltrans.o: In functionmain':
/home/user/github/bitmonero/src/connectivity_tool/conn_tool.cpp:297: undefined reference to command_line::arg_help' /tmp/cccRSnOo.ltrans29.ltrans.o: In functionoperator()':
/home/user/github/bitmonero/src/connectivity_tool/conn_tool.cpp:319: undefined reference to `command_line::arg_help'
collect2: error: ld returned 1 exit status
src/CMakeFiles/connectivity_tool.dir/build.make:100: recipe for target 'src/connectivity_tool' failed
make[4]: *
* [src/connectivity_tool] Error 1
make[4]: Leaving directory '/home/user/github/bitmonero/build/release'
CMakeFiles/Makefile2:231: recipe for target 'src/CMakeFiles/connectivity_tool.dir/all' failed
make[3]: *** [src/CMakeFiles/connectivity_tool.dir/all] Error 2
make[3]: Leaving directory '/home/user/github/bitmonero/build/release'
Makefile:126: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/user/github/bitmonero/build/release'
Makefile:20: recipe for target 'build-release' failed
make[1]: *** [build-release] Error 2
make[1]: Leaving directory '/home/user/github/bitmonero'

Refresh from Height Issue

@jakoblind - not sure if you played with this much, but just tested it on a newly restored wallet that has 1 XMR in it, and it gets stuck in an infinite loop:)

We're currently on block 190558, and this tx is in 190551 -

[wallet ----]: refresh 190500
Height 190551, transaction <4084a075e06899d34e271bbf00c509143b448fd5ebf576f7d3a11a45a06bccc3>, received 1.000000000000
Height 190551, transaction <4084a075e06899d34e271bbf00c509143b448fd5ebf576f7d3a11a45a06bccc3>, received 1.000000000000

and so on until you ctrl-c:

Height 190551, transaction <4084a075e06899d34e271bbf00c509143b448fd5ebf576f7d3a11a45a06bccc3>, received 1.000000000000
Refresh done, blocks received: 13224
balance: 232.000000000000, unlocked balance: 0.000000000000

That balance is supposed to be 1:)

simplewallet ctrl+c close failture

Commit 2d755b3 (merge from fluffypony) prevents a daemon crash relating to console input, however it creates a hang in simplewallet when attempting to ctrl+c to send sigterm. This is being actively investigated.

Testnet required

TODO: Add testnet params and a "--testnet" argument that allows one to operate their daemon/wallet/miner on the testnet instead of on the mainnet.

rpc save command causes wallet timeout

Currently the RPC save blockchain command communicates to the daemon and waits for a response; however, because blockchain storage at the daemon takes a long time, the wallet always timesout waiting for the RPC to respond and freezes the wallet.

Proper wallet behaviour for save blockchain functionality should prevent the wallet from timing out while it waits for the daemon to complete saving the blockchain.

Transactions larger than 24.4 kb should be split

The wallet currently does not allow you to perform transfers when the generated tx is larger than 24.4 kb.

A saner behaviour would be this:
For all tx > 10 kb, attempt instead split the inputs and outputs into multiple tx of a size <10 kb specified by the user (default <5 kb).

nodetool::peerlist_entry relies on time_t being a specific size.

As discussed on irc with fluffypony and rfreemanw, nodetool::peerlist_entry, defined in p2p_protocol_defs.h, uses time_t last_seen;.

On mingw-gcc 32-bit, time_t is 4 bytes while on msvc it's 8 bytes. This causes issues in other places, like in keyvalue_serialization_overloads.h. For example, in the template function unserialize_stl_container_pod_val_as_blob, CHECK_AND_ASSERT_MES expects loaded_size to be divisible by sizeof(value_type) with value_type = nodetool::peerlist_entry. This assert passes on msvc since peerlist_entry is 24 bytes but will fail on mingw because it's 4 bytes shorter than expected.

As answered here the type of time_t and by extension its size, is implementation defined.

Move terminology away from "wallet"

It's been suggested that "wallet" is a poor description for laymen, and may hinder adoption. It's also arguably sexist - men have wallets, women have purses, and whilst "moneybag" is genderless it's probably the wrong term;) Whilst Monero is quite far from a point where this terminology becomes an issue, it's the sort of change that we can make sooner rather than later.

A suggested term is "account". Whilst there might be this knee-jerk reaction from advocates of cryptocurrency that feel the term implies centralisation, I find it advantageous for several reasons:

  1. It fits in with the whole "be your own bank" vibe, which is a good way to explain cryptocurrency in general to people
  2. The idea of separation of accounts is already familiar to people - a married couple may have a joint account, a company will have an account (or accounts), a savings account would be separate, etc.
  3. People are familiar and happy with paying a fee for moving funds between accounts, so it won't be weird for them
  4. It's the most familiar path for the general public. They understand creating an account, using a strong password, password recovery, etc. It's a natural transition for them.

Discuss.

simplewallet ctrl+d close failture

Commit 2d755b3 (merge from fluffypony) prevents a daemon crash relating to console input, however it creates a hang in simplewallet when attempting to ctrl+d to send eof. This is being actively investigated.

simplewallet refresh should include optional height param

Simplewallet currently refreshes from height 0. However, if you are making a new wallet and have not used that wallet address before, it seems unnecessary to sync from block 0 as there can not possibly be utxos belonging to you from blocks before the current height.

I would propose that refresh should have an optional height argument, eg
refresh [height]
where height allows you to indicate when you'd like to start looking for utxos (which must be higher than the last block which the wallet was synced to).

This should also be the default behaviour when generating a new wallet.

Raw blockchain + autodownload/autoload

Two things are needed:

  1. A CLI flag for the daemon that will allow a 'blockchain.raw' file to be created and used in parallel with the normal blockchain. This raw blockchain should just be a flat, serialised copy of every block in existence. If the daemon is started with this flag and this file does not exist, it should be created based on the existing blockchain (using the standard blockchain functions so that it still works when we move to an embedded db). It should be kept in-sync - when the blockchain is periodically written to disk, this file should be added to too.
  2. Once that is complete, a new function is that when the daemon is started for the first time in interactive mode (see: @mikezackles daemonize branch for when this won't happen) it should prompt to bootstrap the blockchain from downloads.monero.cc. The daemon can also be started with a --bootstrap-blockchain flag that will do this if no local blockchain is found. The daemon can also check for the existence of blockchain.raw in its working folder, which is an indicator to auto-import it. In all three cases, if the user wants to download the bootstrap, it should download it from a set URL (to be confirmed) over HTTP, with resume if the download stalls or the daemon crashes and is restarted with this option enabled / prompt shown and user answers yes, and download progress should be shown as it proceeds. VERY NB: as it downloads (OR as it is read off disk, if it exists locally) it should be read/downloaded in chunks that are deserialised, with each block being verified and added to the regular blockchain storage. It should not be read/downloaded into RAM whole and then worked with, as the regular blockchain already does that, so it will exhaust RAM on most boxes. In order to keep this consistent between sessions (eg. if the daemon is killed halfway through) a state file should temporarily be stored in the working folder that indicates the byte position and block height of the last chunk successfully imported. I think it should chunk -> import -> chunk -> import rather than trying to get clever and do it multi-threaded. We'll get clever later:)

Rpcwallet doesn't wait (enough?) for the daemon RPC's initialization

2014-Aug-21 09:58:20.960909 ERROR C:\Users\user\Desktop\bitmonero-daemonize_wip\contrib\epee\include\net/http_client.h:867 failed to connect localhost:18081

It was definitely NOT 20 seconds of waiting before throwing the error above, and also, the daemon port becomes alive even before 20 seconds

Cann't build bitmonero [rev 26292c]

When I build bitmonero I get error:

[ 51%] Building CXX object src/CMakeFiles/wallet.dir/wallet/wallet2.cpp.o
cd /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -DSTATICLIB  -DNDEBUG -O2 -march=native -pipe -msse -msse2 -msse3 -mssse3 -mmmx -mcx16 -msahf -momit-leaf-frame-pointer  -std=c++11 -D_GNU_SOURCE  -Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Werror -Wno-error=extra -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=strict-aliasing -Wno-error=type-limits -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized -Wlogical-op -Wno-error=maybe-uninitialized -Wno-reorder -Wno-missing-field-initializers -march=native -maes -I/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src -I/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/contrib/epee/include -I/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/external -I/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999_build/version    -o CMakeFiles/wallet.dir/wallet/wallet2.cpp.o -c /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.cpp
In file included from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.h:24:0,
                 from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.cpp:13:
/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet_errors.h:123:12: error: looser throw specifier for ‘virtual tools::error::unexpected_txin_type::~unexpected_txin_type()’
/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet_errors.h:115:12: error:   overriding ‘virtual tools::error::wallet_internal_error::~wallet_internal_error() noexcept (true)’
/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet_errors.h:201:12: error: looser throw specifier for ‘virtual tools::error::acc_outs_lookup_error::~acc_outs_lookup_error()’
/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet_errors.h:192:12: error:   overriding ‘virtual tools::error::refresh_error::~refresh_error() noexcept (true)’
In file included from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.h:24:0,
                 from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.cpp:13:
/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet_errors.h:395:12: error: looser throw specifier for ‘virtual tools::error::tx_rejected::~tx_rejected()’
In file included from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.h:24:0,
                 from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.cpp:13:
/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet_errors.h:266:12: error:   overriding ‘virtual tools::error::transfer_error::~transfer_error() noexcept (true)’
In file included from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.h:24:0,
                 from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.cpp:13:
/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet_errors.h:451:12: error: looser throw specifier for ‘virtual tools::error::tx_too_big::~tx_too_big()’
In file included from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.h:24:0,
                 from /mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet2.cpp:13:
/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999/src/wallet/wallet_errors.h:266:12: error:   overriding ‘virtual tools::error::transfer_error::~transfer_error() noexcept (true)’
make[2]: *** [src/CMakeFiles/wallet.dir/wallet/wallet2.cpp.o] Error 1
make[2]: Leaving directory `/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999_build'
make[1]: *** [src/CMakeFiles/wallet.dir/all] Error 2
make[1]: Leaving directory `/mnt/anythings/tmp/portage/net-p2p/monero-9999/work/monero-9999_build'
make: *** [all] Error 2

gcc-4.7.3
boost-1.53

[Features Requests/Proposals] Wallet2 improvements

I propose a discussion about what should be added/improved in Wallet2, in order to provide more information in rpcwallet, simplewallet or programs which on their top.

  • Adding blocks timestamp cache : The objective is to know the "human" date (epoch) of transactions (or other events) from their block height. As they only contains block height when saved to wallet2.
    Two solutions :
    -- Adding a map in Wallet2 containing the mapping "block_height -> timestamp". The map can easily be filled during refreshes processes as all required blocks are scanned. This involves an average of +30% size of Wallet2 data file.
    -- Another solution could come with database implementation, because blocks information should be easily accessible from Wallet2 and/or other classes.
  • Memorizing transaction spending time. As far I know, when we ask for incoming transfers, we can access the block time of the transaction (received), but for "sent/spendable" status, we only have a boolean (is the output spent or not). It could be interesting to have an additional parameter "spent_block_time". This can be achieved by adding a line in 'process_new_transaction'.
  • Memorizing transaction amounts/destinations : I'm doubtful about this, but it could be useful to save destinations somewhere when sending transactions. Like a "software" history (not contained in the blockchain). The main problem I consider is privacy and how to protect/backup this history. This feature could be a pain to implement properly (give the choice to users, backup it, etc) and may not be in the Privacy coin philosophy. Nevertheless this can be discussed.

Note : As I don't know boost::serialize behaviour (wallet2 data is stored this way), adding new data or modifying structures in Wallet2 could be harmful. Adding a "data structure version" flag (wallet2-specific version) could resolve this problem (if the version flag of local data file is lower than xxx, a full refresh is done and required structure are reinit correctly).

I haven't reviewed all internal data structures and information, so if I missed something, some of these proposals could be useless or almost existing.

(stopped here after remembering I was not in a Forum)

Compile problem

very long text message, ends with words:
(.rodata._ZTVN5boost15program_options20invalid_option_valueE[_ZTVN5boost15program_options20invalid_option_valueE]+0x30): undefined reference toboost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
collect2: error: ld returned 1 exit status
make[3]: *** [src/connectivity_tool] error`

system Ubuntu 12.04

Restore deterministic wallet date issue

When restoring deterministic wallets the date should be set to beginning of June (when we added the functionality), and not the "creation" (restore) date.

Showing outgoing transfers/payments

There doesn't seem to be any functionality to list outgoing transfers/payments from the wallet. There are so many use cases for this and really no reason to not have this feature.

BUg

electrum-words.h line 22 1
electrum-words.h line 23 1
electrum-words.h line 24 1

Build is not possible in Windows, Linux Work

Clean up old branches

Remove old branches hanging around from thankful_for_today and stale branches from @decred. Branches that should remain are "development" and branches for each tagged release.

Retrieving of viewkey

The viewkey is only displayed once the wallet is started, so we need an option to print it out via commandline.

It can be accesses the following way from simplewallet: m_account.get_keys().m_view_secret_key

Rounding error in wallet?

Error: not enough money to transfer, available only 0.100000000000, transaction amount 1.000000000000 = 0.999999000000 + 0.000001000000 (fee)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.