forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 720
[Core][Script][Wallet][RPC][Tests] Cold Staking #955
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
Merged
Merged
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
0fb6ca1
[Core] Define STAKING_ADDRESS addresses
random-zebra 6ec51f4
[Script] Define OP_CHECKCOLDSTAKEVERIFY opcode behaviour
random-zebra c7d1934
[Core] define TX_COLDSTAKE standard and P2CS script
random-zebra f6bba23
[Wallet] Get ColdStaking/Delegated balance
random-zebra b709748
[RPC] define: getnewstakingaddress, delegatestake, rawdelegatestake
random-zebra 97b6332
[RPC/Wallet] fix IsMine filters and add option to include delegated
random-zebra e8abd21
[Cleanup] Remove re-declaration of EnsureWalletIsUnlocked in rpcdump
random-zebra dea30c7
[Script] Define IsPayToColdStaking() fast test
random-zebra ca90d02
[Script] Sign P2CS scripts
random-zebra e19bfa4
[Wallet] Add flag 'fStakeDelegationVoided' to tx when P2PC gets spent
random-zebra 8ac0ed3
[Script] Add fColdStake to ExtractDestination
random-zebra cdb758b
[RPC] define getcoldstakingbalance
random-zebra f30c299
[Wallet] Use cold inputs to stake
random-zebra 661083d
[Core] Sign block with staking key if coinstake is 'cold' stake
random-zebra 92515c3
[Core] add main P2CS check in CheckTransaction
random-zebra e546ec6
[Core][Tests] REGTEST: fix nStakeModifier
random-zebra bff6c9e
[RPC] signrawtransaction: select proper key for 'cold' inputs
random-zebra 1d69ef3
[Wallet] Add -coldstaking flag to enable/disable feature
random-zebra 4064423
[Consensus] ColdStaking enforcement
random-zebra 8bc0893
[Wallet/DB] Add Delegators-whitelist protection for cold staker
random-zebra 8b56c33
[RPC] define: delegatoradd, delegatorremove
random-zebra 1d071f4
[Tests] Add Cold Staking functional testing
random-zebra c5de40f
[Cleanup] Fix linter
random-zebra 6c1d399
[Trivial] Fix spelling in delegatorremove RPC help
random-zebra ad6bee1
[Wallet][DB] Refactor Delegator whitelist as AddressBook entry
random-zebra 6e28ec1
[Core] prevent abuse on mn output when spork 8 is disabled
random-zebra c723ab6
[Core] Add threshold for P2CS value (hardcoded to 10 PIV)
random-zebra 374a78c
[Tests] Fix Script UnitTests data
random-zebra 0f09fce
[Core] Init CBitcoinAddress and Visitor with base58 prefix instead of…
random-zebra 61e9d6e
[Consensus] Fix output index in CheckColdStake()
random-zebra 9c8a656
[Wallet] Speed up ColdStaking and Delegated balance computation
random-zebra f20e1a6
[RPC] CreateColdStakeDelegation move checks before creating address
random-zebra e67c152
[Cleanup] minor styling in standard.cpp and remove fStakeDelegationVo…
random-zebra 2a5bae7
[Script] Guard against GetPubKey() failures in Solver()
random-zebra 75b8861
[Script] Unify OP_CHECKCOLDSTAKEVERIFY checks
random-zebra 618afdb
[Tests] Additional case for Cold Staking functional test
random-zebra 7ce9432
[Tests] Fix coldstaking functional test
random-zebra 5383f52
[Fix] MintableCoins include cold staking balance
random-zebra f771f86
[Trivial] define GetSakingBalance and update it in miner
random-zebra 4000b6e
[RPC] Define listcoldutxos function
random-zebra 968931e
[RPC] listcoldutxos: fix staking addresses base58 prefix
random-zebra 5209c3f
[DB] Fix unserialization check for cold staking txes
random-zebra 87327fc
[RPC] listcoldutxos: include only final, trusted, unspent coins
random-zebra f7f7119
[Trivial][RPC] Fix delegatoradd help text and remove extra arg fRescan
random-zebra d81ecdc
[Wallet] don't include P2CS in SelectStakeCoins if CS is not enabled
random-zebra b20bc52
[RPC] define getdelegatedbalance
random-zebra 2f246d2
[Wallet] fix IsValid and validateaddress for Staking Addresses
random-zebra 23ecdee
[RPC] define listdelegators
random-zebra 16fa605
[RPC] define liststakingaddresses
random-zebra b33c6bc
[Wallet] define GetColdStakingDebit and GetStakeDelegationDebit
random-zebra 436f383
[Wallet] Add fUnspent flag to GetCredit
random-zebra bf27e84
[Wallet] Stop duplicating cached amount update. Single method doing i…
furszy 80678b7
[Wallet][Refactor] Inline getDebit/getCredit if else in updateAmount …
furszy 6cadfea
[Wallet] Add fStakeDelegation voided in-memory flag
random-zebra 620bc19
[Bug] Fix isMine type in GetColdStakingDebit
random-zebra 244feca
[Wallet] Fix spending P2CS delegations with coin control
random-zebra 3bfc380
[Tests] Speed up feature_coldStaking + check 'listcoldutxos'
random-zebra 255d757
[Core] Add CheckColdStakeFreeOutput function
random-zebra e498a06
[Core] Cold Staking: lower dust threshold to 1 PIV
random-zebra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,4 +147,4 @@ bool CBasicKeyStore::GetKey(const CKeyID& address, CKey& keyOut) const | |
| } | ||
| } | ||
| return false; | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.