aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2018-07-17 16:56:06 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2018-07-24 15:05:36 +0900
commit65b3eda458221644616d0fdd6ba0fe01bdbce893 (patch)
treec94e1b3f7ee693291c2ba32fafc83c0ba58ea85e /src/wallet/wallet.h
parenta443d7a0ca333b0bae63e04b5d476f9ad9c7aeac (diff)
downloadbitcoin-65b3eda458221644616d0fdd6ba0fe01bdbce893.tar.xz
wallet: Add input bytes to CInputCoin
With nInputBytes, coin selection can execute without a reference to the COutput
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 173ebec537..4a38545146 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -525,6 +525,11 @@ public:
}
std::string ToString() const;
+
+ inline CInputCoin GetInputCoin() const
+ {
+ return CInputCoin(tx->tx, i, nInputBytes);
+ }
};