diff options
| author | Andrew Chow <[email protected]> | 2019-10-07 14:11:34 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2019-12-02 11:57:46 -0500 |
| commit | 386a994b853bc5b3a2ed0d812673465b8ffa4849 (patch) | |
| tree | 0589f2d5ad8d22fe0d089f2de67bf62b842378cb /src/httpserver.cpp | |
| parent | Key pool: Move LearnRelated and GetDestination calls (diff) | |
| download | discoin-386a994b853bc5b3a2ed0d812673465b8ffa4849.tar.xz discoin-386a994b853bc5b3a2ed0d812673465b8ffa4849.zip | |
Key pool: Change ReturnDestination interface to take address instead of key
In order for ScriptPubKeyMan to be generic and work with future
ScriptPubKeyMans, ScriptPubKeyMan::ReturnDestination is changed to
take a CTxDestination instead of a CPubKey. Since LegacyScriptPubKeyMan
still deals with keys internally, a new map m_reserved_key_to_index is
added in order to track the keypool indexes that have been reserved.
The CPubKey argument of KeepDestination is also removed so that it is
more generic. Instead of taking a CPubKey or a CTxDestination, we just use
the nIndex given to find the pubkey.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions