  
  CRPCTable::CRPCTable()
 diff --git a/src/main.cpp b/src/main.cpp
-index 427e435..35da486 100644
+index 427e435..19236ac 100644
 --- a/src/main.cpp
 +++ b/src/main.cpp
-@@ -3160,6 +3160,10 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
-             if (tx.IsCoinBase() || !tx.IsFinal())
-                 continue;
- 
-+	    if (tx.get_electrum_flag())
-+	      continue;
-+	    tx.set_electrum_flag(true);
-+
-             COrphan* porphan = NULL;
-             double dPriority = 0;
-             BOOST_FOREACH(const CTxIn& txin, tx.vin)
-@@ -3222,18 +3226,21 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
+@@ -3222,18 +3222,21 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
  
              // Size limits
              unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);

diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp
index 15bcf1d..1ace361 100644
--- a/src/bitcoinrpc.cpp
+++ b/src/bitcoinrpc.cpp
@@ -1497,6 +1497,43 @@ Value gettransaction(const Array& params, bool fHelp)

     CTransaction()
     {
         SetNull();
@@ -416,6 +426,7 @@ public:
         vout.clear();
         nLockTime = 0;
         nDoS = 0;  // Denial-of-service prevention
+	set_electrum_flag(false);
     }
 
     bool IsNull() const
