BTCP-Rebase/src/rpc
Wladimir J. van der Laan d42a4fe5aa
Merge #11041: Add LookupBlockIndex
92fabcd44 Add LookupBlockIndex function (João Barbosa)
43a32b739 Add missing cs_lock in CreateWalletFromFile (João Barbosa)
f814a3e8f Fix cs_main lock in LoadExternalBlockFile (João Barbosa)
c651df8b3 Lock cs_main while loading block index in AppInitMain (João Barbosa)
02de6a6bc Assert cs_main is held when accessing mapBlockIndex (João Barbosa)

Pull request description:

  Replace all `mapBlockIndex` lookups with the new `LookupBlockIndex()`. In some cases it avoids a second lookup.

Tree-SHA512: ca31118f028a19721f2191d86f2dd398144d04df345694575a64aeb293be2f85785201480c3c578a0ec99690516205708558c0fd4168b09313378fd4e60a8412
2018-03-13 19:12:35 +01:00
..
blockchain.cpp Merge #11041: Add LookupBlockIndex 2018-03-13 19:12:35 +01:00
blockchain.h Remove unnecessary forward class declarations in header files 2017-06-12 20:37:43 +02:00
client.cpp Add address filtering to listreceivedbyaddress 2018-03-07 08:31:30 -05:00
client.h rpc: Named argument support for bitcoin-cli 2017-01-10 12:04:54 +01:00
mining.cpp Merge #11041: Add LookupBlockIndex 2018-03-13 19:12:35 +01:00
mining.h scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
misc.cpp Merge #11372: Address encoding cleanup 2018-03-07 00:09:48 +01:00
net.cpp fix version typo 2018-02-27 11:43:46 +01:00
protocol.cpp scripted-diff: Use UniValue.pushKV instead of push_back(Pair()) 2018-02-10 10:05:07 -05:00
protocol.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
rawtransaction.cpp Merge #11041: Add LookupBlockIndex 2018-03-13 19:12:35 +01:00
rawtransaction.h Declare CMutableTransaction a struct in rawtransaction.h 2018-02-20 14:16:37 -08:00
register.h Do not shadow global RPC table variable (tableRPC) 2016-08-25 15:02:26 +02:00
safemode.cpp scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
safemode.h rpc: Push down safe mode checks 2017-08-29 10:09:41 +02:00
server.cpp Merge #11872: [rpc] createrawtransaction: Accept sorted outputs 2018-03-13 18:00:06 +01:00
server.h [rpc] createrawtransaction: Accept sorted outputs 2018-03-07 12:58:14 -05:00
util.cpp Split key_io (address/key encodings) off from base58 2018-02-19 18:55:21 -08:00
util.h [rpc] Move DescribeAddressVisitor to rpc/util 2018-02-16 12:09:26 -05:00