Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
// Copyright (c) 2010 Satoshi Nakamoto | // Copyright (c) 2010 Satoshi Nakamoto | ||||
Lint: Code style violation: '/Users/shammah/repos/bitcoin-abc/src/rpc/blockchain.cpp' has code style errors. | |||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "rpc/blockchain.h" | #include "rpc/blockchain.h" | ||||
#include "amount.h" | #include "amount.h" | ||||
#include "chain.h" | #include "chain.h" | ||||
▲ Show 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | void entryToJSON(UniValue &info, const CTxMemPoolEntry &e) { | ||||
info.push_back(Pair("modifiedfee", ValueFromAmount(e.GetModifiedFee()))); | info.push_back(Pair("modifiedfee", ValueFromAmount(e.GetModifiedFee()))); | ||||
info.push_back(Pair("time", e.GetTime())); | info.push_back(Pair("time", e.GetTime())); | ||||
info.push_back(Pair("height", (int)e.GetHeight())); | info.push_back(Pair("height", (int)e.GetHeight())); | ||||
info.push_back(Pair("startingpriority", e.GetPriority(e.GetHeight()))); | info.push_back(Pair("startingpriority", e.GetPriority(e.GetHeight()))); | ||||
info.push_back( | info.push_back( | ||||
Pair("currentpriority", e.GetPriority(chainActive.Height()))); | Pair("currentpriority", e.GetPriority(chainActive.Height()))); | ||||
info.push_back(Pair("descendantcount", e.GetCountWithDescendants())); | info.push_back(Pair("descendantcount", e.GetCountWithDescendants())); | ||||
info.push_back(Pair("descendantsize", e.GetSizeWithDescendants())); | info.push_back(Pair("descendantsize", e.GetSizeWithDescendants())); | ||||
info.push_back(Pair("descendantfees", e.GetModFeesWithDescendants())); | info.push_back(Pair("descendantfees", (int64_t)e.GetModFeesWithDescendants())); | ||||
info.push_back(Pair("ancestorcount", e.GetCountWithAncestors())); | info.push_back(Pair("ancestorcount", e.GetCountWithAncestors())); | ||||
info.push_back(Pair("ancestorsize", e.GetSizeWithAncestors())); | info.push_back(Pair("ancestorsize", e.GetSizeWithAncestors())); | ||||
info.push_back(Pair("ancestorfees", e.GetModFeesWithAncestors())); | info.push_back(Pair("ancestorfees", (int64_t)e.GetModFeesWithAncestors())); | ||||
const CTransaction &tx = e.GetTx(); | const CTransaction &tx = e.GetTx(); | ||||
std::set<std::string> setDepends; | std::set<std::string> setDepends; | ||||
for (const CTxIn &txin : tx.vin) { | for (const CTxIn &txin : tx.vin) { | ||||
if (mempool.exists(txin.prevout.hash)) { | if (mempool.exists(txin.prevout.hash)) { | ||||
setDepends.insert(txin.prevout.hash.ToString()); | setDepends.insert(txin.prevout.hash.ToString()); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,211 Lines • Show Last 20 Lines |
'/Users/shammah/repos/bitcoin-abc/src/rpc/blockchain.cpp' has code style errors.