X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Ftransactiondesc.cpp;h=286cddf2a920492076d78e1a34854c4fd13c7d6f;hb=ed6d0b5f852dc5f1c9407abecb5a9c6a7e42b4b2;hp=089fe751b867758308e1df17b5b412d9d7c894e1;hpb=ebf9065c227860d91c9e304c8a2cb2d62c7c55ef;p=novacoin.git diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index 089fe75..286cddf 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -1,10 +1,12 @@ -#include +#include "transactiondesc.h" #include "guiutil.h" #include "bitcoinunits.h" -#include "headers.h" -#include "qtui.h" +#include "main.h" +#include "wallet.h" +#include "db.h" +#include "ui_interface.h" #include @@ -34,8 +36,9 @@ QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx) QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx) { QString strHTML; - CRITICAL_BLOCK(wallet->cs_wallet) + { + LOCK(wallet->cs_wallet); strHTML.reserve(4000); strHTML += ""; @@ -243,8 +246,9 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx) strHTML += "
Inputs:"; strHTML += "
    "; - CRITICAL_BLOCK(wallet->cs_wallet) + { + LOCK(wallet->cs_wallet); BOOST_FOREACH(const CTxIn& txin, wtx.vin) { COutPoint prevout = txin.prevout;