diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-06-16 14:45:32 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-07-11 15:24:29 +0200 |
| commit | 6c37f7fd78832442a26e56bd0787974927df4fb2 (patch) | |
| tree | 9c4138c7e53bbd4607a13de9169dd2d0dabee6be /src/chainparamsbase.cpp | |
| parent | Merge pull request #4507 (diff) | |
| download | discoin-6c37f7fd78832442a26e56bd0787974927df4fb2.tar.xz discoin-6c37f7fd78832442a26e56bd0787974927df4fb2.zip | |
`getrawchangeaddress` should fail when keypool exhausted
An user on IRC reported an issue where `getrawchangeaddress`
keeps returning a single address when the keypool is exhausted.
In my opinion this is strange behaviour.
- Change CReserveKey to fail when running out of keys in the keypool.
- Make `getrawchangeaddress` return RPC_WALLET_KEYPOOL_RAN_OUT when
unable to create an address.
- Add a Python RPC test for checking the keypool behaviour in combination
with encrypted wallets.
Diffstat (limited to 'src/chainparamsbase.cpp')
0 files changed, 0 insertions, 0 deletions