Commit b1c776c
alex v
Cold staking (#249)
* stake weight counts cold staking balance
* show colstaking output values in gui
* overview layout
* overview layout move to staking section
* receive layout
* fix top menu layout
* unused var
* set coinstake version before signing
* resign coinstake tx
* error takes string as arg
* error must return false
* inherit return value
* extract pub key from input scripsig when cold staking
* gui cold staking wizard
* fix layout
* fix layout
* restrict getcoldstakingaddress only after actv
* use chainactive instead of pindexbestheader
* add logging
* correctly extract pubkey from coldstaking script
* new regtest genesis block
* IsPayToPublicKey()
* addressindex and unspentindex track p2pk (staking) outputs
* use address type 1 for p2pk
* use extract destination for address/unspent indexes
* track cold staking addresses in index
* GetStakingKeyID / GetSpendingKeyID
Add new class methods to obtain the staking and spending key ids from a cold staking address
* ui checks if spends coldstaking out
when sending a transaction, the ui will check whether any of the outputs is a cold staking script. in that case, it will warn the user about the coins going to a normal change address if he didnt specify a cold staking address as custom change destination
* fix
* update strings
* add IsColdStake() to CScript
* parse OP_COINSTAKE opcode
* Solver() extracts addresses from cold staking tx
* read key from coldstaking script when verifying block signature
* sign coldstaking input
* remove cnavcoinaddress
* add key_io
* revert
* fix extractdestinations
* required signatures
* show cold staking balance
* get available stakable credit
* get available stakable credit
* count cold staking balance when creating coinstake
* show canspend / canstake in listtransactions
* fix total stakable amount
* list transactions canspend/stake
* fix order of the public keys on raw decoded address
* cold staking balance in ui
* show colstaking output values in gui
* overview layout
* overview layout move to staking section
* fix top menu layout
* extract pub key from input scripsig when cold staking
* gui cold staking wizard
* add logging
* remove duplicate case
* Remove duplicated case
* Remove wrong duplicated check
* do not enforce random string for preq v2
* adjust overview layout
* fix condition order
* extend log
* move proposal/preq check to contextualcheckblock
* revert
* rebase cold staking branch
* testnet coldstaking versionbit
* fix version bit
* check versionbit testnet
* sync branch
* restart testnet / increase pow last block
* add log
* cfund change logic for accepting props/preq
* add consensus info to cfundstats
* do not count rejected preqs when creating a new one
* added cold staking to regtest (#31)
* combined cfund test helper functions: activate_cfund, start_new_cycle, end_cycle, slow_gen
* simplified setup-network using existing code
* removed duplicate code from rawtx tests and minor linting fixes
* adds cold staking to regtest
* added cold staking to regtest
* new testnet genesis
* a coldstakingaddress can be constructued only from two normal addresses
* bug fix for getcoldstakingaddress (#32)
* forces user to use different staking and spending addresses for getcoldstakingaddress
* updated the cold-staking wizard so you cannot enter the same address as both args
* add coldstaking to regtest
* admit holding two priv keys of a cstaking script
* Merge from Cfund cold staking (#33)
* do not enforce random string for preq v2
* adjust overview layout
* fix condition order
* extend log
* move proposal/preq check to contextualcheckblock
* revert
* restart testnet / increase pow last block
* add log
* cfund change logic for accepting props/preq
* add consensus info to cfundstats
* do not count rejected preqs when creating a new one
* new testnet genesis
* a coldstakingaddress can be constructued only from two normal addresses
* bug fix for getcoldstakingaddress (#32)
* forces user to use different staking and spending addresses for getcoldstakingaddress
* updated the cold-staking wizard so you cannot enter the same address as both args
* add coldstaking to regtest
* admit holding two priv keys of a cstaking script
* FIxed wizard text (#35)
* fix overview page
* fix coldstaking wizard
* show both staking and spending pubkeys
* fix cold staking wizard
* combine signatures cold staking
* Moved over RPC tests from other branch
* Updated gitignore
* ported fix for zlib compile on mac from bitcoin bitcoin/bitcoin#9973
* tided tests up slightly
* First spending test
* Largely completed tests for coldstaking where we hold the spending address
* started work on coldstaing tests where we hold the staking address
* fixed accidental var reasignment in test
* Added a staking test
* added some debugging to test
* added missing brackets to function call
* added a loop that waits until we stake
* fixed syntax error
* fixed some more syntax errors
* replaced missing bracket
* Updated test so we use getblockheight instead of getblockchaininfo and only set up 1 node instaed of 2
* we now mine blocks so our coins mature for stkaing
* now we check if the cold staking utxo is used for staking
* adding in block generation so we confirm our tx to the cold stkaing address
* ading more logs for debugging
* more debugging
* syncing blocks between nodes
* Rejigged node setup, hopefully gets syncing working
* get the utxo a different way
* fixed syntax error
* New method to get utxo
* fixes some syntax errors
* fixes other syntax errors
* We check if the uxto is spent via staking
* bump version 4.5.0
* added some more staing address tests
* added ore logging
* updated arg name in send raw tx function, os it's more verbose
* Updated function so we throw a custom exception we can explicitely catch
* fixed exception throwing
* fixed syntax err
* fixing more syntax errors
* playing around with exception catching
* fixed typo
* Removed some logging, unused variables and commented out some printing as part of test clean up
* added syncing to test
* more test fixes
* removed syncing
* removed syncing
* wrapped operation in rbackets
* parse numbers asfloats
* removed back slahses
* fixed syntax error
* we generate our blocks on node 0 now and just remove the block rewards value from our balance calculatins
* added getcoldstaking error message
* updated rpc test for new help text
* adds modified coldstaking client testing doc
* format fixes
* format fixes
* Moved over RPC tests from other branch
* Updated gitignore
* ported fix for zlib compile on mac from bitcoin bitcoin/bitcoin#9973
* tided tests up slightly
* First spending test
* Largely completed tests for coldstaking where we hold the spending address
* started work on coldstaing tests where we hold the staking address
* fixed accidental var reasignment in test
* Added a staking test
* added some debugging to test
* added missing brackets to function call
* added a loop that waits until we stake
* fixed syntax error
* fixed some more syntax errors
* replaced missing bracket
* Updated test so we use getblockheight instead of getblockchaininfo and only set up 1 node instaed of 2
* we now mine blocks so our coins mature for stkaing
* now we check if the cold staking utxo is used for staking
* adding in block generation so we confirm our tx to the cold stkaing address
* ading more logs for debugging
* more debugging
* syncing blocks between nodes
* Rejigged node setup, hopefully gets syncing working
* get the utxo a different way
* fixed syntax error
* New method to get utxo
* fixes some syntax errors
* fixes other syntax errors
* We check if the uxto is spent via staking
* added some more staing address tests
* added ore logging
* updated arg name in send raw tx function, os it's more verbose
* Updated function so we throw a custom exception we can explicitely catch
* fixed exception throwing
* fixed syntax err
* fixing more syntax errors
* playing around with exception catching
* fixed typo
* Static reward RC (#328)
* static rewards added
* initial test and test util added
* added new test to rpc test file
* test updated
* adding sleep print
* removed extra bracket
* updated perms.
* cleanup test
* checking before the soft fork
* creating a few blocks to start
* removing pre check
* Removed some logging, unused variables and commented out some printing as part of test clean up
* added syncing to test
* more test fixes
* removed syncing
* removed syncing
* wrapped operation in rbackets
* parse numbers asfloats
* removed back slahses
* fixed syntax error
* we generate our blocks on node 0 now and just remove the block rewards value from our balance calculatins
* added getcoldstaking error message
* updated rpc test for new help text
* adds modified coldstaking client testing doc
* format fixes
* format fixes
* fix
* added spending-from-coldstaking test
* updated rpc-tests.py
* removed extra file, updated coldstaking tests
* Update qa/pull-tester/rpc-tests.py
delete reference to deleted file
* Updated release notes with a draft of the cold staking notes
* added notes about Marcus's testing
* fix word1 parent 8aa7cdd commit b1c776c
61 files changed
Lines changed: 2352 additions & 291 deletions
File tree
- depends/packages
- doc/release-notes
- release-notes-4.5.0-additional-testing-notes
- qa
- pull-tester
- rpc-tests
- src
- consensus
- qt
- forms
- locale
- rpc
- script
- test
- wallet
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
Lines changed: 185 additions & 0 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
3 | 38 | | |
4 | 39 | | |
5 | 40 | | |
| |||
11 | 46 | | |
12 | 47 | | |
13 | 48 | | |
| 49 | + | |
| 50 | + | |
14 | 51 | | |
15 | 52 | | |
16 | 53 | | |
| |||
35 | 72 | | |
36 | 73 | | |
37 | 74 | | |
38 | | - | |
| 75 | + | |
39 | 76 | | |
40 | 77 | | |
41 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
163 | 166 | | |
164 | | - | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
0 commit comments