Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction.cpp
Show All 36 Lines | |||||
#include <validation.h> | #include <validation.h> | ||||
#include <validationinterface.h> | #include <validationinterface.h> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <numeric> | #include <numeric> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
/** | |||||
* Maximum fee rate for sendrawtransaction and testmempoolaccept. | |||||
* By default, a transaction with a fee rate higher than this will be rejected | |||||
* by the RPCs. This can be overridden with the maxfeerate argument. | |||||
*/ | |||||
static const CFeeRate DEFAULT_MAX_RAW_TX_FEE_RATE{COIN / 10}; | |||||
static void TxToJSON(const CTransaction &tx, const BlockHash &hashBlock, | static void TxToJSON(const CTransaction &tx, const BlockHash &hashBlock, | ||||
UniValue &entry) { | UniValue &entry) { | ||||
// Call into TxToUniv() in bitcoin-common to decode the transaction hex. | // Call into TxToUniv() in bitcoin-common to decode the transaction hex. | ||||
// | // | ||||
// Blockchain contextual information (confirmations and blocktime) is not | // Blockchain contextual information (confirmations and blocktime) is not | ||||
// available to code in bitcoin-common, so we query them here and push the | // available to code in bitcoin-common, so we query them here and push the | ||||
// data into the returned UniValue. | // data into the returned UniValue. | ||||
TxToUniv(tx, uint256(), entry, true, RPCSerializationFlags()); | TxToUniv(tx, uint256(), entry, true, RPCSerializationFlags()); | ||||
▲ Show 20 Lines • Show All 1,968 Lines • Show Last 20 Lines |