aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 96518c6d8c..0270b5f102 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -281,9 +281,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
Array transactions;
map<uint256, int64_t> setTxIndex;
int i = 0;
- CCoinsDB coindb("r");
- CCoinsViewDB viewdb(coindb);
- CCoinsViewCache view(viewdb);
+ CCoinsViewCache &view = *pcoinsTip;
BOOST_FOREACH (CTransaction& tx, pblock->vtx)
{
uint256 txHash = tx.GetHash();