diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-03-27 16:12:02 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-03-29 09:56:47 +0200 |
commit | f885b670290d39e697995fd2d35dc36edc104011 (patch) | |
tree | d9e10fce74ee4be50176b77be86b00f9df092484 /src/rpc/blockchain.cpp | |
parent | 8d8f28dd52fc9f78f57842f94842c8433f1811be (diff) | |
download | bitcoin-f885b670290d39e697995fd2d35dc36edc104011.tar.xz |
refactor: Make rest.cpp dependency on `*toJSON` in `blockchain.cpp` explicit
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r-- | src/rpc/blockchain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index b0da683d91..f158065e76 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -101,7 +101,7 @@ UniValue blockheaderToJSON(const CBlockIndex* blockindex) return result; } -UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool txDetails = false) +UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool txDetails) { UniValue result(UniValue::VOBJ); result.push_back(Pair("hash", blockindex->GetBlockHash().GetHex())); @@ -378,7 +378,7 @@ void entryToJSON(UniValue &info, const CTxMemPoolEntry &e) info.push_back(Pair("depends", depends)); } -UniValue mempoolToJSON(bool fVerbose = false) +UniValue mempoolToJSON(bool fVerbose) { if (fVerbose) { |