Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More updates from Pivx Upstream #177

Open
wants to merge 283 commits into
base: master
Choose a base branch
from
Open

More updates from Pivx Upstream #177

wants to merge 283 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Mar 14, 2020

  1. Configuration menu
    Copy the full SHA
    7a730b1 View commit details
    Browse the repository at this point in the history
  2. build: Build system changes to support only Qt5

    (cherry picked from commit bad068a)
    laanwj authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    f4a667b View commit details
    Browse the repository at this point in the history
  3. gui: Remove QT_VERSION fallbacks for Qt < 5

    There were surprisingly many `#ifdef` fallbacks for Qt 4.
    
    Removing them simplifies maintenance, as well as adding new GUI
    functionality.
    
    (cherry picked from commit 907f73b)
    laanwj authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    b6a6c58 View commit details
    Browse the repository at this point in the history
  4. [Docu] Add missing automake dependency

    Mrs-X authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    824dfc2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ce74323 View commit details
    Browse the repository at this point in the history
  6. [Wallet] Avoid autocombine getting stuck

    Fix an edge case where autocombine would get stuck if available
    UTXOs are low in value compared to autocombine threshold
    Warrows authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    3825283 View commit details
    Browse the repository at this point in the history
  7. [Build] Remove stale m4 file

    This file has not been used in quite a while, nuke it from orbit.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    ebc70d7 View commit details
    Browse the repository at this point in the history
  8. [RPC]: Don't allow backupwallet to overwrite the wallet-in-use

    Prevent file access collisions and possible file corruption by refusing
    to overwrite the current wallet in use.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    5b38882 View commit details
    Browse the repository at this point in the history
  9. GCC-7 and glibc-2.27 compat code

    (cherry picked from commit 908c1d7)
    ken2812221 authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    85b685a View commit details
    Browse the repository at this point in the history
  10. Use IN6ADDR_ANY_INIT instead of in6addr_any

    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    d475dc3 View commit details
    Browse the repository at this point in the history
  11. [Refactor] Remove GetCoinAge

    This function is never used, and never will be; Nuke it from orbit.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    6c87548 View commit details
    Browse the repository at this point in the history
  12. [RPC] Fix verifychain

    verifychain only accepts a single (optional) argument instead of two,
    and we need to capture that argument properly.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    d7b5832 View commit details
    Browse the repository at this point in the history
  13. [RPC] Sanitize walletpassphrase timeout argument

    Properly return an error when attempting to use a negative timeout. Also
     sanitize the timeout so as to not cause a value error with libevent on
     MacOS.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    0f71c50 View commit details
    Browse the repository at this point in the history
  14. [RPC] Fix movecmd's help description to include amount

    Even though this command is all but deprecated, it's help output and
    example were incorrect and deserving of an update.
    
    amount is the 3rd paramater, and is required. minconf is the 4th
    paramater, and for all intents and purposes is a "dummy" paramater since
     it is no longer considered in the functional logic.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    4593d89 View commit details
    Browse the repository at this point in the history
  15. [RPC] Error when calling getreceivedbyaddress with non-wallet address

    When calling `getreceivedbyaddress` with a non-wallet address, return a
    proper error code/message instead of `0`
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    244c0d8 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    fde8f9a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e84827e View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a2a25be View commit details
    Browse the repository at this point in the history
  19. [Utils] Update linters for python3

    check-doc and logprint-scanner were still using python2 conventions.
    This updates the two scripts to use pyhon3 instead and be consistent
    with the rest of our python utility scripts.
    
    Also, use a more widely accessible bash path in lint-whitespace.sh
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    0c0a89b View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    8f22d1c View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    2942f52 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    a6d34fa View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    250506d View commit details
    Browse the repository at this point in the history
  24. [Net] Pull uacomment in from upstream

    Used primarialy (for now) in node identification for upcoming regtest
    scripting.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    9601f0d View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    f11afb9 View commit details
    Browse the repository at this point in the history
  26. [RPC] Add mediantime to getblock/getblockheader output

    Simple addition to the JSON output; mainly used in upcoming functional
    test updates.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    5b38ec4 View commit details
    Browse the repository at this point in the history
  27. [RPC] Show the configured/set txfee in getwalletinfo

    Simple consistency addition. This mimmics the output from `getinfo`.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    a478538 View commit details
    Browse the repository at this point in the history
  28. [Build] Update genbuild.sh script

    - Fix git's rev-list call
    - Add proper copyright headers from upstream
    - Check that the script is in the git tree
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    e0cb565 View commit details
    Browse the repository at this point in the history
  29. [Main] Unify shutdown proceedure in init rather than per-app

    This moves CScheduler and threadGroup to a static declaration in init
    .cpp so as to avoid a potential shutdown deadlock where both are freed
    before the network message handler thread has been completely released.
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    50493da View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    2c4e3ea View commit details
    Browse the repository at this point in the history
  31. Remove Boost dependency from sync.cpp

    use c++11 for loops instead of BOOST_FOREACH
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    49eee10 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    5fe6a8f View commit details
    Browse the repository at this point in the history
  33. Remove unused fTry from push_lock

    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    fb9cb1b View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    73d2fb8 View commit details
    Browse the repository at this point in the history
  35. Finalize cleanup of sync.cpp/h

    - include memory system header for std pointers
    - remove unused MutexName
    - declare single-argument constructors as explicit
    Fuzzbawls authored and KolbyML committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    2fe725f View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2020

  1. [Qt] Don't show staking/automint status icons without a wallet

    When running the client with the `-disablewallet` option, the staking
    and automint icons should always be hidden. This adds a check to see if
    `walletFrame` has been set before showing/updating these two icons.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    b219997 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5567d14 View commit details
    Browse the repository at this point in the history
  3. Update README.md

    KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    e7831a3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bba85be View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    876157c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2a82aa2 View commit details
    Browse the repository at this point in the history
  7. Build: Introduce endian and byteswap

    Add Checks for local endian and byteswap support.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    a6ee821 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1e5065f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    af2e520 View commit details
    Browse the repository at this point in the history
  10. Update configure.ac

    KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    b03c835 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f3fde8d View commit details
    Browse the repository at this point in the history
  12. Build: utility test updates

    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    3b7ac65 View commit details
    Browse the repository at this point in the history
  13. Gitian: remove reference datetime

    Add env prefix to bash scripting
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    4054d74 View commit details
    Browse the repository at this point in the history
  14. Gitian: update descriptors for bionic

    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    35d799c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f29fd36 View commit details
    Browse the repository at this point in the history
  16. Update packages.mk

    KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    c9e008c View commit details
    Browse the repository at this point in the history
  17. Update protobuf.mk

    KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    135920c View commit details
    Browse the repository at this point in the history
  18. fixes for changes

    KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    927677b View commit details
    Browse the repository at this point in the history
  19. Merge PIVX-Project#783: [Depends] Update QT to 5.9.7

    caea417 Update QT to 5.9.7 (cevap)
    
    Tree-SHA512: 34197e7b92711f3f0392b071de58900592ab8bb2ed3e50cd853cf2da56ba2f6d9b3ee57e4d01f3c2cdce4710ebe0c079bba434263b9af65141363086b9213025
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    52a2aa1 View commit details
    Browse the repository at this point in the history
  20. Fix Missing Explorer Icon

    sicXnull authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    7e9257e View commit details
    Browse the repository at this point in the history
  21. Merge PIVX-Project#795: [Build] Add support for RISC-V and build it w…

    …ith gitian
    
    f6c1d4a Add check symbols for gitian-linux.yml (cevap)
    4a3d3ea Use pivx in config lines (cevap)
    321f0e0 Update linux descriptor (cevap)
    4e0244b Update symbol check script (cevap)
    c251de5 Update glibc_compat.cpp with risc (cevap)
    fb0bdae Gitian: add risc build (cevap)
    
    Tree-SHA512: f91fa1da9c48e3ccb87cb1ddd825d353a15e439b778bd95eb53f22b8884ecb1ddda954a506553dbb8322e931d1b8b34211e1dc7e4b431eafa107d81bdd8e6faa
    Mrs-X authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    8e7f1ce View commit details
    Browse the repository at this point in the history
  22. Update qt.mk

    KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    019619a View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    20794ba View commit details
    Browse the repository at this point in the history
  24. Update zmq to 4.3.1

    Addresses https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6250
    
    Signed-off-by: cevap <dev@i2pmail.org>
    rex4539 authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    a1230f1 View commit details
    Browse the repository at this point in the history
  25. cleanup, remove trading dialog form

    furszy authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    f5d27cf View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    66265fb View commit details
    Browse the repository at this point in the history
  27. [macOS] Remove DS_Store WindowBounds bytes object

    Github-Pull: PIVX-Project#858
    Rebased-From: 21f5078
    jonasschnelli authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    76e664a View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    988211f View commit details
    Browse the repository at this point in the history
  29. [Travis] Add separate job to check doc/logprint/subtree

    Break out a new job to do the basic linting that check-dock.py and
    logprint-scanner.py did.
    
    Also add new scripts to check the sanity of
    any git subtrees and to check that new pull requests don't contain any
    trailing whitespace.
    
    Also, remove the outdated slack notification callback
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    99f9cdc View commit details
    Browse the repository at this point in the history
  30. travis: run subtree checks for leveldb

    Also for libsecp256k1 now that it has been updated
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    7bbc7a2 View commit details
    Browse the repository at this point in the history
  31. Travis: Update to use docker with Bionic target

    This changes the TravisCI behavior to use docker with a Bionic target.
    Provides consistency with gitian target.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    d7b4b9d View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    5143287 View commit details
    Browse the repository at this point in the history
  33. Update .travis.yml

    KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    160b7c7 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    13b2e6a View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    e962924 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    77a172f View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    a042ebf View commit details
    Browse the repository at this point in the history
  38. fixes for leveldb and travis

    KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    af85bbd View commit details
    Browse the repository at this point in the history
  39. Don't return an invalid state when shutting down the wallet

    When the shutdown process is started, it is possible that the call to
    `ValidateAccumulatorCheckpoint()` in `ConnectBlock()` will fail. Instead
     of returning an invalid state, which causes the block to pass through
     `InvalidChainFound()`, just return a stateless error if a shutdown has
     been requested.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    6ddc927 View commit details
    Browse the repository at this point in the history
  40. [Qt] Prevent double deletion of progress dialog

    When `showProgress()` is passed a `100` int value, the dialog is deleted
    . If the function is passed a `100` int value a second time in the same
    scope, like what happens at the end of `RecalculateZPIVSpent()` and
    `RecalculateZPIVSupply()`, it results in a segfault.
    
    This change standardizes the process by first initializing the progress
    dialog with a `0` value, updating to a maximum of a `99` value inside
    the loop, and finally closing with a `100` value after the loop has
    completed.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    bff690a View commit details
    Browse the repository at this point in the history
  41. [Refactor] Move per-chain budget cycle blocks to chainparams

    Small consistency move here so that the number of blocks in a budget
    cycle can be defined in chainparams, where most other chain-specific
    variables are defined.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    c33b217 View commit details
    Browse the repository at this point in the history
  42. [RPC] Remove deprecated masternode/budget RPC commands

    The old `masternode` and `mnbudget` commands have been deprecated for
    quite some time now, and have had a note in their help descriptions
    stating as much. So, time to finally remove them for good.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    9e300f6 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    e25cc7d View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    54ec03d View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    b53103d View commit details
    Browse the repository at this point in the history
  46. Reinitialize state in between individual unit tests.

    This changes the TestingSetup fixture to be per-unit-test rather than global.
    Most tests don't need it, so it's only invoked in a few.
    sipa authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    fa75235 View commit details
    Browse the repository at this point in the history
  47. tests: add a BasicTestingSetup and apply to all tests

    Make sure that chainparams and logging is properly initialized. Doing
    this for every test may be overkill, but this initialization is so
    simple that that does not matter.
    
    This should fix the travis issues.
    laanwj authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    2294dff View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    1b3f55e View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    9fb8ac7 View commit details
    Browse the repository at this point in the history
  50. Creates unittests for addrman, makes addrman testable.

    Adds several unittests for addrman to verify it works as expected.
    Makes small modifications to addrman to allow deterministic and targeted tests.
    EthanHeilman authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    90eeb2f View commit details
    Browse the repository at this point in the history
  51. Increase test coverage for addrman and addrinfo

    Adds several unittests for CAddrMan and CAddrInfo.
    Increases the accuracy of addrman tests.
    Removes non-determinism in tests by overriding the random number generator.
    Extracts testing code from addrman class to test class.
    EthanHeilman authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    70978dc View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    45dc84d View commit details
    Browse the repository at this point in the history
  53. [Build] Initial CMake support

    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    a7474f6 View commit details
    Browse the repository at this point in the history
  54. fix config.h include file name

    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    aa474f6 View commit details
    Browse the repository at this point in the history
  55. use non-Cellar OpenSSL path for macOS

    removes the dependency on a specific version, as long as the installed
    version is 1.0.x. Also set the appropriate environment flags for OpenSSL
     on macOS.
    
    Note: the setting of these two environment variables would be better
    suited to a user's `~/.bash_profile` rather than being done within
    CMake, as doing it here is destructive.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    8363e56 View commit details
    Browse the repository at this point in the history
  56. [Build] Clean all coverage files during make clean

    This adds extra paths that were left out and ensures that `.gcda` and `
    .gcno` files are properly cleaned up.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    652a81a View commit details
    Browse the repository at this point in the history
  57. Update accumulators.cpp

    furszy authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    6122fb2 View commit details
    Browse the repository at this point in the history
  58. Don't assert if we were beaten to the block

    A timing window exists where a wallet could be creating a new block from within the miner thread when a new block is received to the wallet.  This window will create a situation where TestBlockValidity() fails because the chain tip has changed between the time it created the new block and the time it tested the validity of the block.  
    
    This situation would result in the wallet being asserted; however this is a little overkill.  rather than asserting if the tip has changed, it is better to throw the block away.
    
    This problem was revealed during a testnet test of an altcoin, and very prevalent when multiple wallet existed with the exact same number of staking coins received in the same transaction; or when multiple wallets were staking the same coins via import private key.  The problem happens significantly less in more normal circumstances, but was still observed in a testing environment with fast blocks.
    
    It is likely that this scenario has been encountered but never determined to be root cause, as a crashed wallet could be restarted, re-indexed and never investigated further.
    CaveSpectre11 authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    3cde88d View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    d80b035 View commit details
    Browse the repository at this point in the history
  60. [Gitian] Bump gitian build versions

    Bumps the gitian build versions to 3.3, which should have been done
    right after 3.2 was branched off.
    
    At the same time, update to python3 explicitly and allow for some better
     error reporting.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    9afa2ea View commit details
    Browse the repository at this point in the history
  61. [Backport] Max tip age to consider a node in IBD status customizable.…

    … Backport from bitcoin#bitcoin#7208.
    furszy authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    79de815 View commit details
    Browse the repository at this point in the history
  62. depends: Update from upstream

    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    201f3e4 View commit details
    Browse the repository at this point in the history
  63. [Travis] Update TravisCI from upstream

    Most notable change here is the introduction of two breakpoints that
    will store the current cache and stop if the previous step took a long
    time. This is intended to avoid hitting the global time limit of 50
    minutes for builds that would need to rebuild the depends cache.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    0b1179f View commit details
    Browse the repository at this point in the history
  64. [Qt] Remove unused obfuscationconfig

    obfuscationconfig(.h/.cpp) are unused and not needed at all anymore.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    020b349 View commit details
    Browse the repository at this point in the history
  65. Remove unused code in DoAutomaticDenominating

    This function statically returns `false`, no need to have anything else
    here.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    5ec7727 View commit details
    Browse the repository at this point in the history
  66. Remove nAnonymizePivxAmount and nLiquidityProvider

    These two variables have been meaningless since zPIV's introduction...
    
    Nuke them from orbit!
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    812cae8 View commit details
    Browse the repository at this point in the history
  67. Remove unused functions in wallet.cpp

    these functions were used back when obfuscation existed and are no
    longer called anywhere in the source tree.
    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    b507482 View commit details
    Browse the repository at this point in the history
  68. Remove more useless obfuscation code

    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    933f610 View commit details
    Browse the repository at this point in the history
  69. Remove more useless obfuscation code

    Fuzzbawls authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    a707e54 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    4e3fc4b View commit details
    Browse the repository at this point in the history
  71. removed redelcared function

    KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    7913c0e View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    9f4a1f3 View commit details
    Browse the repository at this point in the history
  73. show the progress of functional test

    example (added the progress index `n/m`)
    ```
    1/107 - wallet_hd.py passed, Duration: 27 s
    .........................................................................................
    2/107 - mining_getblocktemplate_longpoll.py passed, Duration: 72 s
    ..................................................................
    3/107 - feature_maxuploadtarget.py passed, Duration: 78 s
    ```
    
    - clear dots line
    ```
    $ test/functional/test_runner.py -t can_trash
    Temporary test directory at can_trash/test_runner_₿_🏃_20181018_220600
    1/105 - wallet_hd.py passed, Duration: 21 s
    2/105 - mining_getblocktemplate_longpoll.py passed, Duration: 71 s
    3/105 - feature_maxuploadtarget.py passed, Duration: 68 s
    ..................
    ```
    
    - don't print the `dot` progressive if `--quiet`
    
    - done_str
    - nothing commit to check again travis tests
    isghe authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    2373c18 View commit details
    Browse the repository at this point in the history
  74. tests: Print dots by default

    ken2812221 authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    9ab759d View commit details
    Browse the repository at this point in the history
  75. tests: Print remaining jobs in test_runner.py

    This helps finding out which tests fail to finish.
    stevenroose authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    fdb8553 View commit details
    Browse the repository at this point in the history
  76. [Travis] Log more info

    Warrows authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    a45c962 View commit details
    Browse the repository at this point in the history
  77. travis: Fix caching issues

    MarcoFalke authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    3b5a9fb View commit details
    Browse the repository at this point in the history
  78. travis: Use absolute paths for cache dirs

    MarcoFalke authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    c4cc553 View commit details
    Browse the repository at this point in the history
  79. [Travis] Give more time to tests

    Travis was regularly failing because the full test suite with coverage
    takestoo much time.
    Bitcoin has some optimisations in there which allows them to give less
    time to the test part of the process. We don't so until we do, we have
    to reserve more time. We will probably have to restart manually more
    travis jobs but that's the only way to have them run to the end.
    Warrows authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    9f6dcb7 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    4e8af1b View commit details
    Browse the repository at this point in the history
  81. [Wallet] Remove (explicitely) unused tx comparator

    We remove the '==' and '!=' operators from CMutableTransaction.
    These comparators are never explicitely used in our code.
    As it turns out, it was used implicitely and created this situation:
    PIVX-Project#510
    So this change fixes PIVX-Project#510.
    Warrows authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    6ddf321 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    ab725af View commit details
    Browse the repository at this point in the history
  83. Remove Bitcoin Core 0.8 block hardlinking

    JSKitty authored and KolbyML committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    92195bc View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    fc6a04b View commit details
    Browse the repository at this point in the history

Commits on May 6, 2020

  1. Configuration menu
    Copy the full SHA
    a07c374 View commit details
    Browse the repository at this point in the history
  2. [DB] Db runtime error cleaning the variable that needs to be logged r…

    …ight before print it.
    furszy authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    9875777 View commit details
    Browse the repository at this point in the history
  3. [Build] CMake Improvements

    This includes some improvements and fixes for the CMake build system.
    
    * Use explicit per-target includes instead of global includes for dependencies.
    * Don't assume the availability of optional dependencies.
    * Fix Ubuntu build issues relating to endian/byteswap.
    * Ignore the qt subdir for windows WSL based builds.
    * Add TravisCI stage to test CMake builds.
    
    Windows support is still a work in progress, with the qt subdir being ignored
    due to an issue with CMake linking against a static Qt library.
    
    CMake Builds on TravisCI are allowed to fail for the time being.
    Fuzzbawls authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    83c2cf7 View commit details
    Browse the repository at this point in the history
  4. Allow WSL builds with cmake

    Requires VcXsrv for running of resulting builds.
    Fuzzbawls authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    79ece4e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0066758 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    55fd07a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    53c0de3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    93f8dfe View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3da089f View commit details
    Browse the repository at this point in the history
  10. util: Specific GetOSRandom for Linux/FreeBSD/OpenBSD

    These are available in sandboxes without access to files or
    devices. Also [they are safer and more straightforward](https://en.wikipedia.org/wiki/Entropy-supplying_system_calls)
    to use than `/dev/urandom` as reading from a file has quite a few edge
    cases:
    
    - Linux: `getrandom(buf, buflen, 0)`. [getrandom(2)](http://man7.org/linux/man-pages/man2/getrandom.2.html)
      was introduced in version 3.17 of the Linux kernel.
    - OpenBSD: `getentropy(buf, buflen)`. The [getentropy(2)](http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/getentropy.2)
      function appeared in OpenBSD 5.6.
    - FreeBSD and NetBSD: `sysctl(KERN_ARND)`. Not sure when this was added
      but it has existed for quite a while.
    
    Alternatives:
    
    - Linux has sysctl `CTL_KERN` / `KERN_RANDOM` / `RANDOM_UUID`
      which gives 16 bytes of randomness. This may be available
      on older kernels, however [sysctl is deprecated on Linux](https://lwn.net/Articles/605392/)
      and even removed in some distros so we shouldn't use it.
    
    Add tests for `GetOSRand()`:
    
    - Test that no error happens (otherwise `RandFailure()` which aborts)
    - Test that all 32 bytes are overwritten (initialize with zeros, try multiple times)
    
    Discussion:
    
    - When to use these? Currently they are always used when available.
      Another option would be to use them only when `/dev/urandom` is not
      available. But this would mean these code paths receive less testing,
      and I'm not sure there is any reason to prefer `/dev/urandom`.
    
    Closes: bitcoin#9676
    laanwj authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    17a818c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c4a4ebc View commit details
    Browse the repository at this point in the history
  12. sanity: Move OS random to sanity check function

    Move the OS random test to a sanity check function that is called every
    time bitcoind is initialized.
    
    Keep `src/test/random_tests.cpp` for the case that later random tests
    are added, and keep a rudimentary test that just calls the sanity check.
    laanwj authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    8cf6365 View commit details
    Browse the repository at this point in the history
  13. random: Add fallback if getrandom syscall not available

    If the code was compiled with newer (>=3.17) kernel headers but executed
    on a system without the system call, every use of random would crash the
    program. Add a fallback for that case.
    laanwj authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    ac8773c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ca89d95 View commit details
    Browse the repository at this point in the history
  15. Kill insecure_random and associated global state

    There are only a few uses of `insecure_random` outside the tests.
    This PR replaces uses of insecure_random (and its accompanying global
    state) in the core code with an FastRandomContext that is automatically
    seeded on creation.
    
    This is meant to be used for inner loops. The FastRandomContext
    can be in the outer scope, or the class itself, then rand32() is used
    inside the loop. Useful e.g. for pushing addresses in CNode or the fee
    rounding, or randomization for coin selection.
    
    As a context is created per purpose, thus it gets rid of
    cross-thread unprotected shared usage of a single set of globals, this
    should also get rid of the potential race conditions.
    
    - I'd say TxMempool::check is not called enough to warrant using a special
      fast random context, this is switched to GetRand() (open for
      discussion...)
    
    - The use of `insecure_rand` in ConnectThroughProxy has been replaced by
      an atomic integer counter. The only goal here is to have a different
      credentials pair for each connection to go on a different Tor circuit,
      it does not need to be random nor unpredictable.
    
    - To avoid having a FastRandomContext on every CNode, the context is
      passed into PushAddress as appropriate.
    
    There remains an insecure_random for test usage in `test_random.h`.
    laanwj authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    acef286 View commit details
    Browse the repository at this point in the history
  16. Add ChaCha20

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    7bbc2ee View commit details
    Browse the repository at this point in the history
  17. Switch FastRandomContext to ChaCha20

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    027dc20 View commit details
    Browse the repository at this point in the history
  18. Introduce FastRandomContext::randbool()

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    07ac7db View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    b769766 View commit details
    Browse the repository at this point in the history
  20. Use hardware timestamps in RNG seeding

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    9ae9d61 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    961f49b View commit details
    Browse the repository at this point in the history
  22. Use sanity check timestamps as entropy

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    74372d1 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    2447d22 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    556addc View commit details
    Browse the repository at this point in the history
  25. random: only use getentropy on openbsd

    theuni authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    3eba0f3 View commit details
    Browse the repository at this point in the history
  26. [Random] Fix compilation

    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    f859bdf View commit details
    Browse the repository at this point in the history
  27. Add FastRandomContext::rand256() and ::randbytes()

    FastRandomContext now provides all functionality that the real Rand* functions
    provide.
    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    061a21e View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    49e45da View commit details
    Browse the repository at this point in the history
  29. Merge test_random.h into test_bitcoin.h

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    6407a40 View commit details
    Browse the repository at this point in the history
  30. Replace more rand() % NUM by randranges

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    4edb342 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    6de3ab4 View commit details
    Browse the repository at this point in the history
  32. [Random / tests] scripted-diff: use insecure_rand256/randrange more

    -BEGIN VERIFY SCRIPT-
    sed -i "s/\<GetRandHash(/insecure_rand256(/" src/test/*_tests.cpp
    sed -i "s/\<GetRand(/insecure_randrange(/" src/test/*_tests.cpp
    src/test/test_bitcoin.cpp
    sed -i 's/\<insecure_rand() % \([0-9]\+\)/insecure_randrange(\1)/g'
    src/test/*_tests.cpp
    -END VERIFY SCRIPT-
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    6e3ef14 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    f3f85de View commit details
    Browse the repository at this point in the history
  34. random: fix crash on some 64bit platforms

    rbx needs to be stashed in a 64bit register on 64bit platforms. With this crash
    in particular, it was holding a stack canary which was not properly restored
    after the cpuid.
    
    Split out the x86+PIC case so that x86_64 doesn't have to worry about it.
    theuni authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    81774fd View commit details
    Browse the repository at this point in the history
  35. Use cpuid intrinsics instead of asm code

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    b1f402c View commit details
    Browse the repository at this point in the history
  36. Clarify entropy source

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    b9bab59 View commit details
    Browse the repository at this point in the history
  37. [Random / tests] scripted-diff: Use randbits/bool instead of randrange

    -BEGIN VERIFY SCRIPT-
    sed -i 's/insecure_randbits(1)/insecure_randbool()/g'
    src/test/*_tests.cpp
    sed -i 's/insecure_randrange(2)/insecure_randbool()/g'
    src/test/*_tests.cpp
    sed -i 's/insecure_randrange(4)/insecure_randbits(2)/g'
    src/test/*_tests.cpp
    sed -i 's/insecure_randrange(32)/insecure_randbits(5)/g'
    src/test/*_tests.cpp
    sed -i 's/insecure_randrange(256)/insecure_randbits(8)/g'
    src/test/*_tests.cpp
    -END VERIFY SCRIPT-
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    c0653cd View commit details
    Browse the repository at this point in the history
  38. [Rand/test] scripted-diff: Use new naming style for insecure_rand*

    functions
    
    -BEGIN VERIFY SCRIPT-
    sed -i 's/\<insecure_randbits(/InsecureRandBits(/g' src/test/*.cpp
    src/test/*.h src/wallet/test/*.cpp
    sed -i 's/\<insecure_randbool(/InsecureRandBool(/g' src/test/*.cpp
    src/test/*.h src/wallet/test/*.cpp
    sed -i 's/\<insecure_randrange(/InsecureRandRange(/g' src/test/*.cpp
    src/test/*.h src/wallet/test/*.cpp
    sed -i 's/\<insecure_randbytes(/InsecureRandBytes(/g' src/test/*.cpp
    src/test/*.h src/wallet/test/*.cpp
    sed -i 's/\<insecure_rand256(/InsecureRand256(/g' src/test/*.cpp
    src/test/*.h src/wallet/test/*.cpp
    sed -i 's/\<insecure_rand(/InsecureRand32(/g' src/test/*.cpp
    src/test/*.h src/wallet/test/*.cpp
    sed -i 's/\<seed_insecure_rand(/SeedInsecureRand(/g' src/test/*.cpp
    src/test/*.h src/wallet/test/*.cpp
    -END VERIFY SCRIPT-
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    e0b48c3 View commit details
    Browse the repository at this point in the history
  39. [Tests] Fix compilation

    Some mistakes where done while backporting
    bitcoin#10321
    Compilation is fixed here
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    a45ff27 View commit details
    Browse the repository at this point in the history
  40. Fix resource leak

    Dag Robole authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    6d7add2 View commit details
    Browse the repository at this point in the history
  41. Add attribute [[noreturn]] (C++11) to functions that will not return

    Rationale:
    * Reduce the number of false positives from static analyzers
    * Potentially enable additional compiler optimizations
    practicalswift authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    b36d0c9 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    0cb3058 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    7b59944 View commit details
    Browse the repository at this point in the history
  44. Do not permit copying FastRandomContexts

    sipa authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    6d83e0e View commit details
    Browse the repository at this point in the history
  45. [Random] Add a missing include

    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    28605a3 View commit details
    Browse the repository at this point in the history
  46. [Refactor] Use arrays instead of unic vars in Chacha20

    Makes the code shorter and more concise. Might allow for some compiler
    optimisations.
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    965554f View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    e5c5183 View commit details
    Browse the repository at this point in the history
  48. Fixes and some clean up

    KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    2a620f6 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    9cd8cf0 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    284978f View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    79eef0a View commit details
    Browse the repository at this point in the history
  52. [Refactor] refactor/fix CSporkManager and CSporkMessage classes

    - move ProcessSpork, GetSporkValue, IsSporkActive, ExecuteSpork and
    mapSporksActive to CSporkManager
    - move Sign, CheckSignature, Relay to CSporkMessage
    - move ReprocessBlocks out of sporks to main.cpp
    - rename DisconnectBlocksAndReprocess to DisconnectBlocks
    - bugfix: only set strMasterPrivKey if spork signature produced by that
    key was verified successfully
    - few log format changes, cleaned up includes
    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    9b8d98f View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    827d25b View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    0fba7c1 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    12cc972 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    03533a4 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    6f07229 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    87dd525 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    cadd048 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    219a1ee View commit details
    Browse the repository at this point in the history
  61. Fix spork RPC to use new spork defs

    This also removes the need for SPORK_START/SPORK_END
    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    1fe8c49 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    662b4b6 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    f1d7b52 View commit details
    Browse the repository at this point in the history
  64. [Spork] fix CSporkManager maps

    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    1e1ecfe View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    94e04a1 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    159e92e View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    01b248a View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    a5adc16 View commit details
    Browse the repository at this point in the history
  69. [Travis] Lower timeout for the full test suite

    Set the build timeout for the longest job to 21mn 40sec.
    Set the build timeout for the other jobs back to 33 mn and 20 sec.
    This should avoid global 50 mn timeout on the longest job and avoid
    having to restart other jobs needlessly.
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    4619005 View commit details
    Browse the repository at this point in the history
  70. [Startup][Refactor][Backport]

    * OS memory allocation fail handler.
    * OS signal handler registration method created to remove code duplication.
    * AppInitBasicSetup() method created, organizing better the setup step of the wallet initialization.
    furszy authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    d644f6c View commit details
    Browse the repository at this point in the history
  71. [Logging][Startup]

     * Stop loading block indexes on wallet startup if shutdown was requested.
     * Wallet loading, wallet rescan and block index load time logged in a more understandable way.
    furszy authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    b0fdf4f View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    8b0283e View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    5187ee4 View commit details
    Browse the repository at this point in the history
  74. add snapcraft support to pivx, static build

    Description
    ===========
    
    Enables support for automatic build and release process of pivx snap on
    snapcraft.io, as well as the ability to create a snap package on launchpad.
    
    Build is performed with prebuilding all dependencies for each architecture,
    current version builds each version on same architecture, it is possible
    to build for separate architectures on a specific one.
    
    Snap builds are in general auto updated and if users stay on a specific
    channel, with each relaunch latest version of set channel is launched.
    
    PIVX Snap build status:     https://build.snapcraft.io/user/cevap/PIVX
    PIVX's public store page:   https://snapcraft.io/pivx
    
    Getting started:            https://docs.snapcraft.io/getting-started/3876
    Snap FAQ/Documentation:     https://docs.snapcraft.io/
    Publishing process:         https://docs.snapcraft.io/releasing-your-app/6795
    
    Datafolder and how to launch
    ============================
    
    PIVX's snap default datafolder: `~/snap/pivx/common/.pivx`
    
    launch QT from terminal:
    - `pivx.qt`
    - `pivx.qt-testnet`, equals `pivx.qt --testnet`
    - `pivx.qt-regtest`, equals `pivx.qt --regtest
    
    launch daemon from terminal:
    - `pivx.daemon`
    - `pivx.daemon-testnet`, equals `pivx.daemon --testnet`
    - `pivx.daemon-regtest`, equals `pivx.daemon --regtest
    
    use cli:
    - `pivx.cli`
    - `pivx.cli-testnet`, equals `pivx.cli --testnet`
    - `pivx.cli-regtest`, equals `pivx.cli --regtest`
    
    tx:
    - pivx.tx
    
    tests:
    - pivx.test
    - pivx.testqt
    
    About snapcraft config
    ======================
    
    Execution environment for this snap is core18 and strict confinement.
    
    For more info about base, confinment ...:
    https://docs.snapcraft.io/snapcraft-top-level-metadata/8334
    
    Additional fixes and features
    =============================
    
    - [x] Daemon icons for all networks
    - [x] QT icons patch (includes patching of icons)
    - [x] Add workaround for ppc64el and QT
    - [x] additional patches
    - [x] add test_pivx and test_pivx-qt
    - [x] snap has access to several ressources like network or home folder
    - [x] tests (for now only make check at the end)
    - [x] customizable script
    - [x] script in simple, readble manner
    
    Installation process
    ====================
    
    On most installations, you do not need to specify `--channel=`, it can be
    done by writting channel directly: `--edge` without `channel=`. Official
    documenation is with --channel and so is this installation guide by that.
    
    Install pivx from snap (stable channel):
    
        sudo snap install pivx
    
    Install pivx from specific channel (example: edge)
    
        sudo snap install --channel=edge pivx
    
    How to update snap from another channel:
    
        sudo snap refresh --channel=edge pivx
    
    Uninstall pivx from system (!!!WARNING!!! it removes pivx's snap datafolder)
    
        sudo snap remove pivx
    cevap authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    9fcb920 View commit details
    Browse the repository at this point in the history
  75. Update for merging

    Fuzzbawls authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    543578a View commit details
    Browse the repository at this point in the history
  76. [Script] Introduce constant for maximum CScript length

    Backports bitcoin/bitcoin f8e6fb1
    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    214e931 View commit details
    Browse the repository at this point in the history
  77. [Script] Treat overly long scriptPubKeys as unspendable

    Backports bitcoin/bitcoin 4f87af6
    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    c46e22b View commit details
    Browse the repository at this point in the history
  78. [Bug] Fix OOM when deserializing UTXO entries with invalid length

    backports bitcoin/bitcoin 5d0434d
    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    789a117 View commit details
    Browse the repository at this point in the history
  79. CDataStream::ignore Throw exception instead of assert on negative nSize

    Backports bitcoin/bitcoin 4bf631e
    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    01f8c1c View commit details
    Browse the repository at this point in the history
  80. [Tests] Add tests for CCoins deserialization

    Backports bitcoin/bitcoin 1e44169
    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    f522a5b View commit details
    Browse the repository at this point in the history
  81. [Wallet] Do not store Merkle branches in the wallet

    Backport of bitcoin#6550
    
    Assume that when a wallet transaction has a valid block hash and
    transaction position
    in it, the transaction is actually there. We're already trusting wallet
    data in a
    much more fundamental way anyway.
    
    To prevent backward compatibility issues, a new record is used for
    storing the
    block locator in the wallet. Old wallets will see a wallet file
    synchronized up
    to the genesis block, and rescan automatically.
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    1f787a5 View commit details
    Browse the repository at this point in the history
  82. Fixes and some clean up

    KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    658050b View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    7fd7295 View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    b76e854 View commit details
    Browse the repository at this point in the history
  85. [Wallet] Do not flush the wallet in AddToWalletIfInvolvingMe(..)

    Backport of bitcoin#4805 ( commit
    44bc988 )
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    4728b29 View commit details
    Browse the repository at this point in the history
  86. [Wallet] Switch to a constant-space Merkle root/branch algorithm

    Backport of bitcoin#6508
    
    This switches the Merkle tree logic for blocks to one that runs in
    constant (small) space.
    The old code is moved to tests, and a new test is added that for various
    combinations of
    block sizes, transaction positions to compute a branch for, and
    mutations:
     * Verifies that the old code and new code agree for the Merkle root.
     * Verifies that the old code and new code agree for the Merkle branch.
     * Verifies that the computed Merkle branch is valid.
     * Verifies that mutations don't change the Merkle root.
     * Verifies that mutations are correctly detected.
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    2c9fcc4 View commit details
    Browse the repository at this point in the history
  87. [Wallet] sort pending wallet transactions before reaccepting

    During startup, when adding pending wallet transactions, which spend outputs of
    other pending wallet transactions, back to the memory pool, and when they are
    added out of order, it appears as if they are orphans with missing inputs.
    
    Those transactions are then rejected and flagged as "conflicting" (= not in the
    memory pool, not in the block chain).
    
    To prevent this, transactions are explicitly sorted.
    dexX7 authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    e27638c View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    6a0dd8e View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    62aaf72 View commit details
    Browse the repository at this point in the history
  90. Add new rpc call: abandontransaction

    Unconfirmed transactions that are not in your mempool either due to eviction or other means may be unlikely to be mined.  abandontransaction gives the wallet a way to no longer consider as spent the coins that are inputs to such a transaction.  All dependent transactions in the wallet will also be marked as abandoned.
    morcos authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    e23e5e4 View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    172b90e View commit details
    Browse the repository at this point in the history
  92. Flush wallet after abandontransaction

    morcos authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    cd11f5d View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    a0c5ead View commit details
    Browse the repository at this point in the history
  94. Fix calculation of balances and available coins.

    No longer consider coins which aren't in our mempool.
    
    Add test for regression in abandonconflict.py
    morcos authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    2fe6da3 View commit details
    Browse the repository at this point in the history
  95. Fix that CWallet::AbandonTransaction would only traverse one level

    Prior to this change, it would mark only the first layer of
    child transactions abandoned, due to always following the input hashTx
    rather than the current now tx.
    Empact authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    9d8415f View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    d56c844 View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    5fc8a59 View commit details
    Browse the repository at this point in the history
  98. [Wallet] Ignore coinbase and zc tx "conflicts"

    Coinbase and zerocoin transaction can't really be checked for conflicts.
    Coinbase has no value anyway.
    Zerocoin transactions are checked for zero knowledge proof, the input
    hash has no meaning.
    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    18f8c7a View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    1f3df05 View commit details
    Browse the repository at this point in the history
  100. Fixes and clean up

    Added code to upgrade Masternode Message format
    
    Changes seen in Dash PR PIVX-Project#836
    KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    1b610e6 View commit details
    Browse the repository at this point in the history
  101. [Tests] Add RPC budget regression tests

    Adds new regression testing for the following RPC budget commands:
    - `preparebudget`
    - `submitbudget`
    - `getbudgetinfo`
    Fuzzbawls authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    01d28e1 View commit details
    Browse the repository at this point in the history
  102. [Wallet][Startup][DB][Backport] bitcoin#10952 BTC back port. Named "R…

    …emove vchDefaultKey and have better first run detection".
    
    [Wallet][Startup][DB][Backport] Don't create any default address
    furszy authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    413caac View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    b2df72b View commit details
    Browse the repository at this point in the history
  104. [TravisCI] Run CMake Tests earlier

    Move the two CMake build tests further up in the test order so we don't
    have to manually restart them due to caching/timeouts.
    Fuzzbawls authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    4921c7d View commit details
    Browse the repository at this point in the history
  105. Configuration menu
    Copy the full SHA
    1e98729 View commit details
    Browse the repository at this point in the history
  106. Update .travis.yml

    Warrows authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    de63967 View commit details
    Browse the repository at this point in the history
  107. Configuration menu
    Copy the full SHA
    28d36d5 View commit details
    Browse the repository at this point in the history
  108. [Tests] Add wallet_reorg-stake functional test

    to check balances in a reorganization of PoS blocks, and verify that the
    input of an orphan block's coinstake is spendable after.
    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    cf7e253 View commit details
    Browse the repository at this point in the history
  109. Configuration menu
    Copy the full SHA
    464b101 View commit details
    Browse the repository at this point in the history
  110. Configuration menu
    Copy the full SHA
    1cbe3fa View commit details
    Browse the repository at this point in the history
  111. Configuration menu
    Copy the full SHA
    9396f69 View commit details
    Browse the repository at this point in the history
  112. [CMake] Fix macOS Boost detection

    Fuzzbawls authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    8a2cdec View commit details
    Browse the repository at this point in the history
  113. [Wallet] Transaction IsEquivalentTo method backported + Duplicated me…

    …mpool check code cleanup in IsTrusted method.
    
     Comes from bitcoin b2b3619
    furszy authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    12360ca View commit details
    Browse the repository at this point in the history
  114. Configuration menu
    Copy the full SHA
    5d5e9e0 View commit details
    Browse the repository at this point in the history
  115. Configuration menu
    Copy the full SHA
    ae5743f View commit details
    Browse the repository at this point in the history
  116. [Wallet][RPC] Lock/UnlockCoin const argument + checks in lockunspent

    - qualify as constants the arguments of CWallet's functions:
    IsLockedCoin, LockCoin and UnlockCoin.
    
    - Diagnose unsuitable outputs in lockunspent (backports bitcoin/bitcoin
    bitcoin#11087)
    random-zebra authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    d613a12 View commit details
    Browse the repository at this point in the history
  117. wallet: Unlock spent outputs

    promag authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    334d851 View commit details
    Browse the repository at this point in the history
  118. [Masterndoes] Masternodes sync, try locking cs_main when it looks for…

    … the tip, preventing possible multi-threading shared resource problem.
    
    Remove duplicated tip check.
    furszy authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    e5002d5 View commit details
    Browse the repository at this point in the history
  119. Configuration menu
    Copy the full SHA
    22949e2 View commit details
    Browse the repository at this point in the history
  120. Configuration menu
    Copy the full SHA
    00ff68d View commit details
    Browse the repository at this point in the history
  121. build: if VERSION_BUILD is non-zero, include it in the package version

    When the build number (CLIENT_VERSION_BUILD) is non-zero, we want
    to include that in the package version number so the resulting binaries
    are named with the correct version.
    achow101 authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    487f264 View commit details
    Browse the repository at this point in the history
  122. Configuration menu
    Copy the full SHA
    c98f3e4 View commit details
    Browse the repository at this point in the history
  123. Configuration menu
    Copy the full SHA
    792e542 View commit details
    Browse the repository at this point in the history
  124. Configuration menu
    Copy the full SHA
    3227c93 View commit details
    Browse the repository at this point in the history
  125. build: use full version string in setup.exe

    MarcoFalke authored and KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    738635f View commit details
    Browse the repository at this point in the history
  126. Some fixes

    KolbyML committed May 6, 2020
    Configuration menu
    Copy the full SHA
    713eb6d View commit details
    Browse the repository at this point in the history

Commits on May 20, 2020

  1. Update init.cpp

    KolbyML committed May 20, 2020
    Configuration menu
    Copy the full SHA
    545338d View commit details
    Browse the repository at this point in the history
  2. Update benchmark_zerocoin.cpp

    KolbyML committed May 20, 2020
    Configuration menu
    Copy the full SHA
    fb5c45d View commit details
    Browse the repository at this point in the history
  3. Update masternode-budget.cpp

    KolbyML committed May 20, 2020
    Configuration menu
    Copy the full SHA
    75e50c3 View commit details
    Browse the repository at this point in the history
  4. Update optionsmodel.cpp

    KolbyML committed May 20, 2020
    Configuration menu
    Copy the full SHA
    bb34701 View commit details
    Browse the repository at this point in the history
  5. f

    KolbyML committed May 20, 2020
    Configuration menu
    Copy the full SHA
    aed099e View commit details
    Browse the repository at this point in the history