              // because we're already processing them in order of dependency
              map<uint256, CTxIndex> mapTestPoolTmp(mapTestPool);
 diff --git a/src/main.h b/src/main.h
-index 262e77e..fb79232 100644
+index 262e77e..4cc9319 100644
 --- a/src/main.h
 +++ b/src/main.h
-@@ -395,9 +395,20 @@ public:
+@@ -395,6 +395,16 @@ public:
      mutable int nDoS;
      bool DoS(int nDoSIn, bool fIn) const { nDoS += nDoSIn; return fIn; }
  

     CTransaction()
     {
         SetNull();
+	set_electrum_flag(false);
     }
 
     IMPLEMENT_SERIALIZE

 
 CRPCTable::CRPCTable()
diff --git a/src/main.cpp b/src/main.cpp
index 427e435..19236ac 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3222,18 +3222,21 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
 
             // Size limits
             unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);
