~fuzzbawls/pivx-core/+git/test:2020_fix-txload-limit

Last commit made on 2020-01-14
Get this branch:
git clone -b 2020_fix-txload-limit https://git.launchpad.net/~fuzzbawls/pivx-core/+git/test

Branch merges

Branch information

Name:
2020_fix-txload-limit
Repository:
lp:~fuzzbawls/pivx-core/+git/test

Recent commits

ec72107... by Fuzzbawls

[Qt][Bug] Load the most recent instead of the first transactions

Fixes a comparator bug when loading the initial `walletTxes` vector.
The design intention is to load the 20k most recent transactions, but it
 was loading the first 20k transactions in error, resulting in a
 potentially large gap in the UI's transaction history.

441d790... by random-zebra <email address hidden>

Merge #1251: [RPC] Notate all account stuff as deprecated

73d331a9dda934b9b31f620c7286fb431d6cd5da [RPC] Notate all account stuff as deprecated (Fuzzbawls)

Pull request description:

  First step in removing the internal accounting system. All RPC command
  documentation/help output now notates that account arguments are
  deprecated.

  Ported from https://github.com/bitcoin/bitcoin/pull/5575, with
  additional edits where necessary for cold staking related commands that
  also used account arguments.

ACKs for top commit:
  random-zebra:
    utACK 73d331a9dda934b9b31f620c7286fb431d6cd5da
  furszy:
    utACK 73d331a

Tree-SHA512: 6d88f0171b981fd072fcb8b4022f717182e966b9108772a4bca009f60f8e7b6801dbc22c403f956dffd8ef1095b1e8a17cd38d435998618d8f966ef6fdf8f667

f65d0d8... by random-zebra <email address hidden>

Merge #1253: [Qt] Initialize isLoading to false for CS view

d8378031521fe7af44c7d9c82115090e522d8245 [Qt] Initialize isLoading to false for CS view (Fuzzbawls)

Pull request description:

  Loading of the cold staking delegations list checks to see if `isLoading`
  is true, and exit's out if it is. this check is used to prevent double
  loading, but on some systems `isLoading` is initialized as `true`, so
  the loading of CS delegations will never occur.

  This changes to initialization to be explicitly `false`.

ACKs for top commit:
  furszy:
    utACK d837803
  random-zebra:
    utACK d8378031521fe7af44c7d9c82115090e522d8245 and merging...

Tree-SHA512: 293fa659b123113fbfdc5a1a4f1363e23d16d83baa789adfb0e07b6e1f050f6e908f9bb891c71c48c573a1aa0c9060eb6a1df81da9ebb34310176442d8a8ebea

d837803... by Fuzzbawls

[Qt] Initialize isLoading to false for CS view

Loading of the cold staking delegations list checks to see if `isLoading`
is true, and exit's out if it is. this check is used to prevent double
loading, but on some systems `isLoading` is initialized as `true`, so
the loading of CS delegations will never occur.

This changes to initialization to be explicitly `false`.

e7e1dd4... by furszy <email address hidden>

Merge #1252: [Trivial] Log log2_work value with 16 decimals

d83e67c93d866f97ab3563cb4a814fc8de55c605 [Trivial] Set log2_work decimals to 16 in the logs (random-zebra)

Pull request description:

  Simple addition for better logging as the title says: represent `log2_work` with 16 decimals.

ACKs for top commit:
  furszy:
    ACK d83e67c93d866f97ab3563cb4a814fc8de55c605
  Fuzzbawls:
    ACK d83e67c93d866f97ab3563cb4a814fc8de55c605

Tree-SHA512: 7a5b33d1c012c434f3818e100d717c37d9d851b614f795c341b1f0544b74941573dc4756dd1778f1dd15a5598062b49c5a4b7981bced18a406629721330cbb40

9cf807d... by random-zebra <email address hidden>

Merge #1245: [Core] Rework staking status

3893739e76ac804bc8bc7b04019282bbf4f43d46 [RPC] Fix getstakingstatus removing compile-time conditional (random-zebra)
9362e88103cc961d0a977e50c13750998cede83b [Wallet][Cleanup][GUI] minor updates to staking status (random-zebra)
968d8610b546067c257d75eef469d262cc731790 [Wallet] CStakerStatus: save a pointer to the tip instead of the hash (random-zebra)
bb2a987ce6d29bbbb981449d210bc6b0597c250d [GUI] Refactor updateStakingStatus and set it to inactive after locking (random-zebra)
d2aebc5b1e3287ef4d08e48027baf380bed5d8f5 [Trivial] Fix lastHashTime type in miner (random-zebra)
b8ed76fd5be15058efad21d2ddd2f40a88591a85 [RPC] Add CStakerStatus data to getstakingstatus (random-zebra)
d2d5f0818dba5074d54300aee33e515e004e815e [PoS] Lock cs_main when getting chainActive data in miner (random-zebra)
dbc46d864732e58b0f12e70067738e134f96b8d8 [Cleanup] Remove unused variables in miner (random-zebra)
01173e974f1b59ad5292867e093f53bd7f97182f [Core][PoS] Replace mapHashedBlocks and nLastCoinStakeSearchInterval (random-zebra)
6b2b81369a2b7d509c3ebf9891a0b07f50bc741f [Cleanup][Wallet] Remove unused nSearchInterval field in CreateCoinStake (random-zebra)

Pull request description:

  This PR cleans up the miner code and streamlines the logic used by the client (both in the RPC and in the GUI) to determine whether the wallet is staking or not.
  Currently it relies on a collection of variables (`mapHashedBlocks`, `nLastCoinStakeInterval`, `nSearchInterval`, etc...) updated in kernel.
  These are here replaced with a new class `CStakerStatus`, updated in `CreateCoinStake` (thus directly in wallet), and an instance of `CStakerStatus` is introduced as member of CWallet.
  This class keeps two variables, `timeLastStakeAttempt ` and `tipLastStakeAttempt`, containing respectively the time of last stake attempt and a pointer to the index of the block upon which last stake attempt was made.

  The Staking Status is Active whenever timeLastStakeAttempt is less than
  30 seconds in the past.

  This PR also expands the output of `getstakingstatus` rpc call adding:

  - `staking_enabled` to tell whether or not staking has been disabled via conf file / startup flag
  - `hashLastStakeAttempt` and `timeLastStakeAttempt` values
  - `heightLastStakeAttempt` (the height of the block with hash `hashLastStakeAttempt`)
  - `tiptime` (the time of the chaintip block) to compare with `timeLastStakeAttempt`. This field replaces `valid_time` which is unnecessary now).

  and fixes `enoughcoins` with proper staking balance.

ACKs for top commit:
  furszy:
    Pretty nice cleanup 👌 , ACK 3893739
  Fuzzbawls:
    ACK 3893739e76ac804bc8bc7b04019282bbf4f43d46

Tree-SHA512: f145650f59d2799641e64359c2656f0fd47397ab88893f4c179fa47b57ff5f166929b2af35741124a8a937431b072392f36b4ce50cce564a55df52a78aa9af0e

276e1e0... by furszy <email address hidden>

Merge #1250: [GUI] Every MN action checking tier two synced.

0fb3fc4124afdc1ffab7320010086c00a4b4ed4f [GUI] Every masternode action checking for tier two network synced. (furszy)

Pull request description:

  Coming from this comment https://github.com/PIVX-Project/PIVX/pull/1221#pullrequestreview-340783456 from @Mrs-X .

  This was coded on top of #1221, once that gets merged the two first commits will disappear.

ACKs for top commit:
  random-zebra:
    utACK 0fb3fc4124afdc1ffab7320010086c00a4b4ed4f
  Mrs-X:
    ACK https://github.com/PIVX-Project/PIVX/pull/1250/commits/0fb3fc4124afdc1ffab7320010086c00a4b4ed4f

Tree-SHA512: 10ea219c229c3d529b19d80c86aab965641c55f9de95b97027d3643172631e5461a641508529f9736591f8a047b44722320f2cf7d085d9d25b7ecc47d95b4b48

d83e67c... by random-zebra <email address hidden>

[Trivial] Set log2_work decimals to 16 in the logs

2bfde4e... by furszy <email address hidden>

Merge #1242: [RPC] Add coldstaking address support in importprivkey and importaddress

ce93872309a5b6d05fce056ced59ed63d4e716f3 [Trivial][RPC] Fix example line in importprivkey help (missing arg) (random-zebra)
96bdd3ec176e9fd8a588afb99fd9c05a46c7b273 [Tests] Add wallet_import_stakingaddress to test runner (random-zebra)
d1ebf2eb4c7c6a884f9c27decdf32a1730cea61f [Tests] Add functional test for import staking address/key (random-zebra)
3bd557974e343e3792c6b9b0c9fd1e8945ad303c [RPC] Add coldstaking address support in importaddress (random-zebra)
144ec35c97ece1984aa9f2c222978a12fd9ea2d5 [RPC] Add coldstaking address support in importprivkey (random-zebra)

Pull request description:

  Still it remains to add proper support in `dumpwallet` and `importwallet`

ACKs for top commit:
  Fuzzbawls:
    ACK ce93872309a5b6d05fce056ced59ed63d4e716f3

Tree-SHA512: 604a19ca1942ef972ab05360823701021dcc9e12243859514a4196b36789ff06613541bbe7b5302409fb1056375186713af1a9a3ed01afb3806426bac3bed456

0fb3fc4... by furszy <email address hidden>

[GUI] Every masternode action checking for tier two network synced.