Skip to content

Conversation

@Mrs-X
Copy link

@Mrs-X Mrs-X commented Jan 29, 2018

This PR addresses #515, the "For anonymization, automint and staking only" checkbox is now checked by default.

Downside is that it's also checked when you try to send coins and the wallet is still locked, so you have to uncheck it before you enter the passphrase.
Since the passphrase-dialog does not have a context from where it's called this can't be easily changed.

It's up to you guys to discuss if we can live with that.

@ghost ghost assigned Mrs-X Jan 29, 2018
@ghost ghost added the review label Jan 29, 2018
@Fuzzbawls
Copy link
Collaborator

hmm...not sure I really like having to uncheck the box when going to send funds. Maybe it's time to include a request mode parameter to the call so it can be determined wither or not the request came from clicking a send button or not?

@Mrs-X
Copy link
Author

Mrs-X commented Jan 30, 2018

Since @Sieres opened this one #522 I think I'll change the general unlocking approach, right now at too many places the same code is used for both, full unlock and staking unlock.

@Fuzzbawls
Copy link
Collaborator

the more I think about this, the more it makes sense to add request state to the GUI unlock call. While a generic call from the menu could certainly default to having the staking/anon only box ticked...it makes no sense whatsoever to have that ticked when the call originates from a spend pathway, since it would result in a failed spend attempt.

@Mrs-X Mrs-X force-pushed the MrsX_Default_unlock_settings branch from 2b2ab8d to 1ee7810 Compare February 10, 2018 22:54
@Mrs-X
Copy link
Author

Mrs-X commented Feb 10, 2018

The unlock calls have now a proper context and the checkbox is set correctly.
The new code offers a zillion possibilities of which we only use 2 or 3 right now, but it wouldn't make sense to just cover the existing use-cases and change/enhance the code again if new use-cases would be implemented.

I think I've tested all functions where unlocking is needed, but would appreciate additional tests in case I should have missed one, or if the checkbox is not correct for some of them.

Copy link

@Warrows Warrows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, and I think I tested everything except for masternodes.
A few nits/questions:
-Couldn't the box be checked for bip38?
-Is it useful to always show the checkbox? I feel like in most cases it would be better to hide it since there is no point in letting the user unlock for staking only if he wants to do a send.
-Probably unrelated but I was not able to create a multisig address because the coincontrol was showing empty in this context.

@Mrs-X
Copy link
Author

Mrs-X commented Feb 26, 2018

@Warrows Both good and valid points, for BIP38 it's now checked by default, and for sending PIV (or zPIV) the box is hidden now.

I have no problems with coin control for multisig, so it's most probably not related to this PR.

@Warrows
Copy link

Warrows commented Feb 27, 2018

Sounds good. I'll have a look at it and also try to test multisig and masternodes.
By the way, you've got compilation problems on two Travis jobs. I guess your include should be <QWidget.h> instead of <qt5/QtWidgets/qwidget.h>.

@Mrs-X Mrs-X force-pushed the MrsX_Default_unlock_settings branch from 02d456f to 4e5b73e Compare February 27, 2018 21:02
@Mrs-X
Copy link
Author

Mrs-X commented Feb 27, 2018

include should be <QWidget.h> instead of <qt5/QtWidgets/qwidget.h>.

I really HATE it that NetBeans does things like this without any notice.

It's fixed (#include <QWidget> is the correct way) and squashed.

Copy link

@Warrows Warrows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tested multisig and masternode. They are working fine. But in both cases it's possible to check the checkbox (and the operation will actually be achieved seamlessly), which does not make much sense IMO.
By the way, maybe it would make sense to have an option to (or even automatically) relock the wallet after most operations. Idk if it's the scope of this PR.

@Rock-N-Troll
Copy link

By the way, maybe it would make sense to have an option to (or even automatically) relock the wallet after most operations.

I agree with this statement. I once left my wallet unlocked for weeks without knowing it, during which, someone could have walked up and sent my funds away without me knowing it. It isn't intuitive that unlocking for sending will leave the wallet unlocked until locked again.

@Mrs-X
Copy link
Author

Mrs-X commented Mar 2, 2018

@Rock-N-Troll That's a can of worms, it existed already but was broken. I've created an issue for that so I won't forget it: #553

@Warrows I think I remember that at least the masternode unlocking had issues with relocking in some cases, that's why I left it as it is.
When I implement #553 I'll have a look at it.

I'll merge it as it is now...

@Mrs-X Mrs-X merged commit 4e5b73e into PIVX-Project:master Mar 2, 2018
Mrs-X added a commit that referenced this pull request Mar 2, 2018
…y default

4e5b73e [GUI] Make "For anonymization and staking only" checked by default (Mrs-X)

Tree-SHA512: 53d5aa663269efdb82cb2d8961f2eae4aebc03a6d96d15d990b357385584e365935f012eb9410b81de891a1d1ed75fbfe88937b2e87df12db148b1d6e3c015a5
@ghost ghost removed the review label Mar 2, 2018
@Fuzzbawls Fuzzbawls added this to the 3.1.0 milestone Mar 3, 2018
@Fuzzbawls Fuzzbawls added the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Mar 3, 2018
@Sieres
Copy link

Sieres commented Apr 1, 2018

ACK

@Fuzzbawls Fuzzbawls removed the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Jun 19, 2018
2a5A1Ghu1 added a commit to theohmproject/ohmcoin that referenced this pull request Oct 24, 2020
squidicuzz pushed a commit to theohmproject/ohmcoin that referenced this pull request Oct 28, 2020
2a5A1Ghu1 added a commit to theohmproject/ohmcoin that referenced this pull request Oct 28, 2020
* Ohmcoin 3.0 (#63)

* Fix croscompile for win32

* Update Segwit and Zerocoin (#47)

* Added all of the code for the update

* Fix URL Path

* Fixed default directory path

* Change masternode declarations to karmanode

* change to ohmcoin

* Create .gitignore

* Update .gitignore

* Update .gitignore

* karmanodefy

* Update proposallist.cpp

* Missing class

* Docs Masternode to karmanode

* Change mn(masternode) to kn(karmanode)

* Update doc and comment collateral

* More doc updates

* Fixed Karmanode references in proposal related files.

* Ckarmanode -> CKarmanode

* Karmanodefy Budget System

* Porotocol and Version Bump

* Protocol Enforcement

* Fix typo

* Spork fixes

* Fix Spork Typo

* Develop (#48)

* Added all of the code for the update

* Fix URL Path

* Fixed default directory path

* Change masternode declarations to karmanode

* change to ohmcoin

* Create .gitignore

* Update .gitignore

* Update .gitignore

* karmanodefy

* Update proposallist.cpp

* Missing class

* Docs Masternode to karmanode

* Change mn(masternode) to kn(karmanode)

* Update doc and comment collateral

* More doc updates

* Fixed Karmanode references in proposal related files.

* Ckarmanode -> CKarmanode

* Karmanodefy Budget System

* Porotocol and Version Bump

* Protocol Enforcement

* Fix typo

* Spork fixes

* Update README.md

* Fixes issues when building in 10.15

This will need to be built against different brew formulas that will be provided on release... This is also a temporary solution once fixes are made for building against updated dependencies.

* Qt Frontend Performace

Limits amount of txs loaded

* Added Qt Dependencies for Cross Compile

* Update spork.h

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

PIVX-Project/PIVX@ec72107

* Fix QT and Boost bugs

phoreproject/Phore#140

* Update Seeders

* Update Budget and Regtest

* More Budget and Regtest

* Too Expressive

removed arrant parenthesis

* Added select coin strategy

phoreproject/Phore@5928d0b

* allow openssl1.0/1.1 to coexist

phoreproject/Phore@d1b6037

* Prevent RPC calls during warmup

* Changed for loop copies to references, and added stake logging

phoreproject/Phore@3e7f6cf

* Fixed masternode edit deleting two masternodes in list

* Fix staking assertion

phoreproject/Phore@0a6a243

* Added Python test for transaction too large issue

phoreproject/Phore@5b08df9

* Added benchmark in mutex lock

phoreproject/Phore@be2f913

* Fix bugs in mnemonic selection and mint maturity

phoreproject/Phore@c118242

* Revert "Fix bugs in mnemonic selection and mint maturity"

This reverts commit 2f242b0.

* Replaced mapNextTx with smaller map to reduce memory usage.

phoreproject/Phore@3a7c813

* Move ThreadStakeMinter out of net.cpp

phoreproject/Phore@5568806

* Revert "Changed for loop copies to references, and added stake logging"

This reverts commit 113aeea.

* Add missing QPainterPath include

PIVX-Project/PIVX@2e226ad

* Lighter Icons

* Update Checkpoints

* Switch Sporks

* Update Placeholder Address

* Ohmify

* Merge Block Changes (#56)

* Version 3.0.0.1 dev (#53)

* Version 3.0.0.1 dev
- Increase time between blocks at block 2977924 or when network has reached 95% upgrade threshold
- Change block time to 4 minutes
- Set  block reward to 6 on activation of new time
- Adjust new block enforce policy to 24 hour span

* fix flag check for; add fIgnoreLegacyBlocks

* move variable out of if statement, fix compile.

* Improve2 (#54)

* WIP: upgrade network upgrade features; testnet fixes..

* add this back for now..

* add missed file, optional.h

* more imports

* adjust imports for consensus.h

* correction

* fix moar missing imports

* add missing vars and fixes

* missing header declare

* changes..

* update makefile

* need this here too..

* fixed compile

* further fixed.

* Zerocoin is not active; Actually use new block version parameter..

* Don't do this, zerocoin not active..

* remove or fix zerocoin at some later point.

* zerocoin is off.

* Adjust new block version update to use protocol version
Prepare for removal of zercoin; refactoring..
Implement sporks to enforce new version lock ins.

* fix compile issues

* get height for tip

* get consensus params

* add missing spork info

* Version 3.0.2.0

* Fixes Wallet Lock Issue (#55)

* Fix block height condition

* Combine Spork 24 into 23

Co-authored-by: Ra's Al Ghul <[email protected]>
Co-authored-by: squidicuz <[email protected]>

* [REST] improve performance for JSON calls

bitcoin/bitcoin@30973e9

JSON calls do not use the raw data generated for
the .bin and .hex calls. By moving the raw data
creation into the .bin and .hex switch branches,
JSON calls become faster.

* Bump Version

* [Model][Performance] Unnecessary double cs_wallet and cs_main lock.

PIVX-Project/PIVX@9d94ea6

* Delete pkg.m4

Delete arrant pkg.m4 file never was needed

* Update Mac version

* Drop QT4 Support

* [BUILD][MacOS] Make Clean Images

* [Refactor][Move Only] Nonwallet RPC Move to Sub-Dir

* [Refactor][Move Only] Wallet Move to Sub-Dir

* Add Memusage

* [REFACTOR] Drop BOOST_FOREACH/REVERSE_FOREACH

* [REFACTOR] Move PAIRTYPE to std::pair & Q_FOREACH/foreach to for

* [LEVELDB]Use std::atomic instead of MemoryBarrier

* Update Copyright

* [Tests] Fix chain ordering in budget tests

PIVX-Project/PIVX#595

* [Doc] Change aarch assert sign output folder

PIVX-Project/PIVX#585

* [Wallet] Adjust staking properties to lower orphan rates.

PIVX-Project/PIVX#617

* [Wallet] Write new transactions to wtxOrdered properly

PIVX-Project/PIVX#597

* [Travis] Add separate job to check doc/logprint/subtree

Further getting up to date with pivx PIVX-Project/PIVX#639

* [Build] Make sure Boost headers are included for libzerocoin

PIVX-Project/PIVX#622

* [Build] Remove unnecessary BOOST dependency

PIVX-Project/PIVX#605

* [Bug] Fix CKarmanodeConfig::read

rebase from upstream. Windows doesn't initialize CService properly
during startup before the masternode.conf file is read.

PIVX-Project/PIVX@9837f53

* Add getaccumulatorvalues RPC

Return the accumulator values associated with a particular block height.

PIVX-Project/PIVX@8a6d425

* [GUI] Fix wrongly displayed balance on Overview tab

PIVX-Project/PIVX#598

* [Wallet] Fix double locked coin when wallet and MN are on same machine

PIVX-Project/PIVX#656

* [Qt] Add Tor service icon to status bar

Tor Icon is displayed when the client is initialized with a successful
tor service connection.

Icon is hidden otherwise.

PIVX-Project/PIVX@f9e18aa

* [Staking] Prevent potential negative out values during stake splitting

PIVX-Project/PIVX#952

* [QT] Set AA_EnableHighDpiScaling attribute early

Set AA_EnableHighDpiScaling attribute early

bitcoin/bitcoin@099e4b9

* [BUILD] Update bitcoin_qt.m4

* [QT] clean up initialize/shutdown signals

qt: clean up initialize/shutdown signals

 - Change initializeResult(int) to initializeResult(bool) to avoid
   implicit type conversion.
 - Use EXIT_FAILURE and EXIT_SUCCESS instead of magic numbers.
 - Remove the argument from shutdownResult(int); it was called with a
   constant argument.

bitcoin/bitcoin#9834

* [Refactor] Set to nullptr after delete

bitcoin/bitcoin#10027

* [Main] Unify shutdown proceedure in init rather than per-app

and

[Startup][Refactor][Backport] Memory allocation fail handler + init step 1 refactored.

PIVX-Project/PIVX#1029

PIVX-Project/PIVX#769

* [GUI] Make "For anonymization and staking only" checked by default

PIVX-Project/PIVX#521

* [Trivial] Remove CMasternode::SliceHash

PIVX-Project/PIVX#1513

* [REST] improve performance for JSON calls

bitcoin/bitcoin@30973e9

JSON calls do not use the raw data generated for
the .bin and .hex calls. By moving the raw data
creation into the .bin and .hex switch branches,
JSON calls become faster.

* Bump Version

* [Model][Performance] Unnecessary double cs_wallet and cs_main lock.

PIVX-Project/PIVX@9d94ea6

* Delete pkg.m4

Delete arrant pkg.m4 file never was needed

* Update Mac version

* Drop QT4 Support

* [BUILD][MacOS] Make Clean Images

* [Refactor][Move Only] Nonwallet RPC Move to Sub-Dir

* [Refactor][Move Only] Wallet Move to Sub-Dir

* Add Memusage

* [REFACTOR] Drop BOOST_FOREACH/REVERSE_FOREACH

* [REFACTOR] Move PAIRTYPE to std::pair & Q_FOREACH/foreach to for

* [LEVELDB]Use std::atomic instead of MemoryBarrier

* Update Copyright

* [Tests] Fix chain ordering in budget tests

PIVX-Project/PIVX#595

* [Doc] Change aarch assert sign output folder

PIVX-Project/PIVX#585

* [Wallet] Adjust staking properties to lower orphan rates.

PIVX-Project/PIVX#617

* [Wallet] Write new transactions to wtxOrdered properly

PIVX-Project/PIVX#597

* [Travis] Add separate job to check doc/logprint/subtree

Further getting up to date with pivx PIVX-Project/PIVX#639

* [Build] Make sure Boost headers are included for libzerocoin

PIVX-Project/PIVX#622

* [Build] Remove unnecessary BOOST dependency

PIVX-Project/PIVX#605

* [Bug] Fix CKarmanodeConfig::read

rebase from upstream. Windows doesn't initialize CService properly
during startup before the masternode.conf file is read.

PIVX-Project/PIVX@9837f53

* Add getaccumulatorvalues RPC

Return the accumulator values associated with a particular block height.

PIVX-Project/PIVX@8a6d425

* [GUI] Fix wrongly displayed balance on Overview tab

PIVX-Project/PIVX#598

* [Wallet] Fix double locked coin when wallet and MN are on same machine

PIVX-Project/PIVX#656

* [Qt] Add Tor service icon to status bar

Tor Icon is displayed when the client is initialized with a successful
tor service connection.

Icon is hidden otherwise.

PIVX-Project/PIVX@f9e18aa

* [Staking] Prevent potential negative out values during stake splitting

PIVX-Project/PIVX#952

* [QT] Set AA_EnableHighDpiScaling attribute early

Set AA_EnableHighDpiScaling attribute early

bitcoin/bitcoin@099e4b9

* [BUILD] Update bitcoin_qt.m4

* [QT] clean up initialize/shutdown signals

qt: clean up initialize/shutdown signals

 - Change initializeResult(int) to initializeResult(bool) to avoid
   implicit type conversion.
 - Use EXIT_FAILURE and EXIT_SUCCESS instead of magic numbers.
 - Remove the argument from shutdownResult(int); it was called with a
   constant argument.

bitcoin/bitcoin#9834

* [Refactor] Set to nullptr after delete

bitcoin/bitcoin#10027

* [Main] Unify shutdown proceedure in init rather than per-app

and

[Startup][Refactor][Backport] Memory allocation fail handler + init step 1 refactored.

PIVX-Project/PIVX#1029

PIVX-Project/PIVX#769

* [GUI] Make "For anonymization and staking only" checked by default

PIVX-Project/PIVX#521

* [Trivial] Remove CMasternode::SliceHash

PIVX-Project/PIVX#1513

Co-authored-by: Crypto Pliskin <[email protected]>
Co-authored-by: Ra's Al Ghul <[email protected]>
2a5A1Ghu1 added a commit to theohmproject/ohmcoin that referenced this pull request Oct 28, 2020
* Fix croscompile for win32

* Update Segwit and Zerocoin (#47)

* Added all of the code for the update

* Fix URL Path

* Fixed default directory path

* Change masternode declarations to karmanode

* change to ohmcoin

* Create .gitignore

* Update .gitignore

* Update .gitignore

* karmanodefy

* Update proposallist.cpp

* Missing class

* Docs Masternode to karmanode

* Change mn(masternode) to kn(karmanode)

* Update doc and comment collateral

* More doc updates

* Fixed Karmanode references in proposal related files.

* Ckarmanode -> CKarmanode

* Karmanodefy Budget System

* Porotocol and Version Bump

* Protocol Enforcement

* Fix typo

* Spork fixes

* Fix Spork Typo

* Develop (#48)

* Added all of the code for the update

* Fix URL Path

* Fixed default directory path

* Change masternode declarations to karmanode

* change to ohmcoin

* Create .gitignore

* Update .gitignore

* Update .gitignore

* karmanodefy

* Update proposallist.cpp

* Missing class

* Docs Masternode to karmanode

* Change mn(masternode) to kn(karmanode)

* Update doc and comment collateral

* More doc updates

* Fixed Karmanode references in proposal related files.

* Ckarmanode -> CKarmanode

* Karmanodefy Budget System

* Porotocol and Version Bump

* Protocol Enforcement

* Fix typo

* Spork fixes

* Update README.md

* Fixes issues when building in 10.15

This will need to be built against different brew formulas that will be provided on release... This is also a temporary solution once fixes are made for building against updated dependencies.

* Qt Frontend Performace

Limits amount of txs loaded

* Added Qt Dependencies for Cross Compile

* Update spork.h

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

PIVX-Project/PIVX@ec72107

* Fix QT and Boost bugs

phoreproject/Phore#140

* Update Seeders

* Update Budget and Regtest

* More Budget and Regtest

* Too Expressive

removed arrant paranthesis

* Added select coin strategy

phoreproject/Phore@5928d0b

* allow openssl1.0/1.1 to coexist

phoreproject/Phore@d1b6037

* Prevent RPC calls during warmup

* Changed for loop copies to references, and added stake logging

phoreproject/Phore@3e7f6cf

* Fixed masternode edit deleting two masternodes in list

* Fix staking assertion

phoreproject/Phore@0a6a243

* Added Python test for transaction too large issue

phoreproject/Phore@5b08df9

* Added benchmark in mutex lock

phoreproject/Phore@be2f913

* Fix bugs in mnemonic selection and mint maturity

phoreproject/Phore@c118242

* Revert "Fix bugs in mnemonic selection and mint maturity"

This reverts commit 2f242b0.

* Replaced mapNextTx with smaller map to reduce memory usage.

phoreproject/Phore@3a7c813

* Move ThreadStakeMinter out of net.cpp

phoreproject/Phore@5568806

* Revert "Changed for loop copies to references, and added stake logging"

This reverts commit 113aeea.

* Add missing QPainterPath include

PIVX-Project/PIVX@2e226ad

* Lighter Icons

* Update Checkpoints

* Switch Sporks

* Update Placeholder Address

* Ohmify

* Merge Block Changes (#56)

* Version 3.0.0.1 dev (#53)

* Version 3.0.0.1 dev
- Increase time between blocks at block 2977924 or when network has reached 95% upgrade threshold
- Change block time to 4 minutes
- Set  block reward to 6 on activation of new time
- Adjust new block enforce policy to 24 hour span

* fix flag check for; add fIgnoreLegacyBlocks

* move variable out of if statement, fix compile.

* Improve2 (#54)

* WIP: upgrade network upgrade features; testnet fixes..

* add this back for now..

* add missed file, optional.h

* more imports

* adjust imports for consensus.h

* correction

* fix moar missing imports

* add missing vars and fixes

* missing header declare

* changes..

* update makefile

* need this here too..

* fixed compile

* further fixed.

Co-authored-by: Jon <[email protected]>

* Zerocoin is not active; Actually use new block version parameter..

* Don't do this, zerocoin not active..

* remove or fix zerocoin at some later point.

* zerocoin is off.

* Adjust new block version update to use protocol version
Prepare for removal of zercoin; refactoring..
Implement sporks to enforce new version lock ins.

* fix compile issues

* get height for tip

* get consensus params

* add missing spork info

* Version 3.0.2.0

Co-authored-by: Crypto Pliskin <[email protected]>

* Fixes Wallet Lock Issue (#55)

* Fix block height condition

* Combine Spork 24 into 23

Co-authored-by: squidicuz <[email protected]>

* [REST] improve performance for JSON calls

bitcoin/bitcoin@30973e9

JSON calls do not use the raw data generated for
the .bin and .hex calls. By moving the raw data
creation into the .bin and .hex switch branches,
JSON calls become faster.

* Bump Version

* [Model][Performance] Unnecessary double cs_wallet and cs_main lock.

PIVX-Project/PIVX@9d94ea6

* Delete pkg.m4

Delete arrant pkg.m4 file never was needed

* Update Mac version

* Drop QT4 Support

* [BUILD][MacOS] Make Clean Images

* [Refactor][Move Only] Nonwallet RPC Move to Sub-Dir

* [Refactor][Move Only] Wallet Move to Sub-Dir

* Add Memusage

* [REFACTOR] Drop BOOST_FOREACH/REVERSE_FOREACH

* [REFACTOR] Move PAIRTYPE to std::pair & Q_FOREACH/foreach to for

* [LEVELDB]Use std::atomic instead of MemoryBarrier

* Update Copyright

* [Tests] Fix chain ordering in budget tests

PIVX-Project/PIVX#595

* [Doc] Change aarch assert sign output folder

PIVX-Project/PIVX#585

* [Wallet] Adjust staking properties to lower orphan rates.

PIVX-Project/PIVX#617

* [Wallet] Write new transactions to wtxOrdered properly

PIVX-Project/PIVX#597

* [Travis] Add separate job to check doc/logprint/subtree

Further getting up to date with pivx PIVX-Project/PIVX#639

* [Build] Make sure Boost headers are included for libzerocoin

PIVX-Project/PIVX#622

* [Build] Remove unnecessary BOOST dependency

PIVX-Project/PIVX#605

* [Bug] Fix CKarmanodeConfig::read

rebase from upstream. Windows doesn't initialize CService properly
during startup before the masternode.conf file is read.

PIVX-Project/PIVX@9837f53

* Add getaccumulatorvalues RPC

Return the accumulator values associated with a particular block height.

PIVX-Project/PIVX@8a6d425

* [GUI] Fix wrongly displayed balance on Overview tab

PIVX-Project/PIVX#598

* [Wallet] Fix double locked coin when wallet and MN are on same machine

PIVX-Project/PIVX#656

* [Qt] Add Tor service icon to status bar

Tor Icon is displayed when the client is initialized with a successful
tor service connection.

Icon is hidden otherwise.

PIVX-Project/PIVX@f9e18aa

* [Staking] Prevent potential negative out values during stake splitting

PIVX-Project/PIVX#952

* [QT] Set AA_EnableHighDpiScaling attribute early

Set AA_EnableHighDpiScaling attribute early

bitcoin/bitcoin@099e4b9

* [BUILD] Update bitcoin_qt.m4

* [QT] clean up initialize/shutdown signals

qt: clean up initialize/shutdown signals

 - Change initializeResult(int) to initializeResult(bool) to avoid
   implicit type conversion.
 - Use EXIT_FAILURE and EXIT_SUCCESS instead of magic numbers.
 - Remove the argument from shutdownResult(int); it was called with a
   constant argument.

bitcoin/bitcoin#9834

* [Refactor] Set to nullptr after delete

bitcoin/bitcoin#10027

* [Main] Unify shutdown proceedure in init rather than per-app

and

[Startup][Refactor][Backport] Memory allocation fail handler + init step 1 refactored.

PIVX-Project/PIVX#1029

PIVX-Project/PIVX#769

* [GUI] Make "For anonymization and staking only" checked by default

PIVX-Project/PIVX#521

* [Trivial] Remove CMasternode::SliceHash

PIVX-Project/PIVX#1513

* [REST] improve performance for JSON calls

bitcoin/bitcoin@30973e9

JSON calls do not use the raw data generated for
the .bin and .hex calls. By moving the raw data
creation into the .bin and .hex switch branches,
JSON calls become faster.

* Bump Version

* [Model][Performance] Unnecessary double cs_wallet and cs_main lock.

PIVX-Project/PIVX@9d94ea6

* Delete pkg.m4

Delete arrant pkg.m4 file never was needed

* Update Mac version

* Drop QT4 Support

* [BUILD][MacOS] Make Clean Images

* [Refactor][Move Only] Nonwallet RPC Move to Sub-Dir

* [Refactor][Move Only] Wallet Move to Sub-Dir

* Add Memusage

* [REFACTOR] Drop BOOST_FOREACH/REVERSE_FOREACH

* [REFACTOR] Move PAIRTYPE to std::pair & Q_FOREACH/foreach to for

* [LEVELDB]Use std::atomic instead of MemoryBarrier

* Update Copyright

* [Tests] Fix chain ordering in budget tests

PIVX-Project/PIVX#595

* [Doc] Change aarch assert sign output folder

PIVX-Project/PIVX#585

* [Wallet] Adjust staking properties to lower orphan rates.

PIVX-Project/PIVX#617

* [Wallet] Write new transactions to wtxOrdered properly

PIVX-Project/PIVX#597

* [Travis] Add separate job to check doc/logprint/subtree

Further getting up to date with pivx PIVX-Project/PIVX#639

* [Build] Make sure Boost headers are included for libzerocoin

PIVX-Project/PIVX#622

* [Build] Remove unnecessary BOOST dependency

PIVX-Project/PIVX#605

* [Bug] Fix CKarmanodeConfig::read

rebase from upstream. Windows doesn't initialize CService properly
during startup before the masternode.conf file is read.

PIVX-Project/PIVX@9837f53

* Add getaccumulatorvalues RPC

Return the accumulator values associated with a particular block height.

PIVX-Project/PIVX@8a6d425

* [GUI] Fix wrongly displayed balance on Overview tab

PIVX-Project/PIVX#598

* [Wallet] Fix double locked coin when wallet and MN are on same machine

PIVX-Project/PIVX#656

* [Qt] Add Tor service icon to status bar

Tor Icon is displayed when the client is initialized with a successful
tor service connection.

Icon is hidden otherwise.

PIVX-Project/PIVX@f9e18aa

* [Staking] Prevent potential negative out values during stake splitting

PIVX-Project/PIVX#952

* [QT] Set AA_EnableHighDpiScaling attribute early

Set AA_EnableHighDpiScaling attribute early

bitcoin/bitcoin@099e4b9

* [BUILD] Update bitcoin_qt.m4

* [QT] clean up initialize/shutdown signals

qt: clean up initialize/shutdown signals

 - Change initializeResult(int) to initializeResult(bool) to avoid
   implicit type conversion.
 - Use EXIT_FAILURE and EXIT_SUCCESS instead of magic numbers.
 - Remove the argument from shutdownResult(int); it was called with a
   constant argument.

bitcoin/bitcoin#9834

* [Refactor] Set to nullptr after delete

bitcoin/bitcoin#10027

* [Main] Unify shutdown proceedure in init rather than per-app

and

[Startup][Refactor][Backport] Memory allocation fail handler + init step 1 refactored.

PIVX-Project/PIVX#1029

PIVX-Project/PIVX#769

* [GUI] Make "For anonymization and staking only" checked by default

PIVX-Project/PIVX#521

* [Trivial] Remove CMasternode::SliceHash

PIVX-Project/PIVX#1513

Co-authored-by: Ra's Al Ghul <[email protected]>
Co-authored-by: Andrew LaChasse <[email protected]>
Co-authored-by: squidicuz <[email protected]>
2a5A1Ghu1 added a commit to theohmproject/ohmcoin that referenced this pull request Nov 2, 2020
* Ohmcoin performance Updates (#70)

* Fix croscompile for win32

* Update Segwit and Zerocoin (#47)

* Added all of the code for the update

* Fix URL Path

* Fixed default directory path

* Change masternode declarations to karmanode

* change to ohmcoin

* Create .gitignore

* Update .gitignore

* Update .gitignore

* karmanodefy

* Update proposallist.cpp

* Missing class

* Docs Masternode to karmanode

* Change mn(masternode) to kn(karmanode)

* Update doc and comment collateral

* More doc updates

* Fixed Karmanode references in proposal related files.

* Ckarmanode -> CKarmanode

* Karmanodefy Budget System

* Porotocol and Version Bump

* Protocol Enforcement

* Fix typo

* Spork fixes

* Fix Spork Typo

* Develop (#48)

* Added all of the code for the update

* Fix URL Path

* Fixed default directory path

* Change masternode declarations to karmanode

* change to ohmcoin

* Create .gitignore

* Update .gitignore

* Update .gitignore

* karmanodefy

* Update proposallist.cpp

* Missing class

* Docs Masternode to karmanode

* Change mn(masternode) to kn(karmanode)

* Update doc and comment collateral

* More doc updates

* Fixed Karmanode references in proposal related files.

* Ckarmanode -> CKarmanode

* Karmanodefy Budget System

* Porotocol and Version Bump

* Protocol Enforcement

* Fix typo

* Spork fixes

* Update README.md

* Fixes issues when building in 10.15

This will need to be built against different brew formulas that will be provided on release... This is also a temporary solution once fixes are made for building against updated dependencies.

* Qt Frontend Performace

Limits amount of txs loaded

* Added Qt Dependencies for Cross Compile

* Update spork.h

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

PIVX-Project/PIVX@ec72107

* Fix QT and Boost bugs

phoreproject/Phore#140

* Update Seeders

* Update Budget and Regtest

* More Budget and Regtest

* Too Expressive

removed arrant paranthesis

* Added select coin strategy

phoreproject/Phore@5928d0b

* allow openssl1.0/1.1 to coexist

phoreproject/Phore@d1b6037

* Prevent RPC calls during warmup

* Changed for loop copies to references, and added stake logging

phoreproject/Phore@3e7f6cf

* Fixed masternode edit deleting two masternodes in list

* Fix staking assertion

phoreproject/Phore@0a6a243

* Added Python test for transaction too large issue

phoreproject/Phore@5b08df9

* Added benchmark in mutex lock

phoreproject/Phore@be2f913

* Fix bugs in mnemonic selection and mint maturity

phoreproject/Phore@c118242

* Revert "Fix bugs in mnemonic selection and mint maturity"

This reverts commit 2f242b0.

* Replaced mapNextTx with smaller map to reduce memory usage.

phoreproject/Phore@3a7c813

* Move ThreadStakeMinter out of net.cpp

phoreproject/Phore@5568806

* Revert "Changed for loop copies to references, and added stake logging"

This reverts commit 113aeea.

* Add missing QPainterPath include

PIVX-Project/PIVX@2e226ad

* Lighter Icons

* Update Checkpoints

* Switch Sporks

* Update Placeholder Address

* Ohmify

* Merge Block Changes (#56)

* Version 3.0.0.1 dev (#53)

* Version 3.0.0.1 dev
- Increase time between blocks at block 2977924 or when network has reached 95% upgrade threshold
- Change block time to 4 minutes
- Set  block reward to 6 on activation of new time
- Adjust new block enforce policy to 24 hour span

* fix flag check for; add fIgnoreLegacyBlocks

* move variable out of if statement, fix compile.

* Improve2 (#54)

* WIP: upgrade network upgrade features; testnet fixes..

* add this back for now..

* add missed file, optional.h

* more imports

* adjust imports for consensus.h

* correction

* fix moar missing imports

* add missing vars and fixes

* missing header declare

* changes..

* update makefile

* need this here too..

* fixed compile

* further fixed.

Co-authored-by: Jon <[email protected]>

* Zerocoin is not active; Actually use new block version parameter..

* Don't do this, zerocoin not active..

* remove or fix zerocoin at some later point.

* zerocoin is off.

* Adjust new block version update to use protocol version
Prepare for removal of zercoin; refactoring..
Implement sporks to enforce new version lock ins.

* fix compile issues

* get height for tip

* get consensus params

* add missing spork info

* Version 3.0.2.0

Co-authored-by: Crypto Pliskin <[email protected]>

* Fixes Wallet Lock Issue (#55)

* Fix block height condition

* Combine Spork 24 into 23

Co-authored-by: squidicuz <[email protected]>

* [REST] improve performance for JSON calls

bitcoin/bitcoin@30973e9

JSON calls do not use the raw data generated for
the .bin and .hex calls. By moving the raw data
creation into the .bin and .hex switch branches,
JSON calls become faster.

* Bump Version

* [Model][Performance] Unnecessary double cs_wallet and cs_main lock.

PIVX-Project/PIVX@9d94ea6

* Delete pkg.m4

Delete arrant pkg.m4 file never was needed

* Update Mac version

* Drop QT4 Support

* [BUILD][MacOS] Make Clean Images

* [Refactor][Move Only] Nonwallet RPC Move to Sub-Dir

* [Refactor][Move Only] Wallet Move to Sub-Dir

* Add Memusage

* [REFACTOR] Drop BOOST_FOREACH/REVERSE_FOREACH

* [REFACTOR] Move PAIRTYPE to std::pair & Q_FOREACH/foreach to for

* [LEVELDB]Use std::atomic instead of MemoryBarrier

* Update Copyright

* [Tests] Fix chain ordering in budget tests

PIVX-Project/PIVX#595

* [Doc] Change aarch assert sign output folder

PIVX-Project/PIVX#585

* [Wallet] Adjust staking properties to lower orphan rates.

PIVX-Project/PIVX#617

* [Wallet] Write new transactions to wtxOrdered properly

PIVX-Project/PIVX#597

* [Travis] Add separate job to check doc/logprint/subtree

Further getting up to date with pivx PIVX-Project/PIVX#639

* [Build] Make sure Boost headers are included for libzerocoin

PIVX-Project/PIVX#622

* [Build] Remove unnecessary BOOST dependency

PIVX-Project/PIVX#605

* [Bug] Fix CKarmanodeConfig::read

rebase from upstream. Windows doesn't initialize CService properly
during startup before the masternode.conf file is read.

PIVX-Project/PIVX@9837f53

* Add getaccumulatorvalues RPC

Return the accumulator values associated with a particular block height.

PIVX-Project/PIVX@8a6d425

* [GUI] Fix wrongly displayed balance on Overview tab

PIVX-Project/PIVX#598

* [Wallet] Fix double locked coin when wallet and MN are on same machine

PIVX-Project/PIVX#656

* [Qt] Add Tor service icon to status bar

Tor Icon is displayed when the client is initialized with a successful
tor service connection.

Icon is hidden otherwise.

PIVX-Project/PIVX@f9e18aa

* [Staking] Prevent potential negative out values during stake splitting

PIVX-Project/PIVX#952

* [QT] Set AA_EnableHighDpiScaling attribute early

Set AA_EnableHighDpiScaling attribute early

bitcoin/bitcoin@099e4b9

* [BUILD] Update bitcoin_qt.m4

* [QT] clean up initialize/shutdown signals

qt: clean up initialize/shutdown signals

 - Change initializeResult(int) to initializeResult(bool) to avoid
   implicit type conversion.
 - Use EXIT_FAILURE and EXIT_SUCCESS instead of magic numbers.
 - Remove the argument from shutdownResult(int); it was called with a
   constant argument.

bitcoin/bitcoin#9834

* [Refactor] Set to nullptr after delete

bitcoin/bitcoin#10027

* [Main] Unify shutdown proceedure in init rather than per-app

and

[Startup][Refactor][Backport] Memory allocation fail handler + init step 1 refactored.

PIVX-Project/PIVX#1029

PIVX-Project/PIVX#769

* [GUI] Make "For anonymization and staking only" checked by default

PIVX-Project/PIVX#521

* [Trivial] Remove CMasternode::SliceHash

PIVX-Project/PIVX#1513

* [REST] improve performance for JSON calls

bitcoin/bitcoin@30973e9

JSON calls do not use the raw data generated for
the .bin and .hex calls. By moving the raw data
creation into the .bin and .hex switch branches,
JSON calls become faster.

* Bump Version

* [Model][Performance] Unnecessary double cs_wallet and cs_main lock.

PIVX-Project/PIVX@9d94ea6

* Delete pkg.m4

Delete arrant pkg.m4 file never was needed

* Update Mac version

* Drop QT4 Support

* [BUILD][MacOS] Make Clean Images

* [Refactor][Move Only] Nonwallet RPC Move to Sub-Dir

* [Refactor][Move Only] Wallet Move to Sub-Dir

* Add Memusage

* [REFACTOR] Drop BOOST_FOREACH/REVERSE_FOREACH

* [REFACTOR] Move PAIRTYPE to std::pair & Q_FOREACH/foreach to for

* [LEVELDB]Use std::atomic instead of MemoryBarrier

* Update Copyright

* [Tests] Fix chain ordering in budget tests

PIVX-Project/PIVX#595

* [Doc] Change aarch assert sign output folder

PIVX-Project/PIVX#585

* [Wallet] Adjust staking properties to lower orphan rates.

PIVX-Project/PIVX#617

* [Wallet] Write new transactions to wtxOrdered properly

PIVX-Project/PIVX#597

* [Travis] Add separate job to check doc/logprint/subtree

Further getting up to date with pivx PIVX-Project/PIVX#639

* [Build] Make sure Boost headers are included for libzerocoin

PIVX-Project/PIVX#622

* [Build] Remove unnecessary BOOST dependency

PIVX-Project/PIVX#605

* [Bug] Fix CKarmanodeConfig::read

rebase from upstream. Windows doesn't initialize CService properly
during startup before the masternode.conf file is read.

PIVX-Project/PIVX@9837f53

* Add getaccumulatorvalues RPC

Return the accumulator values associated with a particular block height.

PIVX-Project/PIVX@8a6d425

* [GUI] Fix wrongly displayed balance on Overview tab

PIVX-Project/PIVX#598

* [Wallet] Fix double locked coin when wallet and MN are on same machine

PIVX-Project/PIVX#656

* [Qt] Add Tor service icon to status bar

Tor Icon is displayed when the client is initialized with a successful
tor service connection.

Icon is hidden otherwise.

PIVX-Project/PIVX@f9e18aa

* [Staking] Prevent potential negative out values during stake splitting

PIVX-Project/PIVX#952

* [QT] Set AA_EnableHighDpiScaling attribute early

Set AA_EnableHighDpiScaling attribute early

bitcoin/bitcoin@099e4b9

* [BUILD] Update bitcoin_qt.m4

* [QT] clean up initialize/shutdown signals

qt: clean up initialize/shutdown signals

 - Change initializeResult(int) to initializeResult(bool) to avoid
   implicit type conversion.
 - Use EXIT_FAILURE and EXIT_SUCCESS instead of magic numbers.
 - Remove the argument from shutdownResult(int); it was called with a
   constant argument.

bitcoin/bitcoin#9834

* [Refactor] Set to nullptr after delete

bitcoin/bitcoin#10027

* [Main] Unify shutdown proceedure in init rather than per-app

and

[Startup][Refactor][Backport] Memory allocation fail handler + init step 1 refactored.

PIVX-Project/PIVX#1029

PIVX-Project/PIVX#769

* [GUI] Make "For anonymization and staking only" checked by default

PIVX-Project/PIVX#521

* [Trivial] Remove CMasternode::SliceHash

PIVX-Project/PIVX#1513

Co-authored-by: Ra's Al Ghul <[email protected]>
Co-authored-by: Andrew LaChasse <[email protected]>
Co-authored-by: squidicuz <[email protected]>

* Add checkpoints; Add Activation Blockhash for Version 3.0.2

Co-authored-by: Ra's Al Ghul <[email protected]>
Co-authored-by: squidicuz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants