diff options
| author | Antoine Riard <[email protected]> | 2019-07-09 20:07:39 -0400 |
|---|---|---|
| committer | Antoine Riard <[email protected]> | 2020-04-30 14:31:19 -0400 |
| commit | b855592d835bf4b3fb1263b88d4f96669a1722b1 (patch) | |
| tree | 8e36d5158106b46fb12b4bb1813eb0685a03d0a7 /src/wallet/test | |
| parent | Merge #18727: test: Add CreateWalletFromFile test (diff) | |
| download | discoin-b855592d835bf4b3fb1263b88d4f96669a1722b1.tar.xz discoin-b855592d835bf4b3fb1263b88d4f96669a1722b1.zip | |
[wallet] Move getHeight from Chain::Lock interface to simple Chain
Instead of calling getHeight, we rely on CWallet::m_last_block
processed_height where it's possible.
Diffstat (limited to 'src/wallet/test')
| -rw-r--r-- | src/wallet/test/wallet_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index 1215956bb..1c569cbef 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -521,7 +521,7 @@ public: CCoinControl dummy; { auto locked_chain = m_chain->lock(); - BOOST_CHECK(wallet->CreateTransaction(*locked_chain, {recipient}, tx, fee, changePos, error, dummy)); + BOOST_CHECK(wallet->CreateTransaction({recipient}, tx, fee, changePos, error, dummy)); } wallet->CommitTransaction(tx, {}, {}); CMutableTransaction blocktx; |