Changeset View
Changeset View
Standalone View
Standalone View
src/node/transaction.h
// Copyright (c) 2017-2019 The Bitcoin Core developers | // Copyright (c) 2017-2019 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. | ||||
#ifndef BITCOIN_NODE_TRANSACTION_H | #ifndef BITCOIN_NODE_TRANSACTION_H | ||||
#define BITCOIN_NODE_TRANSACTION_H | #define BITCOIN_NODE_TRANSACTION_H | ||||
#include <attributes.h> | #include <attributes.h> | ||||
#include <feerate.h> | |||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
#include <util/error.h> | #include <util/error.h> | ||||
class Config; | class Config; | ||||
struct NodeContext; | struct NodeContext; | ||||
struct TxId; | struct TxId; | ||||
/** | /** | ||||
* Maximum fee rate for sendrawtransaction and testmempoolaccept RPC calls. | |||||
* Also used by the GUI when broadcasting a completed PSBT. | |||||
* By default, a transaction with a fee rate higher than this will be rejected | |||||
* by these RPCs and the GUI. This can be overridden with the maxfeerate | |||||
* argument. | |||||
*/ | |||||
static const CFeeRate DEFAULT_MAX_RAW_TX_FEE_RATE{COIN / 10}; | |||||
/** | |||||
* Submit a transaction to the mempool and (optionally) relay it to all P2P | * Submit a transaction to the mempool and (optionally) relay it to all P2P | ||||
* peers. | * peers. | ||||
* | * | ||||
* Mempool submission can be synchronous (will await mempool entry notification | * Mempool submission can be synchronous (will await mempool entry notification | ||||
* over the CValidationInterface) or asynchronous (will submit and not wait for | * over the CValidationInterface) or asynchronous (will submit and not wait for | ||||
* notification), depending on the value of wait_callback. wait_callback MUST | * notification), depending on the value of wait_callback. wait_callback MUST | ||||
* NOT be set while cs_main, cs_mempool or cs_wallet are held to avoid | * NOT be set while cs_main, cs_mempool or cs_wallet are held to avoid | ||||
* deadlock. | * deadlock. | ||||
Show All 17 Lines |