aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2019-10-07 14:11:34 -0400
committerAndrew Chow <[email protected]>2019-12-02 11:57:46 -0500
commit386a994b853bc5b3a2ed0d812673465b8ffa4849 (patch)
tree0589f2d5ad8d22fe0d089f2de67bf62b842378cb /src/httpserver.cpp
parentKey pool: Move LearnRelated and GetDestination calls (diff)
downloaddiscoin-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