aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2018-10-03 14:41:03 +0900
committerGregory Sanders <gsanders87@gmail.com>2018-11-30 11:08:41 -0500
commit2a5cc40dc428e9024142ebebeaa97a3a3a4a1fa6 (patch)
tree1cfbfb58fae07c7e98770e426da469873bd79906 /src/wallet/wallet.h
parent53dcf2b407f8a2b4ebe372a8f28b7ba073b9eda7 (diff)
downloadbitcoin-2a5cc40dc428e9024142ebebeaa97a3a3a4a1fa6.tar.xz
CreateTransaction: Assume minimum p2sh-p2wpkh spend size for unknown change
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 57b22c0e49..7b791ae416 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -64,6 +64,9 @@ static const bool DEFAULT_WALLET_RBF = false;
static const bool DEFAULT_WALLETBROADCAST = true;
static const bool DEFAULT_DISABLE_WALLET = false;
+//! Pre-calculated constants for input size estimation in *virtual size*
+static constexpr size_t DUMMY_NESTED_P2WPKH_INPUT_SIZE = 91;
+
class CBlockIndex;
class CCoinControl;
class COutput;