Git Product home page Git Product logo

blur-network / blur Goto Github PK

View Code? Open in Web Editor NEW
43.0 17.0 19.0 17.69 MB

The Blur Network is a privacy-oriented peer-to-peer network, built upon the premise that privacy is incompatible with centralization. BLUR employs a custom mining algorithm called CryptoNight-Dynamic. Iterations adjust approximately once every five seconds, with a goal of maintaining CPU advantages over specialized mining hardware.

Home Page: https://blur.cash

License: Other

CMake 3.62% Makefile 0.79% C 15.83% C++ 78.89% Shell 0.26% Batchfile 0.03% Python 0.24% q 0.12% Dockerfile 0.09% Raku 0.03% Perl 0.10%
cryptocurrency cryptonote cpu-mining mining privacy blur xmr decentralized crypto anonymity

blur's Introduction

Blur: The Private Cryptocurrency

Blur Network

Copyright (c) 2018-2023, Blur Network

Blur Network Command-Line Tools Blur Master Branch Build Status

See License

See Code of Conduct

About the Project

The Blur Network is an experimental project based upon the premise that privacy and centralization cannot coexist. We focus on maximizing accessibility to block rewards, while fostering an educational environment. We seek to create an ecosystem where individuals can take a first-hand role in protecting their right to privacy.

The Blur Network employs a custom algorithm for mining, called CryptoNight-Dynamic. The algorithm adjusts approximately once every five seconds, with a goal of maintaining CPU advantages over specialized mining hardware. Making use of a Unix timestamp, the current block height, and the previous block’s hash, CryptoNight-Dynamic varies iterations in the CryptoNight algorithm. Employing a timestamp in the calculation serves the purpose of dynamic iterations on an intra-block basis, while height and the previous block’s hash create variation on an inter-block basis. The iterations necessary to mine each next block are directly dependent upon the result of the block before it.

Contents:

Currency: Blur (Ticker: BLUR)
Website: https://blur.cash
Block Explorer: https://explorer.blur.cash/
Block Explorer API Example: https://explorer.blur.cash/api/transactions
Offline Wallet Generator: Offline HTML Page
Discord (Main Point of Contact for Blur): Blur Official Discord
Telegram: Telegram
BitcoinTalk Announcement: Official Thread on BitcoinTalk.org
Reddit: Official Blur Network Subreddit
CLI Binary Release(s): Download via Github
GUI Wallet Release(s): Download via Github
Algorithm: Cryptonight-Dynamic
Ports: P2P port = 52541
RPC port = 52542
Seed Nodes:
  • Node 1: 66.70.189.131:52541
  • Node 2: 51.79.66.36:52541
  • Node 3: 51.79.66.123:52541
  • Node 4: 51.79.64.184:52541
  • Donate to help support Blur:

    BLUR: bL4PdWFk3VVgEGYezGTXigHrsoJ3JGKgxKDi1gHXT7GKTLawFu3WMhu53Gc2KCmxxmCHbR4VEYMQ93PRv8vWgJ8j2mMHVEzLu

    Compiling from Source

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

    Step 1: Clone this repository's stable branch:

    git clone --recursive https://github.com/blur-network/blur.git

    Step 2a: Install dependencies (If you wish to link the binaries dynamically)

    If you wish to instead compile statically, scroll to step 2(b)

    Ubuntu/Debian:

    Required: sudo apt-get install -y build-essential cmake pkg-config libboost-all-dev libssl-dev libsodium-dev libunwind-dev binutils-dev libreadline-dev

    Optional: sudo apt-get install -y liblzma-dev libgtest-dev

    Arch Linux:

    Required: sudo pacman -S base-devel cmake boost openssl libsodium libunwind binutils-devel readline

    Optional: sudo pacman -S xz gtest

    Step 2(b): Build dependencies, and link statically, all in one go

    Install additional dependency: sudo apt-get install -y curl

    To compile for Linux (distro-agnostic): make release-cross-linux-x86_64

    To compile for Windows(mingw64): make release-cross-winx64

    To compile for Mac(x86_64): make release-cross-mac-x86_64

    The Makefile entries run by the above commands will build dependencies for x86_64-gnu-linux and x86_64-w64-mingw32, and x86_64-apple-darwin11 hosts, respectively. If you would like to compile for a different type of host platform, cd into the contrib/depends directory, and build with make HOST=xxx-yyy-zzz where xxx-yyy-zzz is a standard host triplet.

    Note that we do not officially support builds for 32-bit architecture, arm architecture, or the freebsd linux distribution currently. However, there are options within the Makefile for these configurations. These entries may require significant modifications to source files, in order to work properly.

    Mining on Linux

    Compile from source, or download the latest binary release from the Releases page.

    We also now offer a Snap package on the Ubuntu Snap Store: Get it from the Snap Store

    Open a terminal in the directory within which the binaries were downloaded. Assuming that is your Downloads folder, enter the following command:

    cd ~/Downloads && tar xvzf blur-v0.1.9.9.6-linux-x86_64.tar.gz

    Navigate into the directory you just extracted from the archive, and start the daemon.

    cd blur-v0.1.9.9.6-linux_x86_64 && ./blurd

    Wait for sync to complete, open a new tab or terminal window, and then start the wallet:

    ./blur-wallet-cli

    Follow the prompts to setup a new wallet. When prompted for the password, the CLI will not show a password as you type, as echo has been turned off for password entry.

    Record the information for your wallet.

    You can mine from your wallet, using the start_mining <threads> command -- but using that method directly from the wallet is NOT recommended.

    Secure way to mine: Once you've generated a wallet address, issue the following command to a running daemon:

    start_mining <address> <# of threads>

    Example: start_mining bL4PdWFk3VVgEGYezGTXigHrsoJ3JGKgxKDi1gHXT7GKTLawFu3WMhu53Gc2KCmxxmCHbR4VEYMQ93PRv8vWgJ8j2mMHVEzLu 4

    Or: Use the following startup flags when launching the daemon:

    ./blurd --start-mining="<BLUR address>" --mining-threads="<num. threads>"

    Example: ./blurd --start-mining="bL4PdWFk3VVgEGYezGTXigHrsoJ3JGKgxKDi1gHXT7GKTLawFu3WMhu53Gc2KCmxxmCHbR4VEYMQ93PRv8vWgJ8j2mMHVEzLu" --mining-threads="4"

    You should see a message for each thread that reads: Mining started for thread[0] or something similar.

    To view your hashrate in real-time, use the command show_hr.

    Whenever you find a block, your daemon will show a bold message with the block # found. It is normal to experience a slight delay between that message and the balance reflecting in your wallet.

    Mining on Windows

    Download the latest release from our Releases page.

    Open your Downloads Library in your File Explorer. Extract the executables from the compressed archive, and navigate to the folder that you just extracted.

    Start the daemon by double-clicking the blurd.exe file.

    You will see a pop-up from your firewall. Be sure to check the box next to "Private Networks" if you are on a private network, or your daemon will not be able to sync with the network. If you daemon stalls while syncing, close and restart the program. You will not lose any blocks you have already synced with. Once your daemon is synced with the network...

    Start the wallet by double-clicking the blur-wallet-cli file. Follow the prompts to setup a new wallet. When prompted for the password, the CLI will not show a password as you type, as echo has been turned off for password entry.

    Record the information for your wallet.

    You can mine from your wallet, using the start_mining <threads> command -- but using that method directly from the wallet is NOT recommended.

    Secure way to mine: Once you've generated a wallet address, issue the following command to a running daemon:

    start_mining <address> <# of threads>

    Example: start_mining bL4PdWFk3VVgEGYezGTXigHrsoJ3JGKgxKDi1gHXT7GKTLawFu3WMhu53Gc2KCmxxmCHbR4VEYMQ93PRv8vWgJ8j2mMHVEzLu 4

    Or: Use the following startup flags when launching the daemon, from Powershell:

    blurd.exe --start-mining="<BLUR address>" --mining-threads="<num. threads>"

    Example: blurd.exe --start-mining="bL4PdWFk3VVgEGYezGTXigHrsoJ3JGKgxKDi1gHXT7GKTLawFu3WMhu53Gc2KCmxxmCHbR4VEYMQ93PRv8vWgJ8j2mMHVEzLu" --mining-threads="4"

    You should see a message for each thread that reads: Mining started for thread[0] or something similar.

    To view your hashrate in real-time, use the command show_hr.

    Whenever you find a block, your daemon will show a bold message with the block # found. It is normal to experience a slight delay between that message and the balance reflecting in your wallet.

    You should see the message: Mining started in daemon

    Switch back to the terminal or tab in which your daemon is running, and type show_hr for real-time hashrate monitoring. For further commands in either the wallet or the daemon, type help into either CLI. Note that the commands for the daemon and wallet are different.

    Whenever you find a block, your daemon will show a bold message with the block # found. There is a slight delay between that message and the balance reflecting in your wallet.

    How to Fix Synchronization Issues

    If you cannot synchronize with the network, kill your daemon & restart with the following options:

    Linux: cd to the directory you downloaded the files into, and type: ./blurd --add-priority-node="51.79.66.123:52541" --add-priority-node="51.79.64.184:52541" --add-priority-node="51.79.66.36:52541" --p2p-bind-port="52541" --rpc-bind-port="52542" --rpc-bind-ip="127.0.0.1"

    Windows: Open cmd.exe, cd to the directory you downloaded the files into, and type: blurd.exe --add-priority-node="51.79.66.123:52541" --add-priority-node="51.79.64.184:52541" --add-priority-node="51.79.66.36:52541" --p2p-bind-port="52541" --rpc-bind-port="52542" --rpc-bind-ip="127.0.0.1"

    This should fix the synchronizattion issue if the daemon does not connect to the seed nodes automatically.

    You can also see additional command-line options by running the daemon with the option --help. The program will return a list of startup flags and their descriptions.

    blur's People

    Contributors

    superman32432432 avatar who-biz 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

    Watchers

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

    blur's Issues

    Log reason for banning host

    I saw a message that one of my mining rigs banned another rig on my LAN, but no reason was given. It would be useful for some kind of reason to be logged, to aid in debugging.

    FYI I am also using the --allow-local-ip option

    Thread stack size seems too large.

    In src/cryptonote_config.h the macro for THREAD_STACK_SIZE is defaulted to 5*1024*1024 or 0x500000... This should probably be 0x80000 instead.

    This may be the cause behind the the strange behavior w.r.t. to hashrate declining when we use more cores in larger processors. We should not be allocating 5.24 MB per thread

    I'm sure boost::thread provides a way to allocate thread stack size in a way that is at least somewhat portable.

    please update root-zone trust-anchors in dns_utils.cpp

    Users of your software that enable DNSSEC will not be able to validate DNS after October the 11th 2018.

    Your repository contains a dns_utils.cpp file without the new DNSSEC trust-anchors:

    . IN DS 19036 8 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
    It should also include:

    . IN DS 20326 8 2 E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D

    More information can be found at: https://www.icann.org/resources/pages/ksk-rollover

    Please don’t hesitate to get in touch.

    Warmly,

    Roy Arends
    ICANN

    Prevent mining when disconnected from network

    I noticed that blurd will continue to mine after a suspend + resume when no internet access exists on resume. It will mine and use CPU resources indefinitely, not realizing it has no valid peers and no internet connection. Not even a valid interface, since there was no valid wifi connection nor ethernet connection.

    It seems that blurd could have heuristics to detect this edge case and stop mining, until it is reconnected to the network. Some heuristics might be OS-level detection of a working network interface that is not loopback, maybe via some kind of ping. A harder edge case is to detect when we have a valid internet connection but no packets (for whatever reason, such as firewall or misconfiguration) are getting through.

    Part of the issue seems related to the fact that in XMR world, it's valid for a single node to mine, while in BTC world, it's always required to have 2 nodes connected to enable mining.

    One idea is "If blur has not seen a block or message from a valid network peer in X minutes, have a 50% chance of stopping mining." This allows some nodes to stay online in case there is some actual bug in the difficulty adjustment algorithm or catastrophic network event. The main problem in fixing this issue seems to be how to correctly detect it, and not get false positives which would have a detrimental effect on the P2P health of the network.

    libnorm-dev does not exist in Ubuntu 16.04

    The line from readme cannot be copy+pasted to install dependencies on 16.04, because libnorm-dev does not exist. It also does not seem to be needed, as compiling works fine when removing that from the apt-get line.

    Prereqs missing for Mac build on Ubuntu

    Probably very few have tried building this project lately, I copied and pasted commands to build for Mac and, so far: pip needs to be installed, ez_setup needs to be pipped and

    home/ubuntu/blur/contrib/depends/work/download/native_cctools-807d6fd1be5d2224872e381870c0a75387fe05e6/clang-llvm-3.7.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz.temp: OK Extracting native_cctools... /home/ubuntu/blur/contrib/depends/sources/807d6fd1be5d2224872e381870c0a75387fe05e6.tar.gz: OK /home/ubuntu/blur/contrib/depends/sources/clang-llvm-3.7.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz: OK Preprocessing native_cctools... libtoolize: error: One of these is required: libtoolize: gm4 gnum4 m4 libtoolize: error: Please install GNU M4, or 'export M4=/path/to/gnu/m4'. ./autogen.sh: line 23: aclocal: command not found ./autogen.sh: line 24: autoconf: command not found ./autogen.sh: line 26: automake: command not found

    Some m4 fix? And probably more

    unspent_outputs N M does not seem to work

    I have various unspent outputs, when I try to filter the results to a range, the RPC does not seem to work. No matter what values of N and M I give, no results are returned.

    please update root-zone trust-anchors in dnssec_test.py file

    Users of your software that enable DNSSEC will not be able to validate DNS after October the 11th 2018.

    Your repository contains a dnssec_test.py file without the new DNSSEC trust-anchors:

    resolver.add_ta(". IN DS 19036 8 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5")

    It should also include:

    resolver.add_ta(". IN DS 20326 8 2 E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D")

    More information can be found at: https://www.icann.org/resources/pages/ksk-rollover

    Please don’t hesitate to get in touch.

    Warmly,

    Roy Arends
    ICANN

    Tail Emission Calculation is Incorrect and will not trigger until 0.2 BLUR per block is reached

    As You can see here

    #define FINAL_SUBSIDY_PER_MINUTE ((uint64_t)200000000000) /* 3 * pow(10, 11) */

    You have #define FINAL_SUBSIDY_PER_MINUTE ((uint64_t)200000000000) set Which was changed with commit f411ef3

    BLUR uses 12 Decimal points. According to the website https://blur.cash and your emission chart here https://docs.google.com/spreadsheets/d/12PcagebZLTjgf-aTmpKZX5Ck-p3QHOa834CKVyKy1m4 Blur is supposed to begin Tail Emission at 2 Coins per block.

    The correct parameter should be #define FINAL_SUBSIDY_PER_MINUTE ((uint64_t)2000000000000) (add a zero) to allow for 2 coins per block.

    It appears that you believe XMR will have a tail emission of 3 coins per block (Shown here https://discordapp.com/channels/453123992233181195/453123992736366594/508915394140962826 ) but in reality, it will be 0.6 XMR. Tail Emission is Calculated per minute and its set at 0.3 XMR per minute. XMR's block time is 2 minutes to block rewards will be 0.6 XMR per block because blocktime is 2 Minutes. BLURS block time is 1 Minute so the Tail Emission Calculation is cut in Half.

    See here for info on Moneros Tail Emission https://web.getmonero.org/resources/moneropedia/tail-emission.html

    Further Monero is already below a 3 coin block reward. It surprises me you haven't noticed this considering the issues you have raised over there.

    Anyways your Tail Emission is wrong. 0.2 BLUR per block not 2

    Cannot open CLI wallet of Blur

    Hello !
    There"s an error in CLI wallet so I can"t create or open blur-cli-wallet.ex.
    Here"s what it says : terminate called after throwing an instance of 'boost::system::system_error' what(): boost::filesystem::path codecvt to wstring: error
    I have for this time GUI walelt , but every time i want open it , it says couldnt open wallet : invalid password , so I have to all the way recover it from seed :/

    hope it will be fixed >3
    Kind Regards
    -Mathew S.

    Doesn't compile

    Hi, the source doesn't compile with Boost 1.58 as it's stated in the readme. It asks for boost 1.62 or higher - OR 1.58 with a line pointing cmake to openssl 1.0.

    I've tried building with boost 1.58 pointing to OpenSSL 1.0 but it doesnt compile.
    Also tried building with boost 1.67, no luck either.

    How do we build this?

    chain reset?

    hi
    was mining on windows, but latest release is linux only, restored wallet from seed but balance is now 0
    has the chain been reset?
    block height showing as 2107?

    Incorrect block hash appears periodically during sync

    Errors like this one pop up periodically while syncing if full verification is enabled

    src/cryptonote_protocol/cryptonote_protocol_handler.inl:1031 [xxx.xxx.xx.xxx:52541 OUT] Got block <c45c2622079c1abf1400000000000000697e28464e7f0000140a000000000000> with unknown parent <fd365d62f979f8651708a6eb7e543730c32ff261684e3a337ffce8dd6c633be7> which was not requested - querying block hashes

    The parent block exists... but obviously the block with cleared bits does not. The temporary stall in verification resolves itself, if the daemon is just left to its own devices.

    Not sure if this is happening due to a lack of proper locking during sync, or what. The fact that it resolves itself seems to imply that verification is either being disabled temporarily to move through the failure, or that the block is being popped and sync is beginning again from the rewind point.

    Build error on master

    [ 88%] Building CXX object src/daemon/CMakeFiles/daemon.dir/command_server.cpp.o
    [ 88%] Building CXX object src/daemon/CMakeFiles/daemon.dir/daemon.cpp.o
    [ 89%] Building CXX object src/daemon/CMakeFiles/daemon.dir/executor.cpp.o
    [ 90%] Building CXX object src/daemon/CMakeFiles/daemon.dir/main.cpp.o
    [ 90%] Building CXX object src/daemon/CMakeFiles/daemon.dir/rpc_command_executor.cpp.o
    /home/duke/git/blur/src/daemon/rpc_command_executor.cpp: In member function ‘bool daemonize::t_rpc_command_executor::show_status()’:
    /home/duke/git/blur/src/daemon/rpc_command_executor.cpp:451:152: error: expected ‘:’ before ‘)’ token
         % (!has_mining_info ? "mining info unavailable" : mining_busy ? "syncing" : mres.active ? std::string("mining at ") + get_mining_speed(mres.speed) ) : "not mining")
                                                                                                                                                            ^
    /home/duke/git/blur/src/daemon/rpc_command_executor.cpp:451:152: error: expected primary-expression before ‘)’ token
    /home/duke/git/blur/src/daemon/rpc_command_executor.cpp: At global scope:
    /home/duke/git/blur/src/daemon/rpc_command_executor.cpp:339:20: error: ‘std::__cxx11::string daemonize::get_fork_extra_info(uint64_t, uint64_t, uint64_t)’ defined but not used [-Werror=unused-function]
     static std::string get_fork_extra_info(uint64_t t, uint64_t now, uint64_t block_time)
                        ^
    cc1plus: all warnings being treated as errors
    src/daemon/CMakeFiles/daemon.dir/build.make:186: recipe for target 'src/daemon/CMakeFiles/daemon.dir/rpc_command_executor.cpp.o' failed
    make[3]: *** [src/daemon/CMakeFiles/daemon.dir/rpc_command_executor.cpp.o] Error 1
    make[3]: Leaving directory '/home/duke/git/blur/build/release'
    CMakeFiles/Makefile2:2840: recipe for target 'src/daemon/CMakeFiles/daemon.dir/all' failed
    make[2]: *** [src/daemon/CMakeFiles/daemon.dir/all] Error 2
    make[2]: Leaving directory '/home/duke/git/blur/build/release'
    Makefile:138: recipe for target 'all' failed
    make[1]: *** [all] Error 2
    make[1]: Leaving directory '/home/duke/git/blur/build/release'
    Makefile:64: recipe for target 'release-all' failed
    make: *** [release-all] Error 2
    

    on commit fb9b053

    $ uname -a
    Linux rig008 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    $ cc -v
    Using built-in specs.
    COLLECT_GCC=cc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.11' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)
    

    Issue opening windows blur-wallet-cli

    I'm getting a fatal error when attempting to open blur-wallet-cli with the newest update. Here is the error message:

    Terminate called after throwing an instance of 'boost::locale::conv::invalid_charset_error'
    what(): Invalid or unsupported charset:cp850

    Be more precise in text descriptions concerning hardware advantages

    There is a working GPU miner here
    https://github.com/fart-master/blur-miner
    Yet your website and marketing materials say this coin is CPU only mining. The website specifically is especially egregious, with statements like

    This is accomplished by favoring CPU-specific strengths

    and

    These specific aspects of the algorithm make mining with a traditional GPU too resource-intensive to be feasible, as the current technology requires all variable values to be known at compile-time.

    Neither of these statements are correct. The entire premise of this coin being CPU only mining is a fallacy. Please correct the website. Additionally this comment on the blur reddit page

    The Blur Network employs a custom algorithm for mining, called CryptoNight-Dynamic, which favors CPUs mining on full nodes.

    Is also misleading as both a GPU miner and a pool exist for this coin.

    Please correct the marketing materials for this coin to accurately relfect the state of affairs this coin is in

    v0.1.9 windows issue : Synchronization fail

    I start blurd.exe of v0.1.9 , it can't finish synchronization and continuely print like this:
    "SYNCHRONIZATION started
    2019-02-25 01:45:56.210 [P2P9] INFO global src/cryptonote_protocol/cryptono
    te_protocol_handler.inl:308 [144.217.122.134:13894 OUT] Sync data returned a
    new top block candidate: 342000 -> 343762 [Your node is 1762 blocks (1 days) be
    hind] " .......

    please tell me how to fix it .

    Clang v9.0.0 does not support ubuntu20.04 for cross-compiling

    In our depends build system, Clang v9.0.0 is not compatible with ubuntu 20.04 host. Presently discerning if this is the cause of our other issues in macOS cross-compilation.

    I've locally pulled in llvm 13.0.0, and this breaks boost compilation, due to a miscalculated "GCC" version (clang is apparently masquerading as GCC), which adds -fcoalesce-templates to boost's build config for darwin.

    I was able to move past this error (which others have encountered, see: zcash/zcash#4333), by manually modifiying in contrib/depends/work/build/x86_64-apple-darwin11/1_64_0/tools/build/src/tools/darwin.jam and removing this option.

    We need a patch for boost written into depends scripts.

    Enhancement: (Re-)Separation of view/spend key-pairs

    As mentioned in the discussion here: #53...

    Viewkeys are deterministic, currently (derived from the spendkey, of which the mnemonic is a representation). I think this is a disavowal of established best-practices, and to the best of my understanding, was eliminated because a single mnemonic couldn't be used to generate two distinctly unrelated keypairs. That was a problem for MyMonero mainly, and general usability. But since, we don't have any plans to use any solutions that are like MyMonero's requirement to divulge your keys... I dont see anything but good that could come from a reversion to that practice. A loss in usability maybe, but a worthwhile one for a gain in security.

    Enhancement: read electrum seeds from STDIN or a file

    Currently when using

    --restore-deterministic-wallet --electrum-seed "the seedphrase"

    it means that the seedphrase can be seen in a trivial ps output and will also potentially be in shell history. This is not just a short running process, when recovering a wallet and leaving it running, the seedphrase can be seen in the process arguments until the wallet is exited.

    Instead of the current behavior of giving an error if no seedphrase is specified, the wallet would attempt to read it from STDIN. There could also be a new --electrum-seed-file as well.

    [bug]blurd links libncurses for static build on mac

    output from otool -L blurd:

    blurd:
    	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
    	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
    	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
    

    This should not be happening. Possibly a problem with build environment. Issue is present with binaries specifically, compiled source should function fine on the host machine that compiles it -- but it won't be portable with this linkage

    Transaction split fee too low problem

    Splitting transaction is not successful (0.1.7).

    cli-wallet output:
    Sending 5000.000000000000. Your transaction needs to be split into 2 transactions. This will result in a transaction fee being applied to each transaction, for a total fee of 0.058338900000
    Is this okay? (Y/Yes/N/No): y
    Transaction successfully submitted, transaction <...db9e...920cf3...>
    You can check its status by using the show_transfers command.
    Error: transaction <...9e2b9...6d...89e2...cdb0...> was rejected by daemon with status: Failed
    Error: Reason: fee too low

    Description:
    At the start there is information that tx need to be split and higher fee will be needed but finally I got around 2000 transferred with information that fee is too low (I assume for the rest amount), so maybe there is problem in code adding that additional fee.
    I can see that further transfers are ending with same error but with only 1500 transferred from higher amount being submitted (around 4 of them in total).

    1. first time i have sent 1000 w/o problems
    2. second transfer for 9000 I got message about higher fee and I agreed to it but only 2000 were sent.
    3. further 3 transfers, each time i tried to send 5000 where ending up with the same message (higher fee) but finally transfer was made only for 1500 for each of them (i accepted of course higher fee)
    4. last transfer I made for 2350 was done w/o problem

    Biz suggested on Discord it may be problem with not having enough BLUR to cover fees, but this is not the case. There is more than enough to cover them.

    Block 991693?

    Hey

    I compiled blurd on my two Ubuntus, 16 and 19, and both daemons are stuck at 991693 , any ideas?

    Transaction pool on explorer not displaying transactions

    tx pool is not showing on explorer. probably due to the removal of the dns-related parameter from an associated function recently. needs looked into ASAP... (Note: transactions are functioning perfectly fine. it is only the mempool that is not displaying)

    Sync gets stuck on Windows CLI

    I started a new node with the most recent version of the CLI and syncing became stuck many times throughout the process. Restarting blurd temporarily resolved the issue. The time between getting stuck was inconsistent. Anywhere from 1,000 - 60,000 blocks. No new message is displayed when sync stopped. Syncing could complete after many restarts.

    My operating system is Windows 10, 64bit

    ChaCha20Poly1305: Nonce is not incremented above 2^70, allowing for inadvertent reuse

    This is security-breaking behavior, potentially. Simply generating a random nonce each time is not sufficient in this scenario. We need to use a counter as well, to ensure that we don't use a given nonce + MAC key more than once for the same encrypted information.

    This takes place here: https://github.com/blur-network/blur/blob/master/src/crypto/chacha.c#L142
    And has relevance here:

    cache_file_data.iv = crypto::rand<crypto::chacha_iv>();

    ... among other places, too.

    For the implications of what this inadvertent reuse could result in, see:
    https://github.com/miscreant/miscreant/wiki/Nonce-Reuse-Misuse-Resistance

    This was mentioned as a prospective change in #53

    Documentation explaining Blur interoperability

    I'm a researcher in the blockchain space and I recently stumbled upon the Blur Network. One of the claims made is that it aims to be interoperable with BTC, XMR and ZEC. However, there is no documentation explaining the mechanisms used to achieve this. Is there any documentation I can read to learn more about this?

    Enhancement: Mnemonic seeds and keys are not handled securely

    Since our mnemonic seed is a representation of the private spendkey, we should take better care to ensure that it is not trivially read from some plain-text source. This issue was raised by a member of our Telegram chat.

    We should be using some secure storage mechanism (like that which libhydrogen provides for stored representations of passwords, for example) to protect users from phishing attacks.

    We should also avoid displaying the key as a default behavior. Giving users a choice to display key, or even using something like GPGme to securely store the key in a file, or something, would probably be better.

    blur mines coins but they don't appear in wallet

    Here is the log from the e26 tx forward:

    2018-11-07 15:58:36.672 11692 INFO msgwriter src/common/scoped_message_writer.h:102 Background refresh thread started
    2018-11-07 20:37:06.076 16208 WARN wallet.wallet2 src/wallet/wallet2.cpp:1306 Received money: 7.062623615487, with tx:
    2018-11-07 20:37:06.076 16208 INFO msgwriter src/common/scoped_message_writer.h:102
    Height 188398, txid , 7.062623615487, idx 0/0
    2018-11-07 20:40:13.823 16208 WARN wallet.wallet2 src/wallet/wallet2.cpp:2469 Detaching blockchain on height 188398
    2018-11-07 20:40:13.823 16208 WARN wallet.wallet2 src/wallet/wallet2.cpp:2529 Detached blockchain on height 188398, transfers detached 0, blocks detached 1
    2018-11-08 00:05:11.208 16208 WARN wallet.wallet2 src/wallet/wallet2.cpp:1306 Received money: 7.061256452300, with tx: <720281ba5c0a06f81a3879c69f63c53b4461d97dba6cbdf0189f48112b2cd3b3>
    2018-11-08 00:05:11.208 16208 INFO msgwriter src/common/scoped_message_writer.h:102
    Height 188601, txid <720281ba5c0a06f81a3879c69f63c53b4461d97dba6cbdf0189f48112b2cd3b3>, 7.061256452300, idx 0/0
    2018-11-08 00:08:18.955 16208 WARN wallet.wallet2 src/wallet/wallet2.cpp:2469 Detaching blockchain on height 188601
    2018-11-08 00:08:18.955 16208 WARN wallet.wallet2 src/wallet/wallet2.cpp:2529 Detached blockchain on height 188601, transfers detached 0, blocks detached 1
    2018-11-08 02:22:49.766 11692 INFO msgwriter src/common/scoped_message_writer.h:102 Currently selected account: [0] Primary account
    2018-11-08 02:22:49.782 11692 INFO msgwriter src/common/scoped_message_writer.h:102 Tag: (No tag assigned)
    2018-11-08 02:22:49.782 11692 INFO msgwriter src/common/scoped_message_writer.h:102 Balance: 0.000000000000, unlocked balance: 0.000000000000
    2018-11-08 03:07:41.172 11692 INFO msgwriter src/common/scoped_message_writer.h:102 Currently selected account: [0] Primary account
    2018-11-08 03:07:41.172 11692 INFO msgwriter src/common/scoped_message_writer.h:102 Tag: (No tag assigned)
    2018-11-08 03:07:41.172 11692 INFO msgwriter src/common/scoped_message_writer.h:102 Balance: 0.000000000000, unlocked balance: 0.000000000000
    2018-11-08 03:15:04.734 15208 INFO logging contrib/epee/src/mlog.cpp:237 New log categories: *:WARNING,net:FATAL,net.http:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO
    2018-11-08 03:15:04.734 15208 INFO msgwriter src/common/scoped_message_writer.h:102 This is the command line BLUR wallet. It needs to connect to a BLUR daemon to work correctly.

    2018-11-08 03:15:05.015 15208 INFO msgwriter src/common/scoped_message_writer.h:102 BLUR 'Lustrous Nebula (CNv8)' (v0.1.7.6-d5fa358)
    2018-11-08 03:15:05.187 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Logging to C:\Users\plasma\Downloads\blur-v0.1.7-win-x86_64\blur-wallet-cli.log
    2018-11-08 03:15:07.468 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Wallet and key files found, loading...
    2018-11-08 03:15:13.406 15208 WARN wallet.wallet2 src/wallet/wallet2.cpp:3797 Loaded wallet keys file, with public address: bL4k37mxbQCEHskkW5rSFTLryDCitJmJE2jJGTFHWgo37bKowg48tizUzBEwy7w2PpPNoWrby8wduMiAoUtfJQd41GpapjbuL
    2018-11-08 03:15:13.515 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Opened wallet: bL4k37mxbQCEHskkW5rSFTLryDCitJmJE2jJGTFHWgo37bKowg48tizUzBEwy7w2PpPNoWrby8wduMiAoUtfJQd41GpapjbuL
    2018-11-08 03:15:13.625 15208 INFO msgwriter src/common/scoped_message_writer.h:102 **********************************************************************
    Use the "help" command to see the list of available commands.
    Use "help " to see a command's documentation.


    2018-11-08 03:15:13.859 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Starting refresh...
    2018-11-08 03:15:13.906 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Refresh done, blocks received: 1
    2018-11-08 03:15:13.906 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Untagged accounts:
    2018-11-08 03:15:13.906 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Account Balance Unlocked balance Label
    2018-11-08 03:15:13.906 15208 INFO msgwriter src/common/scoped_message_writer.h:102 * 0 bL4k37 0.000000000000 0.000000000000 Primary account
    2018-11-08 03:15:13.906 15208 INFO msgwriter src/common/scoped_message_writer.h:102 ----------------------------------------------------------------------------------
    2018-11-08 03:15:13.906 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Total 0.000000000000 0.000000000000
    2018-11-08 03:15:13.906 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Currently selected account: [0] Primary account
    2018-11-08 03:15:13.969 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Tag: (No tag assigned)
    2018-11-08 03:15:13.969 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Balance: 0.000000000000, unlocked balance: 0.000000000000
    2018-11-08 03:15:13.969 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Background refresh thread started
    2018-11-08 03:15:16.391 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Currently selected account: [0] Primary account
    2018-11-08 03:15:16.391 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Tag: (No tag assigned)
    2018-11-08 03:15:16.422 15208 INFO msgwriter src/common/scoped_message_writer.h:102 Balance: 0.000000000000, unlocked balance: 0.000000000000
    2018-11-08 03:31:44.528 10260 INFO logging contrib/epee/src/mlog.cpp:237 New log categories: *:WARNING,net:FATAL,net.http:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO
    2018-11-08 03:31:44.528 10260 INFO msgwriter src/common/scoped_message_writer.h:102 This is the command line BLUR wallet. It needs to connect to a BLUR daemon to work correctly.

    2018-11-08 03:31:44.528 10260 INFO msgwriter src/common/scoped_message_writer.h:102 BLUR 'Lustrous Nebula (CNv8)' (v0.1.7.6-d5fa358)
    2018-11-08 03:31:44.528 10260 INFO msgwriter src/common/scoped_message_writer.h:102 Logging to C:\Users\plasma\Downloads\blur-v0.1.7-win-x86_64\blur-wallet-cli.log
    2018-11-08 03:31:48.137 10260 INFO msgwriter src/common/scoped_message_writer.h:102 Wallet and key files found, loading...
    2018-11-08 03:31:50.512 10260 WARN wallet.wallet2 src/wallet/wallet2.cpp:3797 Loaded wallet keys file, with public address: bL4k37mxbQCEHskkW5rSFTLryDCitJmJE2jJGTFHWgo37bKowg48tizUzBEwy7w2PpPNoWrby8wduMiAoUtfJQd41GpapjbuL
    2018-11-08 03:31:50.544 10260 INFO msgwriter src/common/scoped_message_writer.h:102 Opened wallet: bL4k37mxbQCEHskkW5rSFTLryDCitJmJE2jJGTFHWgo37bKowg48tizUzBEwy7w2PpPNoWrby8wduMiAoUtfJQd41GpapjbuL
    2018-11-08 03:31:50.544 10260 INFO msgwriter src/common/scoped_message_writer.h:102 **********************************************************************
    Use the "help" command to see the list of available commands.
    Use "help " to see a command's documentation.


    2018-11-08 03:31:50.544 10260 ERROR msgwriter src/common/scoped_message_writer.h:102 Error: Unknown command: logger %loc %msg
    2018-11-08 03:34:31.913 16296 INFO logging contrib/epee/src/mlog.cpp:237 New log categories: *:WARNING,net:FATAL,net.http:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO
    2018-11-08 03:34:31.913 16296 INFO msgwriter src/common/scoped_message_writer.h:102 This is the command line BLUR wallet. It needs to connect to a BLUR daemon to work correctly.

    2018-11-08 03:34:31.913 16296 INFO msgwriter src/common/scoped_message_writer.h:102 BLUR 'Lustrous Nebula (CNv8)' (v0.1.7.6-d5fa358)
    2018-11-08 03:34:31.913 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Logging to C:\Users\plasma\Downloads\blur-v0.1.7-win-x86_64\blur-wallet-cli.log
    2018-11-08 03:34:34.304 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Wallet and key files found, loading...
    2018-11-08 03:34:36.664 16296 WARN wallet.wallet2 src/wallet/wallet2.cpp:3797 Loaded wallet keys file, with public address: bL4k37mxbQCEHskkW5rSFTLryDCitJmJE2jJGTFHWgo37bKowg48tizUzBEwy7w2PpPNoWrby8wduMiAoUtfJQd41GpapjbuL
    2018-11-08 03:34:36.695 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Opened wallet: bL4k37mxbQCEHskkW5rSFTLryDCitJmJE2jJGTFHWgo37bKowg48tizUzBEwy7w2PpPNoWrby8wduMiAoUtfJQd41GpapjbuL
    2018-11-08 03:34:36.695 16296 INFO msgwriter src/common/scoped_message_writer.h:102 **********************************************************************
    Use the "help" command to see the list of available commands.
    Use "help " to see a command's documentation.


    2018-11-08 03:34:36.711 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Starting refresh...
    2018-11-08 03:34:36.726 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Refresh done, blocks received: 17
    2018-11-08 03:34:36.726 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Untagged accounts:
    2018-11-08 03:34:36.758 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Account Balance Unlocked balance Label
    2018-11-08 03:34:36.758 16296 INFO msgwriter src/common/scoped_message_writer.h:102 * 0 bL4k37 0.000000000000 0.000000000000 Primary account
    2018-11-08 03:34:36.820 16296 INFO msgwriter src/common/scoped_message_writer.h:102 ----------------------------------------------------------------------------------
    2018-11-08 03:34:36.820 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Total 0.000000000000 0.000000000000
    2018-11-08 03:34:36.820 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Currently selected account: [0] Primary account
    2018-11-08 03:34:36.820 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Tag: (No tag assigned)
    2018-11-08 03:34:36.820 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Balance: 0.000000000000, unlocked balance: 0.000000000000
    2018-11-08 03:34:36.836 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Background refresh thread started
    2018-11-08 03:34:48.446 16296 INFO msgwriter src/common/scoped_message_writer.h:102 Mining started in daemon

    unknown command: show_hr

    I have latest version from github and my blur-wallet-cli don't kwno this option

    same in blur-v0.1.9.9.5-linux_x86_64 from snap.

    Enhancement: rewrite of epee library (partial, at least)

    Not liking the things in that library. Historically, its been a source of a fairly large problem at least once (Cisco Talos). Comments in code don't seem to be happy with it either... which draws similar attention to p2p.

    • IP addressess handled irresponsibly...
    • Removed a gif-content-type from the http_base.h header file
    • For some reason we have code that handles all kinds of media/web files (?)
      -
      template<class t_connection_context>
      std::string simple_http_connection_handler<t_connection_context>::get_file_mime_tipe(const std::string& path)
      {
      std::string result;
      std::string ext = string_tools::get_extension(path);
      if(!string_tools::compare_no_case(ext, "gif"))
      result = "image/gif";
      else if(!string_tools::compare_no_case(ext, "jpg"))
      result = "image/jpeg";
      else if(!string_tools::compare_no_case(ext, "html"))
      result = "text/html";
      else if(!string_tools::compare_no_case(ext, "htm"))
      result = "text/html";
      else if(!string_tools::compare_no_case(ext, "js"))
      result = "application/x-javascript";
      else if(!string_tools::compare_no_case(ext, "css"))
      result = "text/css";
      else if(!string_tools::compare_no_case(ext, "xml"))
      result = "application/xml";
      else if(!string_tools::compare_no_case(ext, "svg"))
      result = "image/svg+xml";
      return result;
      }
      //-----------------------------------------------------------------------------------
      (Surely, most of this is probably very unnecessary)

    Consider partial rewrite.

    Social media?

    Hello

    Is there any sort of discord / telegram / twitter channel for this project?

    Or is this just at test project?

    unable to connect to seed nodes

    2018-06-20 12:36:01.392 [P2P8] WARN net.p2p src/p2p/net_node.inl:1161
    Failed to connect to any of seed peers, continuing without seeds
    2018-06-20 12:36:01.392 [P2P8] INFO net.p2p src/p2p/net_node.inl:1217
    Failed to connect to any, trying seeds
    2018-06-20 12:36:01.392 [P2P8] DEBUG net.p2p src/p2p/net_node.inl:906
    Connecting to 144.202.62.30:18094(peer_type=1, last_seen: never)...
    2018-06-20 12:36:01.392 [P2P8] DEBUG net.p2p contrib/epee/src/connection_basi
    c.cpp:163 Spawned connection p2p#6 to 0.0.0.0 currently we have sockets co
    unt:2

    1.7.6 wallet issue

    Mining bat from 1.7.5 and previous doesn't work.
    I get : Unknown command: logger %loc %msg

    Opening wallet from 1.7.5 fails on invalid password, but create new wallet works, and from that, start_mining works and starts mining in daemon ok. But old wallet can't be opened.

    Build error on Ubuntu 19.04

    On a new 19.04 machine I installed only the necessary (not optional packages)

    -- Found Boost Version: 106700
    -- Could NOT find Readline (missing: Readline_INCLUDE_DIR Readline_LIBRARY) 
    -- Looking for rl_copy_text
    -- Looking for rl_copy_text - not found
    -- Looking for rl_filename_completion_function
    -- Looking for rl_filename_completion_function - not found
    -- Looking for rl_copy_text
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    Readline_LIBRARY
        linked by target "cmTC_57c21" in directory /home/duke/git/blur/build/release/CMakeFiles/CMakeTmp
    
    CMake Error at /usr/share/cmake-3.13/Modules/CheckFunctionExists.cmake:72 (try_compile):
      Failed to configure test project build system.
    Call Stack (most recent call first):
      cmake/FindReadline.cmake:70 (check_function_exists)
      CMakeLists.txt:825 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/duke/git/blur/build/release/CMakeFiles/CMakeOutput.log".
    See also "/home/duke/git/blur/build/release/CMakeFiles/CMakeError.log".
    make: *** [Makefile:65: release-all] Error 1
    ~/git/blur$ cmake --version
    cmake version 3.13.4
    

    This happened on commit 565ebaf

    Issue with syncing on fresh Ubuntu 18.04.1LTS.

    Running the binaries, no compiling here.
    Machine is a quadsocket E7-4870 server.

    It cycles the following after starting the node with:

    ./blurd --add-priority-node 178.128.191.245:13894 --seed-node 178.128.180.136:13894 --add-priority-node 178.128.186.101:13894 --p2p-bind-port 13894 --rpc-bind-port 13895 --rpc-bind-ip 127.0.0.1 --log-level 3

    2018-12-10 23:29:33.407 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:546 do_send_chunk() NOW just queues: packet=226 B, is added to queue-size=2
    2018-12-10 23:29:33.407 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:549 [178.128.180.136:13894 OUT] [sock 25] Async send requested 33
    2018-12-10 23:29:33.407 [P2P2] TRACE net contrib/epee/include/net/levin_protocol_handler_async.h:295 [178.128.180.136:13894 OUT] [levin_protocol] -->> start_outer_call
    2018-12-10 23:29:33.407 [P2P2] DEBUG net contrib/epee/include/net/levin_protocol_handler_async.h:168 [178.128.180.136:13894 OUT] anvoke_handler, timeout: 5000
    2018-12-10 23:29:33.407 [P2P2] TRACE net contrib/epee/include/net/levin_protocol_handler_async.h:306 [178.128.180.136:13894 OUT] [levin_protocol] <<-- finish_outer_call
    2018-12-10 23:29:33.407 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:245 [178.128.180.136:13894 OUT] [sock 25] release
    2018-12-10 23:29:33.407 [P2P5] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:747 handle_write() NOW SENDS: packet=226 B, from queue size=1
    2018-12-10 23:29:33.408 [P2P5] TRACE net.p2p contrib/epee/src/connection_basic.cpp:266 handler_write (after write, from queue=1) - before ASIO write, for packet=226 B (after sleep)
    2018-12-10 23:29:33.408 [P2P5] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:712 [178.128.180.136:13894 OUT] [sock 25] Async send calledback 226
    2018-12-10 23:29:33.408 [P2P5] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:316 dbg >>> global-OUT: speed is A= 30.1622 vs Max=2.09715e+06 so sleep: D=-9.68084 sec E= 292 (Enow= 518) M=2.09715e+06 W= 9.681 R=2.03022e+07 Wgood 11 History: [33 0 0 0 0 0 0 259 0 0 ] m_last_sample_time= 9936.68
    2018-12-10 23:29:33.408 [P2P5] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:218 Throttle >>> global-OUT: packet of ~226b (from 226 b) Speed AVG= 0[w=9.681] 0[w=9.681] / Limit=2048 KiB/sec [259 0 0 0 0 0 0 259 0 0 ]
    2018-12-10 23:29:33.827 [P2P6] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:358 [sock 25] Some not success at read: End of file:2
    2018-12-10 23:29:33.827 [P2P6] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:366 [sock 25] peer closed connection
    2018-12-10 23:29:38.407 [P2P7] INFO net contrib/epee/include/net/levin_protocol_handler_async.h:174 [178.128.180.136:13894 OUT] Timeout on invoke operation happened, command: 1001 timeout: 5000
    2018-12-10 23:29:38.408 [P2P7] INFO net contrib/epee/include/storages/levin_abstract_invoke2.h:122 Failed to invoke command 1001 return code -4
    2018-12-10 23:29:38.408 [P2P7] WARN net.p2p src/p2p/net_node.inl:702 [178.128.180.136:13894 OUT] COMMAND_HANDSHAKE invoke failed. (-4, LEVIN_ERROR_CONNECTION_TIMEDOUT)
    2018-12-10 23:29:38.408 [P2P2] WARN net.p2p src/p2p/net_node.inl:751 [178.128.180.136:13894 OUT] COMMAND_HANDSHAKE Failed
    2018-12-10 23:29:38.408 [P2P7] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:618 Closed connection from host 178.128.180.136: 1
    2018-12-10 23:29:38.408 [P2P7] TRACE net contrib/epee/include/net/levin_protocol_handler_async.h:306 [178.128.180.136:13894 OUT] [levin_protocol] <<-- finish_outer_call
    2018-12-10 23:29:38.409 [P2P2] INFO net.p2p src/p2p/net_node.inl:928 [178.128.180.136:13894 OUT] Failed to HANDSHAKE with peer 178.128.180.136:13894
    2018-12-10 23:29:38.409 [P2P7] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:245 [178.128.180.136:13894 OUT] [sock 25] release
    2018-12-10 23:29:38.409 [P2P7] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:105 [sock 25] Socket destroyed
    2018-12-10 23:29:38.409 [P2P2] DEBUG net.p2p src/p2p/net_node.inl:899 Connecting to 178.128.186.101:13894(peer_type=1, last_seen: never)...
    2018-12-10 23:29:38.409 [P2P7] INFO net.p2p src/p2p/net_node.inl:1770 [178.128.180.136:13894 d71a0a5d-f3d3-ea0a-8922-21edaef4fd12 OUT] CLOSE CONNECTION
    2018-12-10 23:29:38.409 [P2P7] TRACE net contrib/epee/include/net/levin_protocol_handler_async.h:290 [178.128.180.136:13894 OUT] ~async_protocol_handler()
    2018-12-10 23:29:38.409 [P2P2] DEBUG net.p2p contrib/epee/src/connection_basic.cpp:163 Spawned connection p2p#205 to 0.0.0.0 currently we have sockets count:3
    2018-12-10 23:29:38.409 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:92 test, connection constructor set m_connection_type=2
    2018-12-10 23:29:38.409 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:1088 connections_ size now 1
    2018-12-10 23:29:38.409 [P2P7] DEBUG net.p2p contrib/epee/src/connection_basic.cpp:171 Destructing connection p2p#204 to 178.128.180.136
    2018-12-10 23:29:39.614 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:1168 Some problems at connect, message: Connection refused
    2018-12-10 23:29:39.614 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:101 [sock -1] Socket destroyed without shutdown.
    2018-12-10 23:29:39.614 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:105 [sock -1] Socket destroyed
    2018-12-10 23:29:39.614 [P2P2] TRACE net contrib/epee/include/net/levin_protocol_handler_async.h:290 [0.0.0.0:0 OUT] ~async_protocol_handler()
    2018-12-10 23:29:39.614 [P2P2] DEBUG net.p2p contrib/epee/src/connection_basic.cpp:171 Destructing connection p2p#205 to 0.0.0.0
    2018-12-10 23:29:39.614 [P2P2] INFO net.p2p src/p2p/net_node.inl:915 [0.0.0.0:0 OUT] [priority]Connect failed to 178.128.186.101:13894
    2018-12-10 23:29:39.614 [P2P2] DEBUG net.p2p src/p2p/net_node.inl:899 Connecting to 178.128.191.245:13894(peer_type=1, last_seen: never)...
    2018-12-10 23:29:39.614 [P2P2] DEBUG net.p2p contrib/epee/src/connection_basic.cpp:163 Spawned connection p2p#206 to 0.0.0.0 currently we have sockets count:2
    2018-12-10 23:29:39.614 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:92 test, connection constructor set m_connection_type=2
    2018-12-10 23:29:39.614 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:1088 connections_ size now 1
    2018-12-10 23:29:40.365 [P2P1] TRACE net.cn src/cryptonote_protocol/cryptonote_protocol_handler.inl:1205 Checking for idle peers...
    2018-12-10 23:29:40.365 [P2P1] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:1684 BlockchainLMDB::for_all_txpool_txes
    2018-12-10 23:29:40.365 [P2P1] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:2821 BlockchainLMDB::block_rtxn_start
    2018-12-10 23:29:40.366 [P2P1] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:316 mdb_txn_safe: destructor
    2018-12-10 23:29:40.832 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:1168 Some problems at connect, message: Connection refused
    2018-12-10 23:29:40.832 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:101 [sock -1] Socket destroyed without shutdown.
    2018-12-10 23:29:40.832 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:105 [sock -1] Socket destroyed
    2018-12-10 23:29:40.832 [P2P2] TRACE net contrib/epee/include/net/levin_protocol_handler_async.h:290 [0.0.0.0:0 OUT] ~async_protocol_handler()
    2018-12-10 23:29:40.832 [P2P2] DEBUG net.p2p contrib/epee/src/connection_basic.cpp:171 Destructing connection p2p#206 to 0.0.0.0
    2018-12-10 23:29:40.832 [P2P2] INFO net.p2p src/p2p/net_node.inl:915 [0.0.0.0:0 OUT] [priority]Connect failed to 178.128.191.245:13894
    2018-12-10 23:29:40.832 [P2P2] DEBUG net.p2p src/p2p/net_node.inl:899 Connecting to 178.128.180.136:13894(peer_type=1, last_seen: never)...
    2018-12-10 23:29:40.833 [P2P2] DEBUG net.p2p contrib/epee/src/connection_basic.cpp:163 Spawned connection p2p#207 to 0.0.0.0 currently we have sockets count:2
    2018-12-10 23:29:40.833 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:92 test, connection constructor set m_connection_type=2
    2018-12-10 23:29:40.833 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:1088 connections_ size now 1
    2018-12-10 23:29:41.042 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:1174 Connected success to 178.128.180.136:13894
    2018-12-10 23:29:41.043 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:160 [sock 25] new connection from 178.128.180.136:13894 OUT to 192.168.2.236:43008, total sockets objects 2
    2018-12-10 23:29:41.043 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:616 New connection from host 178.128.180.136: 0
    2018-12-10 23:29:41.043 [P2P2] INFO net.p2p src/p2p/net_node.inl:1755 [178.128.180.136:13894 3297c0dc-639d-f649-dd75-2671da1aeec9 OUT] NEW CONNECTION
    2018-12-10 23:29:41.043 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:284 connection type P2P 192.168.2.236:43008 <--> 178.128.180.136:13894
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain src/cryptonote_core/blockchain.cpp:633 Blockchain::get_tail_id
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:2034 BlockchainLMDB::height
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:2821 BlockchainLMDB::block_rtxn_start
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:316 mdb_txn_safe: destructor
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain src/cryptonote_core/blockchain.cpp:641 Blockchain::get_tail_id
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:2006 BlockchainLMDB::top_block_hash
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:2034 BlockchainLMDB::height
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:2821 BlockchainLMDB::block_rtxn_start
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:316 mdb_txn_safe: destructor
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:1955 BlockchainLMDB::get_block_hash_from_height
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:2821 BlockchainLMDB::block_rtxn_start
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:316 mdb_txn_safe: destructor
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:1892 BlockchainLMDB::get_block_cumulative_difficulty height: 0
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:2821 BlockchainLMDB::block_rtxn_start
    2018-12-10 23:29:41.044 [P2P2] TRACE blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:316 mdb_txn_safe: destructor
    2018-12-10 23:29:41.044 [P2P2] TRACE net contrib/epee/include/net/levin_protocol_handler_async.h:295 [178.128.180.136:13894 OUT] [levin_protocol] -->> start_outer_call
    2018-12-10 23:29:41.044 [P2P2] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:183 Moving counter buffer by 1 second 9936 < 9944 (last time 9936.68)
    2018-12-10 23:29:41.044 [P2P2] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:218 Throttle throttle_speed_out: packet of ~33b (from 33 b) Speed AVG= 0[w=1] 0[w=1] / Limit=16 KiB/sec [33 0 0 0 0 0 0 0 0 0 ]
    2018-12-10 23:29:41.044 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:561 do_send_chunk() NOW SENSD: packet=33 B
    2018-12-10 23:29:41.044 [P2P2] TRACE net.p2p contrib/epee/src/connection_basic.cpp:260 handler_write (direct) - before ASIO write, for packet=33 B (after sleep)
    2018-12-10 23:29:41.044 [P2P2] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:218 Throttle throttle_speed_out: packet of ~226b (from 226 b) Speed AVG= 0[w=1] 0[w=1] / Limit=16 KiB/sec [259 0 0 0 0 0 0 0 0 0 ]
    2018-12-10 23:29:41.044 [P2P0] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:712 [178.128.180.136:13894 OUT] [sock 25] Async send calledback 33
    2018-12-10 23:29:41.044 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:183 Moving counter buffer by 1 second 9936 < 9944 (last time 9936.68)
    2018-12-10 23:29:41.045 [P2P2] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:546 do_send_chunk() NOW just queues: packet=226 B, is added to queue-size=2
    2018-12-10 23:29:41.045 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:183 Moving counter buffer by 1 second 9937 < 9944 (last time 9937.68)
    2018-12-10 23:29:41.045 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:549 [178.128.180.136:13894 OUT] [sock 25] Async send requested 33
    2018-12-10 23:29:41.045 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:183 Moving counter buffer by 1 second 9938 < 9944 (last time 9938.68)
    2018-12-10 23:29:41.045 [P2P2] TRACE net contrib/epee/include/net/levin_protocol_handler_async.h:295 [178.128.180.136:13894 OUT] [levin_protocol] -->> start_outer_call
    2018-12-10 23:29:41.045 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:183 Moving counter buffer by 1 second 9939 < 9944 (last time 9939.68)
    2018-12-10 23:29:41.045 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:183 Moving counter buffer by 1 second 9940 < 9944 (last time 9940.68)
    2018-12-10 23:29:41.045 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:183 Moving counter buffer by 1 second 9941 < 9944 (last time 9941.68)
    2018-12-10 23:29:41.045 [P2P2] DEBUG net contrib/epee/include/net/levin_protocol_handler_async.h:168 [178.128.180.136:13894 OUT] anvoke_handler, timeout: 5000
    2018-12-10 23:29:41.045 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:183 Moving counter buffer by 1 second 9942 < 9944 (last time 9942.68)
    2018-12-10 23:29:41.046 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:183 Moving counter buffer by 1 second 9943 < 9944 (last time 9943.68)
    2018-12-10 23:29:41.046 [P2P2] TRACE net contrib/epee/include/net/levin_protocol_handler_async.h:306 [178.128.180.136:13894 OUT] [levin_protocol] <<-- finish_outer_call
    2018-12-10 23:29:41.047 [P2P2] TRACE net contrib/epee/include/net/abstract_tcp_server2.inl:245 [178.128.180.136:13894 OUT] [sock 25] release
    2018-12-10 23:29:41.048 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:316 dbg >>> global-OUT: speed is A= 27.7957 vs Max=2.09715e+06 so sleep: D=-9.31787 sec E= 259 (Enow= 292) M=2.09715e+06 W= 9.318 R=1.9541e+07 Wgood 11 History: [0 0 0 0 0 0 0 0 259 0 ] m_last_sample_time= 9944.32
    2018-12-10 23:29:41.048 [P2P0] TRACE net.throttle contrib/epee/src/network_throttle-detail.cpp:218 Throttle >>> global-OUT: packet of ~33b (from 33 b) Speed AVG= 0[w=9.321] 0[w=9.321] / Limit=2048 KiB/sec [33 0 0 0 0 0 0 0 259 0 ]
    2018-12-10 23:29:41.048 [P2P0] DEBUG net contrib/epee/include/net/abstract_tcp_server2.inl:747 handle_write() NOW SENDS: packet=226 B, from queue size=1

    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.