aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcdump.cpp
diff options
context:
space:
mode:
authorAntoine Riard <ariard@student.42.fr>2019-10-24 12:53:57 -0400
committerAntoine Riard <ariard@student.42.fr>2019-11-06 11:35:39 -0500
commit9700fcb47feca9d78e005b8d18b41148c8f6b25f (patch)
treeb6e966d1a17f966139975649c6e125405174cbfc /src/wallet/rpcdump.cpp
parent5aacc3eff15b9b5bdc951f1e274f00d581f63bce (diff)
Replace CWalletTx::SetConf by Confirmation initialization list
Diffstat (limited to 'src/wallet/rpcdump.cpp')
-rw-r--r--src/wallet/rpcdump.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index da4da4d9e0..bc6df1cc99 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -382,7 +382,8 @@ UniValue importprunedfunds(const JSONRPCRequest& request)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Something wrong with merkleblock");
}
- wtx.SetConf(CWalletTx::Status::CONFIRMED, merkleBlock.header.GetHash(), txnIndex);
+ CWalletTx::Confirmation confirm(CWalletTx::Status::CONFIRMED, merkleBlock.header.GetHash(), txnIndex);
+ wtx.m_confirm = confirm;
auto locked_chain = pwallet->chain().lock();
LOCK(pwallet->cs_wallet);